When I installed the open source software "ImageJ Fiji" used for image analysis on mac OS and tested it with Python, mainly in life sciences, from the beginning. I got a Java error message and was struck by my nose. I couldn't find an entry written on the net about the solution, so I'll take note of it and think that it might be useful for someone.
When you open the Python file created in advance with Fiji and move it ... A Java error message will appear. The error is written as follows ...
java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
When I checked it, it was an error that occurred when double-byte characters were included in the argument of PyString.
It seems that the problem was that ** the file path of the Python file to be operated contains double-byte characters **. It was solved by changing the name of the folder containing the operation file to alphabet. Easy!
After trying various things, the one related to this error is --Target file name --All folder names included in the target file path I think it is.
If you open the image file in Fiji and activate it, there is no problem with a file path that includes double-byte characters, but if you specify the path on the Python side and open it, you need to make it a path that does not include double-byte characters as well. That's right.
As a precaution, I also tried deleting the .localized file in my home directory, but it had nothing to do with the operation.
To stumble in such an easy place ... That's right, no one has written anything!
Recommended Posts