I have searched far and wide, and have followed just about everything... I cannot figure out why this keeps happening to my Python package I've created. It's not a simple "install dependency and you're good" as it's my own project I am attempting to create.
Here's my file structure:
-jarvis-discord
--jarvis_discord_bot
---__init__.py
---jarvis.py
---config.py
---cogs
----__init__.py
----all the cogs are here
The error given:
++ PWD
line 3: PWD: command not found
export PYTHONPATH=
PYTHONPATH=
python3 jarvis_discord_bot/jarvis.py
Traceback (most recent call last):
File "/buddy/jarvis-discord/jarvis_discord_bot/jarvis.py", line 40, in <module>
from jarvis_discord_bot.cogs import (
ModuleNotFoundError: No module named 'jarvis_discord_bot'
I've tried creating a pipenv
as well and have had no luck either. Same error as above. There's something wrong with how I'm setting up my Python environment... granted I'm also a newbie.
The weird thing, to top this all off, is that it runs locally on my own machine just fine. So I am at a complete and utter loss for what to do and could use some help and direction on where to go from here.
Thanks!