white-pager-32496
11/25/2022, 3:02 PMexport
and Pycharm
. After some digging I found that the exported virtualenv has a circular dependency in symlinks š¤Æ
āāā python -> /path/to/repo/dist/export/python/virtualenvs/python-default/3.9.15/bin/python3
āāā python3 -> python
āāā python3.9 -> python
white-pager-32496
11/25/2022, 3:03 PMwhite-pager-32496
11/25/2022, 3:08 PMāāā python -> python3.10
āāā python3 -> python3.10
āāā python3.10 -> /path/home/.pyenv/versions/3.10.8/bin/python3.10
white-pager-32496
11/25/2022, 3:13 PMpython-default/lib
and not the ones under python-default/3.10.8/lib
- which is where all of the third party deps are installed.white-pager-32496
11/25/2022, 3:14 PMenough-analyst-54434
11/25/2022, 3:51 PMrm -rf dist
and re-run ./pants export --resolve=python-default
you should get something like:
$ tree -d dist/export/python/virtualenvs -L 5
dist/export/python/virtualenvs
āāā python-default
āāā 3.7.14
āāā bin
āāā include
āāā lib
ā āāā python3.7
ā āāā site-packages
āāā lib64 -> lib
āāā pydevd_attach_to_process
ā āāā common
ā āāā linux_and_mac
ā āāā winappdbg
ā ā āāā plugins
ā ā āāā win32
ā āāā windows
āāā _pydevd_bundle
āāā _pydevd_frame_eval
17 directories
There is exactly 1 venv there with one bin dir, etc.enough-analyst-54434
11/25/2022, 3:54 PM