Code Monkey home page Code Monkey logo

Comments (4)

tomaarsen avatar tomaarsen commented on July 18, 2024

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.

Ursometamorfo avatar Ursometamorfo commented on July 18, 2024

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.

tomaarsen avatar tomaarsen commented on July 18, 2024

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.

tomaarsen avatar tomaarsen commented on July 18, 2024

I'll close this now :)

from twitchmarkovchain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.