NameError: name 'data' is not defined, Python 3.7, 3.8
See original GitHub issueI downloaded all from requirements.txt. when i run main.py, i get error. How fix this?
twitchtube | 15:55:50 - info: Starting to make a video for Team Fortress 2 Traceback (most recent call last): File "C:\twitchtube-master2\main.py", line 29, in <module> names = download_clips(clips, VIDEO_LENGTH, path) File "C:\twitchtube-master2\dist\clips.py", line 97, in download_clips download_clip(data[clip]["url"], path) File "C:\twitchtube-master2\dist\clips.py", line 36, in download_clip mp4_url, clip_title = get_clip_data(slug) File "C:\twitchtube-master2\dist\clips.py", line 14, in get_clip_data thumb_url = clip_info['data'][0]['thumbnail_url'] KeyError: 'data'
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
NameError: name 'List' is not defined - python - Stack Overflow
If I try importing List first I get an error No module named 'List' . I'm using Python 3.7.3 from Anaconda. python ·...
Read more >How to fix Name Not Defined Error in Python - YouTube
This video will explain how to solve the 'something' is not defined error in Python.
Read more >Python nameerror name is not defined Solution - Career Karma
A NameError is raised when you try to use a variable or a function name that is not valid. In Python, code runs...
Read more >8. Errors and Exceptions — Python 3.11.1 documentation
Errors detected during execution are called exceptions and are not unconditionally fatal: you will soon learn how to handle them in Python programs....
Read more >How to solve the problem of 'NameError' not a defined name ...
Python NameError means a variable name appears on the right hand side of an assignment but the variable has never been the left...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here : https://github.com/epsilon573/myTwitchBot This doesn’t automatically upload to Youtube though.
You’ve ran into this issue because Twitch recently changed the Helix API endpoint to require OAuth authentication. I might fix this in the future. https://discuss.dev.twitch.tv/t/requiring-oauth-for-helix-twitch-api-endpoints/23916