Comments (4)
Hello!
According to your logs, you have a file called TwitchWebsocket.py
. This is probably from copying the files locally. When it then tries to do
from TwitchWebsocket.Message import Message
then it'll see TwitchWebsocket
as the current file, and there's no Message
defined in the current file. Perhaps you could get around this by copying the TwitchWebsocket folder, i.e. this full folder.
However, normally it should work with just pip install TwitchWebsocket
, but then make sure there's no local file called TwitchWebsocket.py
, or that one will have priority. I think you probably tried that already based on your message. If you run pip show TwitchWebsocket
, does it then show a package?
A relatively common error with that is that the pip
is from a different python
than the python
that you're running the program with. You can get around this by doing python -m pip show TwitchWebsocket
and python -m pip install TwitchWebsocket
. Then you know for sure that the pip
and python
"match".
Hopefully this helps you in the right direction already, but please let me know if you still can't get it to work, and I'll try to help with some more details.
- Tom Aarsen
from twitchmarkovchain.
Hi again! THE PROBLEM WAS SOLVED!
A quick rundown of my troubleshooting would be:
- I did all the tests you suggested and confirmed they were using the same python!
- Dragging over the files didn't seem to solve the problem either
- Not knowing what to do, i decided to start from scratch, uninstalled all pythons instances i could find and installed ONLY python 11 through Microsoft store and reinstalled Git as well.
- After that, i redownloaded the master for the Bot and ran the requirements command
- Had a weird issue where python would open when asked to run "MarkovChainBot.py" but closed instantly, rebooting the computer fixed that.
- After that the bot seemed to run just fine, the only "anomaly" noticed was the line
[2023-05-11 11:04:07,476] [__main__] [INFO ] - Fetching mod list...
[2023-05-11 11:04:07,699] [__main__] [INFO ] - Unrecognized command: /mods
Aside from that, it seems it's working as intended!!! Thank you very much for the help and quick answer!
from twitchmarkovchain.
I'm glad that you got it working, despite all that you had to go through to get it to work again!
As for the anomaly, I'm aware of it. Twitch removed most (or all?) of the "slash commands" like /mods
. However, it shouldn't affect you - I think it was only used to allow moderators to update the cooldown and disable/enable the bot on the fly from the chat.
from twitchmarkovchain.
I'll close this now :)
from twitchmarkovchain.
Related Issues (20)
- Reduce the amount of learned information required to start outputting
- How to activate bot HOT 2
- No such table HOT 3
- no such table: MarkovStartA Error HOT 2
- No pyvenv.cfg file HOT 2
- No such table error HOT 4
- Sending whispers does nothing HOT 1
- Is it possible to make the bot generate a reply after someone sends a message in the chat? HOT 1
- HTTP error 404 while installing the requirements HOT 1
- merging databases HOT 3
- bot breaking up words with single quotation marks in them HOT 3
- bot stuck to the wrong account HOT 4
- No spaces before quotes HOT 2
- cannot whisper !generate to bot HOT 1
- Error: Unrecognized command: /mods HOT 2
- how to make bot only learn messages from a specific person HOT 3
- Issue with sqlite3.OperationalError: unable to open database file
- More frequent errors occuring HOT 3
- Send message on a timer that explains how the Bot works HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitchmarkovchain.