Giter Club home page Giter Club logo

Comments (7)

PetterKraabol avatar PetterKraabol commented on September 20, 2024

Hi, try updating the pip packages and try again.
pip install -U --user -r requirements.txt

from twitch-chat-downloader.

 avatar commented on September 20, 2024

Thanks! I think we've fixed this error right away.

However, another error occurred, such as the link: #57
There was no input error in the video ID section.
It may be annoying, but could you please confirm this error?
Thank you so much.

from twitch-chat-downloader.

PetterKraabol avatar PetterKraabol commented on September 20, 2024

I get the same error as #57 if I enter an invalid video ID, for instance by adding a space before it.

❯ python app.py
Video ID:  332918674
Traceback (most recent call last):
  File "app.py", line 46, in <module>
    main()
  File "app.py", line 39, in main
    app.download(app.arguments.video, app.arguments.format)
  File "/home/petter/projects/Twitch-Chat-Downloader/app/downloader.py", line 24, in download
    video: twitch.Video = twitch.Video(video_id)
  File "/home/petter/projects/Twitch-Chat-Downloader/app/twitch/video.py", line 41, in __init__
    video: helix.Video = helix.video(video_id)
  File "/home/petter/.local/lib/python3.7/site-packages/twitch/helix/helix.py", line 36, in video
    return helix.Videos(self.api(), video_ids=None, **kwargs)[0]
  File "/home/petter/.local/lib/python3.7/site-packages/twitch/helix/videos.py", line 45, in __init__
    self._api.get(self._path, params=kwargs)['data']]
KeyError: 'data'

I've added trimming for user inputs in f8a5a56. Run git pull to update.

The error comes from twitch-python, which currently lacks error handling.

from twitch-chat-downloader.

 avatar commented on September 20, 2024

It wasn't about spaces.
But I solved the problem in a different way.
Thank you for your quick response!

from twitch-chat-downloader.

 avatar commented on September 20, 2024

I found out the cause of the error.
When installing a module listed in requirements.txt, a module named 'twitch' overlaps the name of the module previously installed.
Do you know how to change a installed module name to unique? I Ask for help.
Please understand that the sentence is uneven as it is using a translator.

from twitch-chat-downloader.

PetterKraabol avatar PetterKraabol commented on September 20, 2024

Hi, twitch-python is imported with import twitch.

If you have several Python packages that are imported with import twitch, then you might want to look into virtual environment solutions like pipenv.

Pipenv helps you create an isolated python environment (virtual environment) to avoid import collision.

from twitch-chat-downloader.

 avatar commented on September 20, 2024

It works successfully. Thank you very much for your kind reply!

from twitch-chat-downloader.

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.