aticie / ronnia-selfhost

Ronnia bot for self-hosting
Apache License 2.0
3 stars 0 forks source link

No module named ronnia.bots.twitch_bot #3

Closed Flapczek closed 1 year ago

Flapczek commented 1 year ago

Traceback (most recent call last): File "main.py", line 4, in from ronnia.bots.twitch_bot import TwitchBot ImportError: No module named ronnia.bots.twitch_bot

aticie commented 1 year ago

You need to add the repository folder to the PYTHONPATH environment variable.

If you are using a IDE like PyCharm, in the Run/Debug configurations, make sure these 2 boxes are checked: image

And have the working directory point to the root folder.

Flapczek commented 1 year ago

ERROR: Failed building wheel for yarl Failed to build multidict yarl ERROR: Could not build wheels for multidict, yarl, which is required to install pyproject.toml-based projects

and i got this when i tried install requirements on windows

aticie commented 1 year ago

I would need to see more of the error output to help you, but is there a reason for you to run this yourself?

You can use the binaries from: https://github.com/aticie/ronnia-selfhost/releases/tag/v0.0.2

Edit: My first instinct is that you are using an incompatible python version. Try using python 3.10.

Flapczek commented 1 year ago

I got this error again image

I tried add something like this to environment variable image image but still im getting this error

aticie commented 1 year ago

You should run it from the root folder, like this:

python ronnia/main.py

and also environment variable should point to the root folder (ronnia-selfhost).

Flapczek commented 1 year ago

ok its working but i have one more question image username in the twitch section in the config it means the streamer or the bot account?

aticie commented 1 year ago

It should be your streamer account. The selfhost version runs on your own account, doesn’t have an additional bot account.