-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error installing imreg_dft #23
Comments
Hello, it looks like a problem of multiple Python versions. I suggest that you use 2.7,
OR: |
Hi matejak, Thanks for your reply. I knew I installed numpy and scipy last night via 'pip' but they were likely installed using python 2.6 (because sudo uses python 2.6). Will they work with 2.7? If not, how can I make sudo use 2.7 and reinstall numpy and scipy? |
This is getting very tricky and complicated! yum in CentOS 6 needs python 2.6 to work properly. I am glad I did not try to replace it with 2.7 or "bad things" will happen. I found these blogs about this subject and I am trying to see if they work. http://toomuchdata.com/2014/02/16/how-to-install-python-on-centos/ |
This is a similar problem. You have to install setuptools using your Python 2.7 executable. Then, you can |
Finally, it appears that I have installed a working version of imreg_dft.
|
However, when I ran 'make check', it terminated with an error.python .//unittests/init.py Ran 17 tests in 0.042s OK (skipped=1) |
That one is easy, install |
So when I tried running 'pip2.7 install --upgrade pillow', I got make check still gives me the same error as shown above. |
OK, that's strange. AFAIK, problem of |
Yep, same errors after reinstalling scipy |
Well, according to my experience and http://stackoverflow.com/questions/15345790/scipy-misc-module-has-no-attribute-imread the mentioned problem ( |
Rejoice, tests have passed successfully! Yes, rejoice at last indeed! Your last comment gave me a hint that perhaps my copy of pillow was first installed using python 2.6 which might be the issue. So I uninstalled it and then reinstalled it with 'pip2.7 install pillow', and the test ran all the way through! |
I would appreciate some help on getting imreg_dft to install and work properly. The issue might be due to having different versions of python in my system (CentOs-6.1) but I am not sure. I recently installed python 2.7.12 but sudo still uses python 2.6.
So when I tried to install imreg_dft using command 'python setup.py install', I ended up with this error "ImportError: No module named numpy.distutils.core"
But when I tried to install imreg_dft using command '/usr/bin/python setup.py install', it appeared to work fine.
Installed /usr/lib/python2.6/site-packages/imreg_dft-2.0.0-py2.6.egg
Processing dependencies for imreg-dft==2.0.0
Searching for Pillow==3.3.0
Best match: Pillow 3.3.0
Adding Pillow 3.3.0 to easy-install.pth file
Using /usr/lib64/python2.6/site-packages
Searching for scipy==0.17.1
Best match: scipy 0.17.1
Adding scipy 0.17.1 to easy-install.pth file
Using /usr/lib64/python2.6/site-packages
Searching for numpy==1.11.1
Best match: numpy 1.11.1
Adding numpy 1.11.1 to easy-install.pth file
Using /usr/lib64/python2.6/site-packages
Searching for setuptools==24.0.0
Best match: setuptools 24.0.0
Adding setuptools 24.0.0 to easy-install.pth file
Installing easy_install-3.5 script to /usr/bin
Installing easy_install script to /usr/bin
Using /usr/lib/python2.6/site-packages
Finished processing dependencies for imreg-dft==2.0.0
But when I ran ird, I got these errors:
Traceback (most recent call last):
File "/usr/local/bin/ird", line 5, in
from pkg_resources import load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 2927, in
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 2913, in _call_aside
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 2940, in _initialize_master_working_set
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 635, in _build_master
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 943, in require
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 829, in resolve
pkg_resources.DistributionNotFound: The 'scipy>=0.12' distribution was not found and is required by imreg-dft
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: