* Mathieu Malaterre <mathieu.malate...@gmail.com>, 2011-11-16, 10:03:
I thought I did it right, but I cannot load the python module properly
when installed, it fails with:
$ python /usr/share/pyshared/tifffile.py
Traceback (most recent call last):
File "/usr/share/pyshared/tifffile.py", line 117, in <module>
import numpy
File "/usr/share/pyshared/numpy/__init__.py", line 132, in <module>
import add_newdocs
File "/usr/share/pyshared/numpy/add_newdocs.py", line 9, in <module>
from lib import add_newdoc
File "/usr/share/pyshared/numpy/lib/__init__.py", line 4, in <module>
from type_check import *
File "/usr/share/pyshared/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/usr/share/pyshared/numpy/core/__init__.py", line 5, in <module>
import multiarray
ImportError: No module named multiarray
Short story:
"Doctor, it hurts when I do this!"
"Well, don't do that then..."
Long story:
/usr/share/pyshared/ directory is an implementation detail of Python
helpers. Don't mess with it if don't know what you are doing. More
specifically, adding it to sys.path (either explicitly, or by running a
script from this directory) is doomed to failure.
--
Jakub Wilk
--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111116125754.ga9...@jwilk.net