-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent the UnsupportedCharsetException: cp0
when using Jython script
#56
Comments
Do you also observe this issue on Windows 10 or is it exclusive to Windows 7? |
Hello Stefan, |
That's interesting. I wasn't able to reproduce the issue on my Windows 10 (32bit) VM. How exactly did you get it? I have
and did not get the exception. Hence, I couldn't confirm if #57 fixes the issue. |
Sorry to reopen, I can observe it with imported module (I have a 64-bit windows but I guess this does not make a difference) So for instance put this script '''
This is Test.py script
'''
def printer(x):
print x and in the script editor from Test import printer
printer("Voila") is throwing the message for me (still printing Voila though) |
@Jindil do you also get the exception when simply running from the script editor, as outlined by @stelfrich?
Note that step (3) is not necessary for me, it's sufficient to run an empty Python script to trigger the exception in the console. See my comment on #57 (comment). |
Yes I do too, but the console error shows up only once. If I close it and rerun the script then it is not opening again. |
@Jindil You can try the latest launcher by downloading |
Hi guys, any chance the fix get officially released with Fiji any time soon ? |
Sorry @LauLauThom, I try to be very conservative about uploading new versions of the launcher, since it will break all installations if we make a mistake. It has been on my list for a long time to post an announcement on forum.image.sc asking everyone to test the latest snapshot of the Launcher. Do you have the bandwidth to help out? We need people to test on as many platforms as possible (ideally all five). |
Hi Curtis, thanks for the reply. |
Hi Curtis, I tested the new Linux-64bit launcher on a machine running Lubuntu/Ubuntu 18.04.2.
|
I tried with a full-flavored Ubuntu 18.04.3 64-bit and I have the same behaviour |
@LauLauThom I filed a new issue #68 to track the issues you raised. I am pushing on new pom-scijava releases as well as component releases. As part of that I also want/need to distribute a newer launcher to everyone, to fix a variety of issues that have cropped up. But I also want to ensure things are working well. |
Currently if a home made jython script/macro is saved as a plugin and executed, it runs fine but the following error message is still displayed :
console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0.
It can be fixed by adding the following argument to the ImageJ.cfg (after Xmx****m for instance) or to the command line (for headless mode)
-Dpython.console.encoding=UTF-8
It would be nice to have it as a default.
This is reported on the forum here and there
The text was updated successfully, but these errors were encountered: