RESOLVED FIXED 290598
Define an accurate list of aliases for each autoinstalled package
https://bugs.webkit.org/show_bug.cgi?id=290598
Summary Define an accurate list of aliases for each autoinstalled package
Sam Sneddon [:gsnedders]
Reported 2025-03-27 19:48:22 PDT
We've been having various systems fail like: ``` File "/Volumes/Data/sample.py", line 4, in <module> from attrs import define, field, evolve File "/Library/Python/3.9/site-packages/attrs/__init__.py", line 3, in <module> from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/buildbot/Library/webkitpy/autoinstalled/python-3-arm64/attr/__init__.py) ``` This is ultimately because we define: ``` AutoInstall.install(Package('attr', Version(21, 3, 0), pypi_name='attrs')) ``` This results in the autoinstaller not knowing that `attrs` release also provides an `attrs` module, thus it doesn't get auto-installed till the system-installed `attrs` is trying to import it… and then we're dealing with multiple incompatible versions, because why would you have an `attrs` module from version 25.3.0 and an `atto` module from version 21.3.0. For things we're installing with wheels we can look in the distribution to find out what's in it, and warn if they differ, though that is maybe future work.
Attachments
Sam Sneddon [:gsnedders]
Comment 1 2025-03-27 19:49:45 PDT
Radar WebKit Bug Importer
Comment 2 2025-03-27 19:50:19 PDT
EWS
Comment 3 2025-03-31 14:38:35 PDT
Committed 292966@main (082fbf947bdf): <https://commits.webkit.org/292966@main> Reviewed commits have been landed. Closing PR #43164 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.