DeprecationWarning: pkg_resources is deprecated as an API. The 'ppa-dev-tools==0.5.0' distribution was not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ppa-dev-tools |
Fix Released
|
Critical
|
Unassigned |
Bug Description
I can't get ppa commands (ppa --help gives the same error) to work anymore:
--->
% ppa wait ppa:nteodosio/
/usr/local/
__import_
Traceback (most recent call last):
File "/usr/local/
__import_
^^^
File "/usr/lib/
@_call_aside
^^^^^^^^^^^
File "/usr/lib/
f(*args, **kwargs)
File "/usr/lib/
working_set = WorkingSet.
File "/usr/lib/
ws.
File "/usr/lib/
needed = self.resolve(
File "/usr/lib/
dist = self._resolve_dist(
File "/usr/lib/
raise DistributionNot
pkg_resources.
<---
Related branches
- Athos Ribeiro (community): Approve
- Mitchell Dzurick (community): Approve
- PpaDevTools Developers: Pending requested
- Canonical Server packageset reviewers: Pending requested
- Canonical Server Reporter: Pending requested
-
Diff: 190 lines (+31/-79)5 files modifiedINSTALL.md (+6/-6)
TESTING.md (+11/-2)
dev/null (+0/-67)
pyproject.toml (+9/-1)
tox.ini (+5/-3)
description: | updated |
Changed in ppa-dev-tools: | |
status: | Triaged → In Progress |
Thanks for reporting this Nathan, I've reproduced the deprecation warnings on jammy:
$ sudo python3 ./setup.py install python3/ dist-packages/ pkg_resources/ __init_ _.py:116: PkgResourcesDep recationWarning : 1.16.0-unknown is an invalid version and will not be supported in a future release python3/ dist-packages/ setuptools/ installer. py:27: SetuptoolsDepre cationWarning: setuptools. installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
/usr/lib/
...
/usr/lib/
I've been aware of this (LP: #1989617), guess it's time to switch build systems.