[Pkg-exppsy-pynifti] installation problem
Scott Gorlin
gorlins at MIT.EDU
Wed Apr 29 05:10:09 UTC 2009
This may or may not be related... I just upgraded to Ubuntu Jaunty and
found that the packaged version would not install due to a dependency
issue with libnifti. i downloaded the git repo and similarly could not
run setup.py build (i don't recall the exact error message, but it was
related to incompatible versions of nifticlib or something). Even
though nifticlib was already installed on my computer I followed the
instructions to build it from the pynifti source (make, then sudo python
setup.py install) and this worked flawlessly.
I'm not sure why I had the dependency issue - I just tried on another
computer (my home computer with no nifti stuff) and it had no issues
with the packages, so i'm assuming I had an old version of something on
my work computer.
Scott
Michael Hanke wrote:
> 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
>>
>
>
>
More information about the Pkg-exppsy-pynifti
mailing list