#๐Ÿ”’ python virtual environment write protected

46 messages ยท Page 1 of 1 (latest)

arctic cliff
#

i was trying to remove the .venv and for some reason it says permission denied for many files idk whats wrong

spark mossBOT
#

@arctic cliff

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

arctic cliff
#

and apparently its just for lib folder

patent mason
#

what created the .venv?

#

and how did you try to remove it? rm -rf .venv?

arctic cliff
#

pycharm ide

patent mason
#

ok, can you go check the files that it wouldn't remove

desert venture
#

file could be in use..

patent mason
#

no, this is not Windows

arctic cliff
arctic cliff
patent mason
#

I'm interested in the ownership and permissions of those files

arctic cliff
#

alright

patent mason
#

well that is interesting

#

did you install something there as root?

arctic cliff
#

well nope i didn't

#

i did install numpy and matplotlib which was done on my behalf

#

by pycharm

fringe jetty
arctic cliff
#

i was not

#

all was done without root privileges

fringe jetty
#

that's strange, since something did elevate your privileges to root while running those commands
otherwise i can't see how root would be the owner of those files

arctic cliff
#

well thats super weird like it should not have done that

#

i didn't give permission to any such

#

the another venv i created got deleted without any problem idk why this is trippin lmao

#

should i just remove it with root

fringe jetty
#

either way, you can easily solve it by elevating your privileges just to remove the files and folders

arctic cliff
#

i have deactivated it anyway

#

so i think i will just do it

#

oh one thing to be noted

#

i was using flatpak version before

#

which was used to create that env

#

later i downloaded the one from the official site

#

and created the new one from there

fringe jetty
#

no idea, i mostly stay away from flatpak and snap packages

arctic cliff
#

well now i have the official

#

which works as intended

#

alright ig that was strange lmao but thank you guys

spark mossBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.