New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug with new 2.14 version - install plugin in editable mode & from local path #2820
Comments
According to documentation, you miss the [tool.pdm]
plugins = [
"-e file:///local/path/projects/plugins",
] Can you try with it ? |
It is still not working sorry, I get the same error: pdm install --plugin
ERROR: Failed to load plugin myplugin_pdm_plugin=pdm_myplugin.plugin:main: No module named 'pdm_myplugin'
Plugins are installed successfully into .pdm-plugins. |
We've got the same errorwith pdm 2.14.0. We rolled pdm back to 2.13.2 and it works.
|
Fixes #2820 Signed-off-by: Frost Ming <me@frostming.com>
Hello, thank you for your fix. However for us is still failing |
remove the .pdm-plugins directory and try again with the main branch |
Yes yes, of course I did it. I event created a new fresh virtual machine and did everything from scratch, and still the same error, same with other colleagues... |
did you get a chance to check the files installed under pdm-plugins site-packages? especially check if the .pth files are installed correctly |
Actual behavior
I have recently upgraded the PDM version from 2.13.2 to 2.14 and I have a bug.
Since the new 2.14 version, it is not possible to install plugins using local paths and editable mode. In the past, we could install our plugins by using our local path in editable mode. Using this syntax in our pyproject.toml files:
[tool.pdm] plugins = ["-e /local/path/projects/plugins"]
And then, by doing pdm install --plugins we could easily install our plugin without having to build it. However, since the last release, we get the following error when trying to install it:
ERROR: Failed to load plugin myplugin_pdm_plugin=pdm_myplugin.plugin:main: No module named 'myplugin'
In the previous versions we could use this functionality, that now it is not working. Could you please clarify what happened with this functionality?
The text was updated successfully, but these errors were encountered: