-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bizarre mamba installation error for a python 3.7.16 environment #70
Comments
Another workaround solutionInterestingly, I was able to "kind of" install strainFlye into the mamba install -c bioconda strainflye "python=3.7" This downgraded python from 3.7.16 to 3.7.13. But running
This implies that something is wrong with scikit-bio 0.5.7, the version currently installed in the
And now strainFlye seems to work! Sheeeeesh. So it seems like forcing the use of scikit-bio 0.5.6 should work. I think. Not sure why (maybe something in the scikit-bio 0.5.7 Cython changes broke something?), but it's nice to have another way to resolve these bizarre problems. |
* DEP: try pinning skbio >= 0.5.8 #68 * BLD: see about using mamba for CI should be a lot faster, based on experiences with it in wotplot * DEP/BLD: fix install i thiiiink this should address the mamba-takes-forever-on-github- actions crap -- at least, it worked locally. but double-check; i may need to do the thing of creating an empty env and then updating that from the yaml (see mamba-org/mamba#633 (comment)) * DEV/DOC: small updates re: mamba, conda * DEV/DOC: words * DOC: more detailed installation instructions - mention mamba (close #50) - mention install-from-source as backup option * DOC: try to fix table formatting in readme * DOC: you know what maybe we don't need that table * DOC: troubleshooting installation section * DOC: mention #70 in install instruction sec * DOC: words
Description of the problem
Try running the following:
mamba create -n very-sus "python = 3.7"
On my machine this creates a small environment with, as of writing, Python 3.7.16. So far so good.
Now let's try to install strainFlye into this environment:
This gives me a bizarre error:
This is confusing, because the
very-sus
environment doesn't contain numpy or scikit-bio. (Runningconda list | grep numpy
doesn't output anything; same forconda list | grep scikit
orconda list | grep skbio
.) So why does mamba assume we have to use such an ancient version of scikit-bio (and thus an ancient version of numpy)?We can directly install a relatively recent version of scikit-bio without problems:
mamba install -c conda-forge "scikit-bio>=0.5.6"
On my machine this installs numpy 1.21.6 and scikit-bio 0.5.7. Again, that seems normal.
So you'd think that installing strainFlye should work now, right? But running
mamba install -c bioconda strainflye
at this point gives the following insane error message:Now that's interesting, because we are literally using Python 3.7. To prove this,
conda list | grep python
gives:Weird, right?
I think this is a symptom of a problem with mamba / conda -- this sort of obviously incorrect error message has been documented in a few other places (example 1, example 2, example 3).
Workaround solution
It seems like creating a conda environment with strainFlye in it (rather than installing strainFlye into an existing conda environment) works fine, though:
This creates a working environment with strainFlye (and Python 3.7.6, and numpy 1.21.5, and scikit-bio 0.5.6) installed. Soooooo if this problem comes up again for users, they should be able to work around it by just creating a new environment. Eeesh.
The text was updated successfully, but these errors were encountered: