Hi,

I just cleanly installed Debian 11 and am trying to create a virtual
environment for Python.

I get the following error, does anyone know how to resolve this?  Am I
missing some packages that need to be installed?

1843 [deb12:~]$ 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)

Reply via email to