2011/11/16 Zbigniew Jędrzejewski-Szmek <zbys...@in.waw.pl>: > On 11/16/2011 10:03 AM, Mathieu Malaterre wrote: >> >> [CC me please] >> >> Hi all, >> >> I am trying to package a tiny python module: >> >> >> http://mentors.debian.net/debian/pool/main/t/tifffile/tifffile_20111112-1.dsc >> >> I thought I did it right, but I cannot load the python module >> properly when installed, it fails with: > > Hi Mathieu, > the problem is that numpy import fails. Numpy has both pure-python and > compiled (e.g. multiarray.so) parts. When running a script, Python adds the > directory containing the script to sys.path. Numpy is supposed to be > imported from /usr/lib/pymodules/python2.7/numpy. > /usr/lib/pymodules/python2.7/numpy contains links to /usr/share/pyshared/. > Not all of numpy is is /usr/share/pyshared, but only the > architecture-independent parts. The end result is that it is not possible to > run a python script from /usr/share/pyshared.
Thanks for the info ! Does this means I simply need to install the tifffile.py in /usr/bin then ? The tifffile.so python module will remains at the same location. Thanks again, -- Mathieu -- 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/ca+7wuswwicrb22gbeusfqs_3eor-o+-kmycmspayf-qp1mz...@mail.gmail.com