Closed Enderbyte09 closed 1 year ago
Can you try installing virtualenv too? I bet that will just cause it to work, as that looks like something is wrong with venv ensurepip, which is built into Python. Looking at /usr/lib/python3.10/venv/__init__.py
to see how you can get to that line without defining cmd
would be interesting. What system are you on? Exactly what version of Python is that? 3.10.what?
Ahh, wasn't reading the exception correctly, ensurepip (also a standard library module) is not able to get pip.
I am on Kubuntu 23.04 Beta, with Python 3.10.9. Indeed, venv was the issue and reinstalling virtualenv somehow fixed it. Repeated apologies for clogging up issues.
virtualenv is used instead of venv if it's present. My guess is ubuntu is messing with these files as usual (that's not the actual line number in the CPython venv source for 3.10.9), so they've broken venv. Debian strips out ensurepip, so they are doing something to cause venv to not use it (which obviously is currently broken). You might want to raise an issue before 23.04 final ships. :)
Problem description
I am trying to build by first package. However, when I run python3 -m build, I get a NameError that cmd is not defined.
Here is the full command output