#๐Ÿ”’ How do I fix this error?

29 messages ยท Page 1 of 1 (latest)

lyric viper
#

This error pops up when I open project's console in PyCharm

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:/Users/user/PycharmProjects/My:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException```
balmy crownBOT
#

@lyric viper

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.

atomic pier
#

Hmm, it looks like Pycharm is trying to use a virtual environment that doesn't exist or has missing files

#

Did you create the virtual environment yourself or let Pycharm manage it?

lyric viper
#

I deleted my previous project and created a new one. Pycharm made venv himself

#

Maybe I need to edit .venv/Scripts/activate.ps1?

#

Also it installs python packages to c:\users\user\appdata\local\programs\python\python312\lib\site-packages and not venv

atomic pier
atomic pier
lyric viper
#

Guess I will just transfer my files into a new project

#

It works just fine

atomic pier
#

Do you want to use a virtual environment or are you happy installing any libraries to your system python installation?

#

It sounds like you just need to reconfigure the interpreter/venv that PyCharm is using because it's trying to use one that doesn't exist

lyric viper
#

Oh it isn't, the name 'My Stuff' makes that error. Strange

lyric viper
#

For some reason it stopped working

#

Any other name works fine

atomic pier
#

ahhh, maybe it's because there's a space in the name

lyric viper
#

Yeah I was thinking about it right now

#

Let me change it

atomic pier
lyric viper
#

Now error is gone, I really thought I was able to use spaces in naming things before

#

Thanks anyway

atomic pier
#

I would have expected PyCharm to support it fine, but yeah, sometimes spaces in paths do cause issues

lyric viper
#

!close

balmy crownBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.