Skip to content
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

Cannot install Scancode from source on Python 3.8.x #2021

Open
pombredanne opened this issue Apr 28, 2020 · 7 comments
Open

Cannot install Scancode from source on Python 3.8.x #2021

pombredanne opened this issue Apr 28, 2020 · 7 comments
Labels

Comments

@pombredanne
Copy link
Member

There are issues reported where url.py cannot be recompiled and our url.py dependency is incorrect

@Pratikrocks
Copy link
Contributor

Hi @pombredanne ,are you referring to the url wheels in the thirdparty directory which is not compatible with Py3.8?

pombredanne added a commit that referenced this issue Apr 29, 2020
The latest url.py is written in C++
We do not need that speed but we need portability and pure
python. The new urlpy is a fork of url.py v.2.0 that has been ported to
Python 3 and works on 2 and 3.

Signed-off-by: Philippe Ombredanne <[email protected]>
@ncoghlan
Copy link

I can confirm that installing on Python 3.8 doesn't work at all, and the first failure encountered is because url<1.0.0,>=0.4.2 picks up the sdist-only release at https://pypi.org/project/url/0.4.2/, which in turn includes old Cython generated code that accesses fields that are no longer public in Python 3.8+.

Other reports: seomoz/url-py#67

@ncoghlan
Copy link

I tried installing current git develop branch instead:

pipenv install git+https://github.com/nexB/scancode-toolkit.git@72850bd5#egg=scancode-toolkit

However, that still failed, as the dependency on url.py is still declared in develop - the switch to urlpy hasn't been merged yet.

I'm now trying the tip of #1835 instead.

@ncoghlan
Copy link

This version installed (tip of #1835 at time of writing):

pipenv install git+https://github.com/nexB/scancode-toolkit.git@10f54bf#egg=scancode-toolkit

@antgel
Copy link

antgel commented Sep 2, 2020

Thanks to all who contributed to this issue. It would be great to have a release containing the fix. :)

@pombredanne
Copy link
Member Author

@antgel It is coming :) I am furiously merging branches at the moment and should tag a release either today or tomorrow !
Thank you for your patience!

@pombredanne
Copy link
Member Author

@antgel note that you should be able to use the tip of the develop branch alright in the meantime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants