question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip list is unable to mention architecture

See original GitHub issue

Description

If someone happens to upgrade from intel to aarch64, pip will not be able to help him identify any packages that are using wrong architecture. They would have to either uninstall or use install --force in order to address the issue.

Expected behavior

At least the JSON output of pip list should mention architecture when that is avaiable but now it does not do this:

python -m pip list --format=json

Ideally pip should all be smart enough to detect a mismatch in architecture and ignore or warn about mismatched packages. For example pip check would be a good candidate for that too.

pip version

22.0.4

Python version

3.11.3

OS

MacOS

How to Reproduce

It might be harder to reproduce the way I got into it, as I used Apple Migration Assistant to migrate from old computer to the new one but I guess you could just force pip to install a binary wheel using a different architecture.

Once this happens, you are kinda clueless if the wheel is usable or not, at least until you try to do an import from the binary parts.

Output

No response

Code of Conduct

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
uranusjrcommented, May 4, 2022

Personally I am +1 to adding this to pip check.

1reaction
domdfcodingcommented, Apr 21, 2022

Doesn’t the .dist-info/WHEEL file include the wheel tags, from which the architecture can be parsed? I can’t see an explicit requirement from PEP 427 that the file be copied over from the wheel, but I think all tools do in practice.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Architecture Not Supported Error when installing nltk with pip ...
since the error message shows #error architecture not supported , maybe you want to tell pip which architecture you are using.
Read more >
User Guide - pip documentation v22.3.1
Logically, a Requirements file is just a list of pip install arguments placed in a file. Note that you should not rely on...
Read more >
platform — Access to underlying platform's identifying data ...
Returns the (real) processor name, e.g. 'amdk6' . An empty string is returned if the value cannot be determined. Note that many platforms...
Read more >
How to install Azure SDK library packages for Python
Installing packages for all users with sudo pip install isn't supported. You can use any package name listed in the package index. On...
Read more >
Python package guidelines - ArchWiki
If no pyproject.toml can be found or it fails to contain a [build-system] table, it means the project is using the old legacy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found