I installed pypar on a cluster I use at work, but when I went to run it, I got this:
> python
Python 2.7.8 (default, Oct 9 2014, 13:11:01)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pypar
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "PATH/packages/lib/python2.7/site-packages/pypar/__init__.py", line 9, in <module>
import test
File "PATH/packages/lib/python2.7/site-packages/pypar/test.py", line 15, in <module>
from tblib import pickling_support
ImportError: No module named tblib
As the trace states, __init__.py imports test.py, which in turn imports tblib. There's no mention anywhere (that I can find) that tblib is a dependency of pypar.
Why is test.py imported in __init__.py? If I just comment out the import, pypar seems to work just fine without me needing to install tblib.
Hi, for the moment you can do pip install tblib to install that dependency. I agree that is not optimal so I'll refactor shortly to remove that dependency (it is used for the new testing framework).
I installed pypar on a cluster I use at work, but when I went to run it, I got this:
As the trace states,
__init__.py
importstest.py
, which in turn imports tblib. There's no mention anywhere (that I can find) that tblib is a dependency of pypar.Why is
test.py
imported in__init__.py
? If I just comment out the import, pypar seems to work just fine without me needing to install tblib.