Can't find encoding 'utf-8'

  • Bernd
Posted: Wed, 04/17/2013 - 10:16

Hi,

I updated JIRA from v5.1.4 to v5.2 and installed the latest version of the scripting suite (v. 2.1.2). Unfortunately all scripts (jython validators) fail because of the following issue:

Error creating issue: root cause: Traceback (most recent call last): File "C:\Program Files (x86)\Atlassian\Application Data\JIRA\jss\jython\__init_interpreter__.py", line 6, in codecs.setDefaultEncoding('utf-8') LookupError: no codec search functions registered: can't find encoding 'utf-8'

Can somebody please give me an advice how to solve this?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Removing the JVM argument and

  • Bernd
  • 04/17/13
  • Wed, 04/17/2013 - 15:48

Removing the JVM argument and clicking the "Reinstall everything" link in the "JSS Installer" section solved the issue :-D

Thank you Alex

Bernd, Version 2.0 is an old

  • admin
  • 02/16/10
  • Wed, 04/17/2013 - 14:49

Bernd,

Version 2.0 is an old one. 2.1.2 has an automated installer as well, so you do not need to set properties manually anymore. Please remove python.home from JVM arguments and visit JSS Installer page under Plugins menu at your JIRA instance to check the status. It should say smth like this:
---
Jython Installed: Yes
Jython Version: 2.5.2
Jython Home Path: /home/alex/workspace/jss@bitbucket/target/jira/home/jss/jython_2.5.2
python.home System Property: /home/alex/workspace/jss@bitbucket/target/jira/home/jss/jython_2.5.2
Base Scripts Installed: Yes
Base Scripts Path: /home/alex/workspace/jss@bitbucket/target/jira/home/jss/jython
---

Alex

Hi Alex, The system info of

  • Bernd
  • 04/17/13
  • Wed, 04/17/2013 - 14:38

Hi Alex,

The system info of JIRA lists "-Dpython.home=c:/jython2.5.0" as the JVM Input Arguments (as it did before the jira update). I removed "codecs.setDefaultEncoding('utf-8')" in "__init_interpreter__.py" and the error changed to:


Error creating issue: root cause: Traceback (most recent call last): File "C:\Program Files (x86)\Atlassian\Application Data\JIRA\jss\jython\__init_interpreter__.py", line 13, in from com.quisapps.jira.plugin.jython import JythonUtil ImportError: No module named jython

It looks like my installation is broken :-(

Is there an installation guide for the latest version (2.1.2 in the atlassian marketplace) available (the link in the "Link" section only shows the installation guide of the field security plugin)?

Can you provide an approximately release date for version 2.0?

check python.home property

  • admin
  • 02/16/10
  • Wed, 04/17/2013 - 13:04

Hi Bernd,

Usually this means that python.home system property is invalid and thus Jython interpreter can't find its libraries. With JSS 2.0 and later you do not need to set this property manually. Check System Info page to ensure that this property points to a valid Jython home.

Alex