Skip to content
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

Cannot install it lack of permissions. #2

Closed
SirMartin opened this issue Aug 30, 2022 · 5 comments
Closed

Cannot install it lack of permissions. #2

SirMartin opened this issue Aug 30, 2022 · 5 comments

Comments

@SirMartin
Copy link

Hi I am trying to install the plugin, but I got this error. Any idea?

Installation failed: 
Collecting pdm-autoexport
  Using cached pdm_autoexport-0.1.1-py3-none-any.whl (4.0 kB)
Installing collected packages: pdm-autoexport
ERROR: Could not install packages due to an OSError: [Errno 13] Permission 
denied: '/usr/local/lib/python3.10/dist-packages/pdm_autoexport'
Consider using the `--user` option or check the permissions.
@frostming
Copy link
Collaborator

The error cause is obvious, try raising the permission.

@SirMartin
Copy link
Author

I don´t have PDM as Sudo level, and I cannot pass the --user, I suppose is part of pip, and PDM doesn´t forward it to pip.

@frostming
Copy link
Collaborator

How did you install PDM, via any recommended way or system package manager?

@SirMartin
Copy link
Author

I think I installed it from pip, not sure if time ago was a recommended way, I uninstalled and installed in an actual way, and worked fine with the plugin installation. Thanks.

Another question, if I want to install this plugin also in a docker container in the future, installing PDM through pip could give issues to the plugin installation. Because in the PDM doc, speaking of docker it installs via PIP.

Thanks again for your work and support.

@frostming
Copy link
Collaborator

To install plugin into the same location as PDM you must have the same permission as when you installed PDM.

@frostming frostming closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants