-
Notifications
You must be signed in to change notification settings - Fork 80
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
sourmash not installing in binder: "No module named 'importlib.metadata'" error #2503
Comments
This is the binder repo, I will not make any changes until its safe :D this is the binder launch link Ive been using: https://mybinder.org/v2/gh/hehouts/lab14_binder.git/HEAD/?urlpath=rstudio |
some oddities 😁
`/srv/conda/envs/notebook/bin/python -V' is Python 3.7.12 default Python in yay. |
HI there - i have the same error when trying to install in on a SLURM cluster using conda (sourmash) [XXX@hpclogin01 ~]$ pip show sourmash so... is there a solution? |
yep - looks like the solution is to make sure that python >= 3.8. As you can see @sapuizait yours is python 3.7 -
let us know if that works! |
yay! seems to be working! |
Food for thought: should we change the conda install instructions from We sort of kept the (or, more extremely, we could rename |
This is a symptom of not specifying the version of sourmash you want to install. Newer versions are not compatible with Python 3.7 which means the installer looks for previous versions which are compatible and they find sourmash version 3.3.0. And this release is apparently buggy. A solution would be to specify a recent version of sourmash in the docs. e.g.
This will tell the user that is not possible to resolve the dependencies if it is run in a conda environment using Python versions < 3.8 |
right, two issues here -
yep. I'd like to avoid having sourmash version numbers hardcoded in the docs too much, because we always forget to update them, but it might also be something we can put into the release procedure. |
I am not sure if this would have the desired effect, but you could try and release a new build restricintg the Python versions for older versions of sourmash. See: https://conda-forge.org/docs/maintainer/updating_pkgs.html#updating-recipes |
our default binder/environment.yml in the sourmash repo installs python 3.10 and sourmash 4.8.2 without any version spec, so that's good, I think. not sure if binder updated the default python version or what. (you can run binder from here, for example) |
Fixes #2604 This PR fixes links to binder tutorials that apparently have been broken since 2020 😱 , when the docs were switched over to myst-parser in #1021. To be fair, it's the kind of subtle bug that would leave users scratching their head going "maybe it's me?" - the links simply went back to the tutorial page... not sure why they weren't flagged by sphinx or myst-parser as being bad!? This PR also updates environment.yml to properly build: * includes pip * specifies minimum python version * specifies minimum sourmash version ref #2503 for why specifying the minimum sourmash and/or python versions can be important! And, finally, I ran and fixed all the notebooks... Note: I confirmed that this branch launches properly in binder. The URL is: https://mybinder.org/v2/gh/sourmash-bio/sourmash/fix/tutorial-nb --------- Co-authored-by: ccbaumler <63077899+ccbaumler@users.noreply.github.com>
Hello!
I am trying to set up a binder using sourmash, and I am getting the following error:
if I run
pip show sourmash
in the binder terminal, I getcc: @luizirber , @ctb
The text was updated successfully, but these errors were encountered: