-
Notifications
You must be signed in to change notification settings - Fork 4
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
Weird installation errors on Mac (humann2 and metaphlan2) #18
Comments
Hi Kevin, Can you run the following two commands and see what you get? The error message you are seeing gets triggered from a non-zero exit code when running the first command. The python2 is used to differentiate between python2 and 3. Linux has both installed plus "python" which I have always seen point to python2. There was a MacOS user in the lab that had installed python and it pointed to python3 which is why we have "python2". It sounded like this was common but maybe your setup is more common (python points to python2 on Mac)? I am sorry I don't have a Mac so am not able to debug default installations. Thanks, |
|
Hi Kevin - Thanks for checking. I think it is either one of two things: 1) you might have a slightly different version of ruby so the return code check does not operate the same way as I have seen it in linux 2) the homebrew formulas pick up a different python in your $PATH and it has a different return code. For the first possibility I modified the check to make it as specific as possible. The prior version and current version both operate as expected on linux. If you can try the latest version of the formulas maybe they will work with your configuration. If not, the next step would be to check the exact python the formulas are calling and what ruby gets for a return code. Thanks, |
For what it's worth, I've tried this now on several different Macs, including those with only the default python 2.7 install, and I've had the same error on all of them. |
I just tried again with the new formula, still no go. Also, attempted to install with the option
|
Hi Kevin - It looks like the install is having issues with installing scipy from source. There are options in the humann2/metaphlan2 formulas to bypass installing the python dependencies (ie numpy/scipy/matplotlib). The option is "--without-dependencies". Would you try installing with this option and then manually installing numpy/others with commands like "brew install numpy" (or you might already have them installed). This way you can use the brew bottles if available for your OS instead of having to install from source. The only downside is you will likely install newer versions of the dependencies than those tested with humann2/metaphlan2. The only issue I know of is that the latest scipy operates differently for normalization so you could see an error message when running humann2_barplot. We plan to have this addressed in the next release of humann2. Let me know if this resolves your issue and I will close the ticket. Thanks, |
@ljmciver That worked for metaphlan2. But now humann2 is getting a different error (before it was failing on the metaphlan2 install step). This was also solved by using the
|
Hi Kevin - Glad it sounds like it is working. Please reopen this ticket if there is another outstanding issue that I have not yet addressed. Another option for the humann2 Python.h error would be to uninstall/reinstall python as it looks like it can't find its header files. Thanks, |
Metaphlan2
For the record, Mac OSX has python 2.7 installed as part of the system software, so all OSX installations should have it. I also have an additional python2 installed through homebrew, but I tried this on a system that doesn't, and got the same message.
Humann2
The one in
brewsci/science
seems to work for both humann2 and (because it's installed as a dependency) metaphlan2. Though I think it's installing the python3 version.The text was updated successfully, but these errors were encountered: