LLNL / scraper

Python library for getting metadata from source code hosting tools
MIT License
49 stars 23 forks source link

github-py pinned version won't work for newer python #59

Closed vsoch closed 2 years ago

vsoch commented 2 years ago

The pin here:

https://github.com/LLNL/scraper/blob/471e06df3c2547b181974b50000dbe32dd86cf54/requirements/production.txt#L1

Means that running in default Python for ubuntu:22.04, we hit this error:

ImportError: cannot import name 'Callable' from 'collections'

triggered in the github3 module. The version here (1.2.0) seems a bit old because latest is 3.2.0 https://pypi.org/project/github3.py/.

The bug was actually fixed two years ago:

image

so likely if you had a reason to not want to update to latest you could try an older one, here is the commit and the release after that is version 2.0.0. https://pypi.org/project/github3.py/2.0.0/.

Thank you! This broke the automated data parsing for the radius interface, so it would be good to fix soon. It looks like you have CI setup so I'll take a shot at tweaking this and we can go from there. Thank you!