[Pkg-exppsy-pynifti] installation problem

Michael Hanke michael.hanke at gmail.com
Wed Apr 29 04:44:55 UTC 2009


Hi,

before we dig into the details, can you please give some more
information on what kind of system you are installing (distribution,
release, ...)? Maybe there is a much easier was than building from
source...

Michael


On Wed, Apr 29, 2009 at 05:32:24AM +0800, Shengwei Zhang wrote:
> Hi, I'm new to pynifti, and I'm trying to use a software that requires it. When I'm trying to compile it from source, there're some problems. 
> 
> First, how can I specify --include-dirs and --library-dirs options to build the command like :python setup.py build ? Do I need to specify them when using 'sudo python ... install'?
> 
> I've downloaded the python 2.5, swig 1.3.39, nifticlib and numpy, the first three are installed. But the numpy seems to need a fortran compiler and I'm not sure if it is installed successfully. Also I type 'python setup.py build' and 'sudo python ... install' to build the file, but when I fire up python and 'import nifti', the error message below appears:
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "nifti/__init__.py", line 38, in <module>
>     from niftiimage import NiftiImage
>   File "nifti/niftiimage.py", line 15, in <module>
>     import nifticlib
>   File "nifti/nifticlib.py", line 39, in <module>
>     import _nifticlib
> ImportError: No module named _nifticlib
> 
> I run it on Linux and have no idea what to do with it. hope that you can help me out. Thanks a lot! 
> 
>  
> Regards,
> Shengwei Zhang
> 
> 
>       ___________________________________________________________ 
>   好玩贺卡等你发,邮箱贺卡全新上线! 
> http://card.mail.cn.yahoo.com/
> _______________________________________________
> Pkg-exppsy-pynifti mailing list
> Pkg-exppsy-pynifti at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pynifti


-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050



More information about the Pkg-exppsy-pynifti mailing list