handle windows file paths #1

Closed
opened 2020-03-24 14:33:30 +01:00 by graffy · 1 comment
Owner

When chosing the menu "Display Sequence", Veronique had the following error

[Fri Mar 20 16:02:59 CET 2020] [ERROR] [] null Traceback (most recent call last): File "Ipr/Lipase/Display_Sequence.py", line 121, in File "Ipr/Lipase/Display_Sequence.py", line 102, in run_script File "pyclasspath/lipase/catalog.py", line 184, in init File "pyclasspath/lipase/catalog.py", line 32, in init IOError: [Errno 2] No such file or directory: u'E:\res_soleil2018/E:\res_soleil2018\AF\AF_im1_tous filtres_X100_1\Pos0/metadata.txt'

at org.python.core.Py.IOError(Py.java:232)
at org.python.core.io.FileIO.(FileIO.java:104)
at org.python.core.PyFile.file___init__(PyFile.java:173)
at org.python.core.PyFile$exposed___new__.createOfType(Unknown Source)
at org.python.core.PyOverridableNew.new_impl(PyOverridableNew.java:12)
at org.python.core.PyType.invokeNew(PyType.java:583)
at org.python.core.PyType.type___call__(PyType.java:1815)
at org.python.core.PyType.call(PyType.java:1805)
at org.python.core.OpenFunction.call(builtin.java:1725)
at org.python.core.PyObject.call(PyObject.java:497)
at org.python.core.PyObject.call(PyObject.java:501)
at lipase.catalog$py.init$5(pyclasspath/lipase/catalog.py:43)
at lipase.catalog$py.call_function(pyclasspath/lipase/catalog.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyBaseCode.call(PyBaseCode.java:199)
at org.python.core.PyFunction.call(PyFunction.java:482)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
at org.python.core.PyMethod.call(PyMethod.java:228)
at org.python.core.PyMethod.call(PyMethod.java:223)
at org.python.core.Deriveds.dispatch__init__(Deriveds.java:19)
at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1112)
at org.python.core.PyType.type___call__(PyType.java:1822)
at org.python.core.PyType.call(PyType.java:1805)
at org.python.core.PyObject.call(PyObject.java:515)
at org.python.core.PyObject.call(PyObject.java:519)
at lipase.catalog$py.init$22(pyclasspath/lipase/catalog.py:181)
at lipase.catalog$py.call_function(pyclasspath/lipase/catalog.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyBaseCode.call(PyBaseCode.java:199)
at org.python.core.PyFunction.call(PyFunction.java:482)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
at org.python.core.PyMethod.call(PyMethod.java:228)
at org.python.core.PyMethod.call(PyMethod.java:223)
at org.python.core.Deriveds.dispatch__init__(Deriveds.java:19)
at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1112)
at org.python.core.PyType.type___call__(PyType.java:1822)
at org.python.core.PyType.call(PyType.java:1805)
at org.python.core.PyObject.call(PyObject.java:480)
at org.python.core.PyObject.call(PyObject.java:484)
at org.python.pycode._pyx0.run_script$5(Ipr/Lipase/Display_Sequence.py:118)
at org.python.pycode._pyx0.call_function(Ipr/Lipase/Display_Sequence.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:125)
at org.python.core.PyFunction.call(PyFunction.java:403)
at org.python.pycode._pyx0.f$0(Ipr/Lipase/Display_Sequence.py:121)
at org.python.pycode._pyx0.call_function(Ipr/Lipase/Display_Sequence.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at org.python.core.builtin.eval(builtin.java:497)
at org.python.core.builtin.eval(builtin.java:501)
at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:259)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:57)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:31)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at org.scijava.script.ScriptModule.run(ScriptModule.java:160)
at org.scijava.module.ModuleRunner.run(ModuleRunner.java:168)
at org.scijava.module.ModuleRunner.call(ModuleRunner.java:127)
at org.scijava.module.ModuleRunner.call(ModuleRunner.java:66)
at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:228)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

When chosing the menu "Display Sequence", Veronique had the following error [Fri Mar 20 16:02:59 CET 2020] [ERROR] [] null Traceback (most recent call last): File "Ipr/Lipase/Display_Sequence.py", line 121, in File "Ipr/Lipase/Display_Sequence.py", line 102, in run_script File "pyclasspath/lipase/catalog.py", line 184, in init File "pyclasspath/lipase/catalog.py", line 32, in init IOError: [Errno 2] No such file or directory: u'E:\res_soleil2018/E:\res_soleil2018\AF\AF_im1_tous filtres_X100_1\Pos0/metadata.txt' at org.python.core.Py.IOError(Py.java:232) at org.python.core.io.FileIO.<init>(FileIO.java:104) at org.python.core.PyFile.file___init__(PyFile.java:173) at org.python.core.PyFile$exposed___new__.createOfType(Unknown Source) at org.python.core.PyOverridableNew.new_impl(PyOverridableNew.java:12) at org.python.core.PyType.invokeNew(PyType.java:583) at org.python.core.PyType.type___call__(PyType.java:1815) at org.python.core.PyType.__call__(PyType.java:1805) at org.python.core.OpenFunction.__call__(__builtin__.java:1725) at org.python.core.PyObject.__call__(PyObject.java:497) at org.python.core.PyObject.__call__(PyObject.java:501) at lipase.catalog$py.__init__$5(__pyclasspath__/lipase/catalog.py:43) at lipase.catalog$py.call_function(__pyclasspath__/lipase/catalog.py) at org.python.core.PyTableCode.call(PyTableCode.java:171) at org.python.core.PyBaseCode.call(PyBaseCode.java:308) at org.python.core.PyBaseCode.call(PyBaseCode.java:199) at org.python.core.PyFunction.__call__(PyFunction.java:482) at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237) at org.python.core.PyMethod.__call__(PyMethod.java:228) at org.python.core.PyMethod.__call__(PyMethod.java:223) at org.python.core.Deriveds.dispatch__init__(Deriveds.java:19) at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1112) at org.python.core.PyType.type___call__(PyType.java:1822) at org.python.core.PyType.__call__(PyType.java:1805) at org.python.core.PyObject.__call__(PyObject.java:515) at org.python.core.PyObject.__call__(PyObject.java:519) at lipase.catalog$py.__init__$22(__pyclasspath__/lipase/catalog.py:181) at lipase.catalog$py.call_function(__pyclasspath__/lipase/catalog.py) at org.python.core.PyTableCode.call(PyTableCode.java:171) at org.python.core.PyBaseCode.call(PyBaseCode.java:308) at org.python.core.PyBaseCode.call(PyBaseCode.java:199) at org.python.core.PyFunction.__call__(PyFunction.java:482) at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237) at org.python.core.PyMethod.__call__(PyMethod.java:228) at org.python.core.PyMethod.__call__(PyMethod.java:223) at org.python.core.Deriveds.dispatch__init__(Deriveds.java:19) at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1112) at org.python.core.PyType.type___call__(PyType.java:1822) at org.python.core.PyType.__call__(PyType.java:1805) at org.python.core.PyObject.__call__(PyObject.java:480) at org.python.core.PyObject.__call__(PyObject.java:484) at org.python.pycode._pyx0.run_script$5(Ipr/Lipase/Display_Sequence.py:118) at org.python.pycode._pyx0.call_function(Ipr/Lipase/Display_Sequence.py) at org.python.core.PyTableCode.call(PyTableCode.java:171) at org.python.core.PyBaseCode.call(PyBaseCode.java:125) at org.python.core.PyFunction.__call__(PyFunction.java:403) at org.python.pycode._pyx0.f$0(Ipr/Lipase/Display_Sequence.py:121) at org.python.pycode._pyx0.call_function(Ipr/Lipase/Display_Sequence.py) at org.python.core.PyTableCode.call(PyTableCode.java:171) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1614) at org.python.core.__builtin__.eval(__builtin__.java:497) at org.python.core.__builtin__.eval(__builtin__.java:501) at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:259) at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:57) at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:31) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264) at org.scijava.script.ScriptModule.run(ScriptModule.java:160) at org.scijava.module.ModuleRunner.run(ModuleRunner.java:168) at org.scijava.module.ModuleRunner.call(ModuleRunner.java:127) at org.scijava.module.ModuleRunner.call(ModuleRunner.java:66) at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:228) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
graffy self-assigned this 2020-11-25 17:02:16 +01:00
graffy removed their assignment 2020-11-25 17:02:19 +01:00
graffy self-assigned this 2020-11-25 17:02:20 +01:00
graffy added the
bug
label 2020-11-25 17:05:52 +01:00
Author
Owner

fixed in commit 693b8de376

fixed in commit 693b8de376
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: graffy/lipase#1
No description provided.