Update deprecated pkg_resources api in edge._ops#13513
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13513
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 1 New Failure, 9 Unrelated FailuresAs of commit 7fca037 with merge base 2a58471 ( NEW FAILURE - The following job has failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@digantdesai This one is not in Arm folders, so we let someone at Meta review it. |
|
I guess this is OK. Couple of points,
|
Working on updating all occurrences. What's the best way to test that it works with wheels? |
We have a CI job https://github.com/pytorch/executorch/actions/runs/17097212094/job/48484358746 which builds wheels. You can either do same steps locally or by manually triggering the build job on this PR and then downloading the wheel and testing locally. |
1072a85 to
6b10ff7
Compare
6b10ff7 to
cc96755
Compare
|
Testing Linux wheels here |
|
I have tested according to the testplan and it was ok, what do you think @digantdesai |
|
Thanks LGTM, make sure the ci is clean. |
pkg_resources is deprecated and set to be removed from setuptools as early as end of 2025. Since ET doesn't have an upper bound on the setuptools dependency this could be an issue. Additionally, this outputs a warning message everytime an executor_runner is built. This change updates the pkg_resrouces api to the more modern importlib.resources Signed-off-by: Erik Lundell <[email protected]> Change-Id: Id6cdc8b5e4e67e3d59cc85ec3c07ee521cc1fc69
c8bcbd2 to
7fca037
Compare
|
New failed macos job ran successfully here: https://github.com/pytorch/executorch/actions/runs/17371877730/job/49323743831. |
pkg_resources is deprecated and set to be removed from setuptools as early as end of 2025. Since ET doesn't have an upper bound on the setuptools dependency this could be an issue. Additionally, this outputs a warning message everytime an executor_runner is built.
This change updates the pkg_resrouces api to the more modern importlib.resources
Test plan:
Build linux wheels using ci.
Download python 3.10 and wheel and install in new venv
run
in a fresh python interpreter for every import
The imports should not crash (due to importlib), and should not generate the warning message that it currently does
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218