You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing from pipx.util fails due to circular dependency unless pipx.paths is imported first. It seems pipx.util became dependent on pipx.paths in #1281. pipx.paths then tries to import pipx_wrap from pipx.util and fails.
Traceback (most recent call last):
File "/Users/aorr1/Library/Application Support/JetBrains/PyCharm2023.3/scratches/scratch_19.py", line 1, in <module>
import pipx.util
File "/Users/aorr1/Library/Caches/pypoetry/virtualenvs/project-dJ3m09UH-py3.11/lib/python3.11/site-packages/pipx/util.py", line 24, in <module>
from pipx import paths
File "/Users/aorr1/Library/Caches/pypoetry/virtualenvs/project-dJ3m09UH-py3.11/lib/python3.11/site-packages/pipx/paths.py", line 10, in <module>
from pipx.util import pipx_wrap
ImportError: cannot import name 'pipx_wrap' from partially initialized module 'pipx.util' (most likely due to a circular import) (/Users/aorr1/Library/Caches/pypoetry/virtualenvs/project-dJ3m09UH-py3.11/lib/python3.11/site-packages/pipx/util.py)
Expected behavior
import succeeds
The text was updated successfully, but these errors were encountered:
Importing from
pipx.util
fails due to circular dependency unlesspipx.paths
is imported first. It seemspipx.util
became dependent onpipx.paths
in #1281.pipx.paths
then tries to importpipx_wrap
frompipx.util
and fails.script to repro:
Expected behavior
import succeeds
The text was updated successfully, but these errors were encountered: