scijava / scripting-jython

JSR-223-compliant Jython scripting plugin
http://imagej.net/Jython_Scripting
BSD 2-Clause "Simplified" License
6 stars 5 forks source link

Jython error when script is stored in directory with non-standard characters #11

Open kephale opened 3 years ago

kephale commented 3 years ago

This error was first found in this thread: https://forum.image.sc/t/sciview-cannot-install-on-fiji/46900/13 However the error is independent of sciview.

To reproduce the error:

  1. Create a directory with a nonstandard character (to match the original forum thread, use e.g. ~/IJ/non’standard/Fiji.app)
  2. Create a new Jython script in Fiji and save it within this newly created directory
  3. Try to run the script

The following error occurs: image

imagesc-bot commented 3 years ago

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/sciview-cannot-install-on-fiji/46900/14

imagejan commented 3 years ago

This is likely an issue in jython itself:

https://github.com/jython/jython/blob/0a58cc26566d2b2334e80b2b3f2f42f6c738db2d/src/org/python/jsr223/PyScriptEngine.java#L89

See also https://github.com/jython/jython/issues/20 and https://github.com/jython/jython/issues/23.

imagesc-bot commented 3 years ago

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/python-error-in-imagej/53307/4