Open tueda opened 1 year ago
I have the same problem. Any fix or workaround?
@RaphaelRobidas usually that error:
File "/usr/local/lib/python3.10/dist-packages/dill/_dill.py", line 409, in find_class
return StockUnpickler.find_class(self, module, name)
ModuleNotFoundError: No module named 'library'
means that the code is trying to do the equivalent of import library
in your worker environment, and it cannot find library.py
due to however the worker environment is configured.
For example, in some situations, you need to put the directory that library.py
is in onto your $PYTHONPATH
in htex's worker_init
parameter - or in some other make sure that in your worker environment you can successfully run this in your worker environment:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'library'
Maybe it would be nice for users if the worker's sys.path
could be automatically adjusted in such a way that library
(which can be seen from the main program) can be found by the worker (or copying/transferring the library file may be needed for remote workers).
Describe the bug
I tried to run the example of Structuring Parsl programs in the user guide. Namely, I created the following 3 files:
config.py
:library.py
:run_increment.py
:and invoked
But it gave me a
ModuleNotFoundError: No module named 'library'
error as follows:So, I think the documentation may be incomplete/outdated or Parsl does not work as expected (or I have missed something).
To Reproduce
ubuntu:22.04
).Expected behavior The user guide says it should produce the following output:
Environment
Distributed Environment