-
Notifications
You must be signed in to change notification settings - Fork 8
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
No module named pf #7
Comments
Kinggerm, it looks like for some reason the pf module was not built. It is a C-language extension module. To debug why, try building the module itself only, as
Note any error messages that fly by. The earliest error message is usually a clue. (Numpy API warning messages can be ignored) |
Oh, I see. Thank you! |
I'm having the same import error as Kinggerm described. I'm using python 3.7 and a virtual environment on a Unix HPC. I was able to install and run successfully on my MacBook, but it takes my laptop 12+ hours to run p4 heterogeneity tests on my phylogenomic data sets, so I would like to install in on an HPC. When I run
The only warnings besides NumPy API warning are:
After running
I get this error:
I'm stuck, any suggestions would be very much appreciated! |
jbernot --- Confusingly, p4 is the name of the Python package, and it is also the name of a script that I like to use that I provide with the package (bin/p4 in the p4 package). That script is run from your shell, not from within Python. I put it in my path to make it easy to use. So you would run "p4 --help" from your bash or zsh prompt, not from within interactive Python. You don't need to use the p4 script, and it is more "pythonic" to do the usual "import p4" from within Python rather than using the p4 script, but I am in the habit of using the script, and so I provide it. The warning you quoted appears to have come from numpy. I think that can be ignored. |
Oh that makes sense! My installation is working now on the HPC -- thank you pgfoster! |
I use mac and pyenv. My global python version is 2.7.12.
I tried to install p4 with sudo or in the home path, I got this:
The text was updated successfully, but these errors were encountered: