Closed DanLipsitt closed 2 years ago
@frostming do you use PyCharm or do we need to see if somebody else can reproduce this
Would you try this solution: https://github.com/David-OConnor/pyflow#gotchas and tell me if that works? I am not using Pycharm BTW.
Thanks @frostming. Unfortunately the intructions in the Pyflow doc do not help.
I'm using 2021.3 Community edition at home and it's working fine for me. Two things off the top of my head:
/Users/dlipsitt/src/erp-db-admin/__pypackages__/3.9/lib
folder is actually showing up as a source folder on the right.pdm use
and pick a 3.9 Python from the list, but because my requires-python was still set to ">=3.8.5,<3.9"
in pyproject.toml, pdm silently fixed it to 3.8 version.Hi! The guide in the docs works for PyCharm for me (PyCharm 2021.3.2). I am also using pyenv
to manage Python versions on my machine: maybe you can try that too and see if the error still persists? Or might that be related to the fact that you're using the M1 mac? (I am still using an Intel one.)
As a side note: there is a feature request on JetBrains' YouTrack to add support for PDM, as it was done for Poetry already. If interested, please add a thumbs up to hopefully increase ints priority.
It seems to be working, i am going to close this issue.
What fixed it for me was adding __pypackages__/3.*/lib
to sources (instead of __pypackages__
).
Marking
__pypackages__/<major.minor>/lib
as a sources root as described in the docs is no longer working for me. All dependencies show up asunresolved reference
and are underlined with a red squiggle in the editor. I believe this started happening when I upgraded to Pycharm 2021.3. I have verified that the libraries in question are present in__pypackages__
.