Could not find the dependency numpy, please check that you have followed the installation instructions in the manual and try again.

873 views
Skip to first unread message

Omar Torres Carvajal

unread,
Jun 9, 2017, 5:45:58 PM6/9/17
to PartitionFinder
Hello,
I just installed PartitionFinder2 on a Mac (macOS Sierra version 10.12.5). I then installed Anaconda (Python 2.7 version). I double checked and I have Python 2.7.13. When I try to run PF, I get this error message:

**** ERROR **** 


Could not find the dependency numpy, please check that you have followed the installation instructions in the manual  and try again.


PartitionFinder 2 (unlike PartitionFinder 1) requires a few other Python packages to work. All of these can be installed very easily, in a single click, by installing the Python 2.7.x version of the Anaconda Python distrubition, which you can find here (remember to get the 2.7 version!): 


https://www.continuum.io/downloads 


Further instructions are in the installation section of the manual, which points out a number of other differences between PartitionFinder 1 and PartitionFinder 2 too.


 *************** 




Traceback (most recent call last):

  File "/Applications/partitionfinder-2.1.1/PartitionFinder.py", line 20, in <module>

    from partfinder import dependencies

  File "/Applications/partitionfinder-2.1.1/partfinder/dependencies.py", line 43, in <module>

    raise ImportError




 Thank you for your help!


-Omar

Rob Lanfear

unread,
Jun 9, 2017, 5:52:29 PM6/9/17
to PartitionFinder
Hi Omar,

Two things to try. 

1. type 'python' and the command line. You should get a version of python that is from Anaconda. If you didn't then you'll need to fix that. The first thing I would try is just to re-install anaconda. If that doesn't fix it, then your 'python' command is probably just pointing to the wrong place. The fix for that is here: https://stackoverflow.com/questions/22773432/mac-using-default-python-despite-anaconda-install. Finally it could just be that you need to start a new terminal session...

2. If you DO get a version of python from anaconda in step 1, then all you need to do is at the commandline type 'conda install numpy' and it will install the numpy package for you.

My suspicion is that your Anaconda installation did not work properly though, because the standard distribution comes with all the packages that PF2 needs.

Cheers,

Rob

Omar Torres Carvajal

unread,
Jun 12, 2017, 10:03:13 AM6/12/17
to PartitionFinder
Thank you Rob,

I actually solved the problem by creating a "conda" environment as instructed in one of the posts, and then I run PF in that environment (I hope I am making sense, I honestly have little experience with python or conda).
It looks to me that the dependencies were properly installed, and that the real problem was where they got installed. Is it possible that the dependencies were not detected just because they were installed in the wrong place?
Anyway, I hope this post helps other people that might have similar problems.
All the best,
-Omar
Reply all
Reply to author
Forward
0 new messages