#๐Ÿ”’ Project works in Spyder and cmd but it doesn't work in VSCode nor PyCharm

4 messages ยท Page 1 of 1 (latest)

little voidBOT
#

@ruby pagoda

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.

ruby pagoda
#

I've wrote a long explanation of my issue but for some reason discord just deleted it.

Basically, my project is detection and classification of five animals with YOLOv8. For whatever reason (I've included a traceback but it got deleted...) it works in cmd and Spyder, but it doesn't work at all in PyCharm or VSCode. No venv. In fact, it tries to access a different path I had for a different project for some reason, but only tries to do so PyCharm and VSCode. I don't have any code saying to look for this path at all so it makes no sense.

I've tried redownloading YOLOv8 model, I've tried opening from Anaconda instead, I've tried print(os.getcwd()) to know where my things are and they are where they have to be.

The only thing I can think of is to recreate my project copy-pasting only my code. But I would like to know why VSCode and PyCharm don't work well in this project when cmd and Spyder have not problems at all.

Edit: I included a tree of my project and snippets of my code but as Discord deleted it...

little voidBOT
#

@ruby pagoda

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.