why is binder not finding a package?

Question:

In my requirements.txt I have geosampler==0.1.0 which then leads to the following error:

ERROR: Could not find a version that satisfies the requirement geosampler==0.1.0 (from versions: none)
ERROR: No matching distribution found for geosampler==0.1.0

This package and version are available on PyPI: https://pypi.org/project/geosampler/

Why is binder failing?

Asked By: G. Macia

||

Answers:

Have you can pip install after adding it? It almost looks as though it’s not installed.

Answered By: Matt Hatcher

You made Python 3.9 or greater a requirement for your geosampler package (specifically shown here in left sidebar, towards the bottom ‘Requires: Python >=3.9, <4.0‘). Launches currently from the requirements binder repo example are only Python 3.8.12. See current version of runtime.txt.

You can go to this repo that is based on the requirements.txt example & has been configured to use Python 3.9 (Python 3.9.12 at present) by editing runtime.txt, and click on the badge to launch a session served via MyBinder.org. (Or just click here to launch.) You’ll see there I added geosampler==0.1.0 in the list in requirements.txt and the image builds properly & when the session launches, running import geosampler in a cell works.

Answered By: Wayne
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.