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

__init__.py is empty #34

Closed
EarlGreyFTW opened this issue Sep 11, 2021 · 3 comments
Closed

__init__.py is empty #34

EarlGreyFTW opened this issue Sep 11, 2021 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@EarlGreyFTW
Copy link

EarlGreyFTW commented Sep 11, 2021

image

Had errors when attempting to run the bot as it could not find module "Parky_Bot". Pretty sure this isn't supposed to be empty?

This is the same with all the init files in the parky_bot package.

@parklez
Copy link
Owner

parklez commented Sep 15, 2021

Hi, Github didn't notify me about your post...

The intended way to run the application is by calling it like a module:

python -m parky_bot.app

If you so wish to run it directly, move app.py to its parent folder. Doing so will allow you to run it by double clicking.

Also, init.py files (also) exist to allow python to navigate directories containing code, it's not unusual to see them empty!

@parklez parklez self-assigned this Sep 15, 2021
@parklez parklez added the question Further information is requested label Sep 15, 2021
@EarlGreyFTW
Copy link
Author

Ah, my bad on the init files xD

However calling it like a package from terminal:
image
tested this on my Pi with the same issue..

@parklez
Copy link
Owner

parklez commented Sep 16, 2021

Ah, my bad on the init files xD

However calling it like a package from terminal:
image
tested this on my Pi with the same issue..

From the looks of your previous screenshot, you're supposed to run that command on the twitch-bot-1.0.2 directory.
navigate there using cd twitch-bot-1.0.2. Best of luck!

@parklez parklez closed this as completed Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants