And.... no, this is a bug in pathlib itself, not pip or python3.10 in
debian:

root@warm-bird:/tmp/pathlib-1.0.1# python3
Python 3.10.2 (main, Feb 26 2022, 08:21:15) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pathlib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/pathlib-1.0.1/pathlib.py", line 10, in <module>
    from collections import Sequence
ImportError: cannot import name 'Sequence' from 'collections' 
(/usr/lib/python3.10/collections/__init__.py)

See the deprecation notice on:
https://pypi.org/project/pathlib/

The pathlib PyPI package hasn't been ported to Python 3.10. It masks the
pathlib stdlib module, imported by setuptools, and so blows up pip.

Use pathlib2 instead.

** Changed in: python-pip (Ubuntu)
       Status: Confirmed => Invalid

** Changed in: python-pip (Ubuntu)
   Importance: High => Undecided

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1962819

Title:
  pip fails to install pathlib in Ubuntu 22.04 with "setuptools is not
  available in the build environment"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1962819/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to