Stefano,

For the pep517 issue, try importing pep517.check or pep517.build:

(foo) root@3edb3d8dca37:/# python3 -m pep517.build
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/foo/lib/python3.8/site-packages/pep517/build.py", line 6, in <module>
    import toml
ModuleNotFoundError: No module named 'toml'


Upgrading it does indeed work fine, the main issue is that it's reported as 
being installed already but the installed version doesn't work. This is because 
it's bundled with pip (and gets injected into the virtualenv even though it 
shouldn't (the main reason for this bug report)), and this version of pip 
bundled conflicting versions of libraries. They bundled a pep517 version that 
wants toml, but bundled pytoml alongside it instead of toml.

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

Title:
  python3 virtualenvs include (broken) bundled pip deps

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

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

Reply via email to