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
[Y ] I have searched the issue tracker and believe that this is not a duplicate.
Make sure you run commands with -v flag before pasting the output.
Steps to reproduce
My project is pyplist (Py 3.7.4 virtual env., Mac OS Ventura 13.0.1, Intel i5), it has setup.py defined, and it works fine on its own. So I tried to use pdm import to generate a pyproject.toml, and I get the error below:
$ pip install pdm
$ pdm import setup.py
$ pdm import setup.py
Traceback (most recent call last):
File "/Users/srm/Documents/dev/pyplist-env/bin/pdm", line 5, in <module>
from pdm.core import main
File "/Users/srm/Documents/dev/pyplist-env/lib/python3.7/site-packages/pdm/core.py", line 29, in <module>
from pdm.project import Project
File "/Users/srm/Documents/dev/pyplist-env/lib/python3.7/site-packages/pdm/project/__init__.py", line 1, in <module>
from pdm.project.config import Config, ConfigItem
File "/Users/srm/Documents/dev/pyplist-env/lib/python3.7/site-packages/pdm/project/config.py", line 86, in <module>
class Config(MutableMapping[str, str]):
File "/Users/srm/Documents/dev/pyplist-env/lib/python3.7/site-packages/pdm/project/config.py", line 123, in Config
platformdirs.user_config_path("pdm") / "global-project",
AttributeError: module 'platformdirs' has no attribute 'user_config_path'
Actual behavior
Error above
Expected behavior
A pyproject.toml file generated from setup.py.
Environment Information
# Paste the output of `pdm info && pdm info --env` below:
$ pdm info --env
Traceback (most recent call last):
File "/Users/srm/Documents/dev/pyplist-env/bin/pdm", line 5, in<module>
from pdm.core import main
File "/Users/srm/Documents/dev/pyplist-env/lib/python3.7/site-packages/pdm/core.py", line 29, in<module>
from pdm.project import Project
File "/Users/srm/Documents/dev/pyplist-env/lib/python3.7/site-packages/pdm/project/__init__.py", line 1, in<module>
from pdm.project.config import Config, ConfigItem
File "/Users/srm/Documents/dev/pyplist-env/lib/python3.7/site-packages/pdm/project/config.py", line 86, in<module>
class Config(MutableMapping[str, str]):
File "/Users/srm/Documents/dev/pyplist-env/lib/python3.7/site-packages/pdm/project/config.py", line 123, in Config
platformdirs.user_config_path("pdm") / "global-project",
AttributeError: module 'platformdirs' has no attribute 'user_config_path'
The text was updated successfully, but these errors were encountered:
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
My project is
pyplist
(Py 3.7.4 virtual env., Mac OS Ventura 13.0.1, Intel i5), it hassetup.py
defined, and it works fine on its own. So I tried to usepdm import
to generate apyproject.toml
, and I get the error below:Actual behavior
Error above
Expected behavior
A
pyproject.toml
file generated fromsetup.py
.Environment Information
The text was updated successfully, but these errors were encountered: