venv error on Debian 12?

I cleanly installed Debian 12 and am trying to use 'venv'. I'm getting the following error. Does anyone know how to resolve this? Am I perhaps missing some packages? $ python3 -m venv pt Traceback (most recent call last): File "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 112, in _get_module_details File "/usr/lib/python3.11/venv/__init__.py", line 7, in <module> import logging File "/usr/lib/python3.11/logging/__init__.py", line 43, in <module> import threading File "/home/vboxuser/threading.py", line 3, in <module> sem = threading.Semaphore() ^^^^^^^^^^^^^^^^^^^ AttributeError: partially initialized module 'threading' has no attribute 'Semaphore' (most likely due to a circular import)

Solved. I had a file called threading.py causing a circular reference On Wed, Jun 14, 2023 at 4:11 PM Nicholas Papadonis < nick.papadonis.ml@gmail.com> wrote:
I cleanly installed Debian 12 and am trying to use 'venv'. I'm getting the following error. Does anyone know how to resolve this? Am I perhaps missing some packages?
$ python3 -m venv pt Traceback (most recent call last): File "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 112, in _get_module_details File "/usr/lib/python3.11/venv/__init__.py", line 7, in <module> import logging File "/usr/lib/python3.11/logging/__init__.py", line 43, in <module> import threading File "/home/vboxuser/threading.py", line 3, in <module> sem = threading.Semaphore() ^^^^^^^^^^^^^^^^^^^ AttributeError: partially initialized module 'threading' has no attribute 'Semaphore' (most likely due to a circular import)
participants (1)
-
Nicholas Papadonis