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

Error on install: Cannot satisfy extractcode-libarchive/7z #104

Closed
cco3 opened this issue Feb 18, 2021 · 7 comments
Closed

Error on install: Cannot satisfy extractcode-libarchive/7z #104

cco3 opened this issue Feb 18, 2021 · 7 comments

Comments

@cco3
Copy link

cco3 commented Feb 18, 2021

Beginning with 434f7f9c9fca98f5842dd0f1cb56c008ec05802d, I get errors related to extractcode when running make dev.

example from: 434f7f9c9fca98f5842dd0f1cb56c008ec05802d

  Could not find a version that satisfies the requirement extractcode-libarchive==3.5.1.210122 (from scancodeio==1.0.7) (from versions: 3.1.4, 3.1.5)
No matching distribution found for extractcode-libarchive==3.5.1.210122 (from scancodeio==1.0.7)

example from 669b2b3ca1de81d0820e41de7568ec52040cb566

  Could not find a version that satisfies the requirement extractcode-7z>=16.5.210122; extra == "full" (from extractcode[full]>=21.1.21; extra == "full"->scancode-toolkit[full]==21.2.9->scancodeio==1.1.0) (from versions: 9.38.3, 9.38.4)
No matching distribution found for extractcode-7z>=16.5.210122; extra == "full" (from extractcode[full]>=21.1.21; extra == "full"->scancode-toolkit[full]==21.2.9->scancodeio==1.1.0)
@pombredanne
Copy link
Member

@cco3 sorry for that, that's likely some of the things I am battling against in scancode-toolkit.
Which OS do you there?

@pombredanne
Copy link
Member

@pombredanne
Copy link
Member

I think all pip commands should be with a --upgrade since we work from pinned requirements.

@pombredanne
Copy link
Member

@tdruez There is a problem though here where you should likely use the new --constraint etc/requirements/base.txt in https://github.com/nexB/scancode.io/blob/669b2b3ca1de81d0820e41de7568ec52040cb566/Makefile#L50
assuming you force the use of the latest pip.

I also tend to prefer fetching or bundling a virtualenv.pyz as python -m venv will work inconsistently across Python installations from distro. See https://github.com/nexB/scancode-toolkit/tree/develop/etc/thirdparty

@cco3
Copy link
Author

cco3 commented Feb 18, 2021

Which OS do you there?

I got this error on Debian (Buster).

tdruez added a commit that referenced this issue Feb 22, 2021
…ndled "venv" #104

We do not use the bundled Python 3 "venv" because its behavior and
presence is not consistent across Linux distro and sometimes pip is not
included either by default. The virtualenv.pyz app cures all these issues.

Signed-off-by: Thomas Druez <tdruez@nexb.com>
@tdruez
Copy link
Contributor

tdruez commented Feb 22, 2021

@cco3 I've implemented @pombredanne solution using the virtualenv.pyz app to bootstrap a consistent virtualenv across Python version and distro.

Could you try again with the latest main branch, commit c05bc6e4036f1f3117015858fb2cea9bbe600ba7, and le me know if it solve the installation issue on your side?

@cco3
Copy link
Author

cco3 commented Feb 22, 2021

It works, thanks!

@cco3 cco3 closed this as completed Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants