Uploading script error: cannot import other scripts
Posted: Tue Jul 30, 2013 1:12 am
Hi
I am trying to upload a script to omero through Insight.
I get an error because this script is importing another script of mine.
Even though this second script is accessible through PYTHONPATH, during upload I will get the following error:
Any idea how I could get this to work?
Thanks
I am trying to upload a script to omero through Insight.
I get an error because this script is importing another script of mine.
Even though this second script is accessible through PYTHONPATH, during upload I will get the following error:
- Code: Select all
java.lang.Exception: org.openmicroscopy.shoola.env.data.DSAccessException: Cannot access data.
Cannot upload the script: my_omero_script.py.
at ....
Caused by: omero.ValidationException
serverStackTrace = ""
serverExceptionClass = ""
message = "Can't find params for 1648. Stderr is in file 1649
---stderr---
Traceback (most recent call last):
File "./script", line 30, in <module>
from my_homemade_script import my_routines
ImportError: No module named my_homemade_script
Any idea how I could get this to work?
Thanks