Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: local variable 'vid' referenced before assignment #37

Open
trimpta opened this issue Jan 1, 2024 · 1 comment
Open

Comments

@trimpta
Copy link

trimpta commented Jan 1, 2024

Heres the output, i couldnt figure it out

(shorts-gen) D:\YouTube-shorts-generator-main>python main.py
Logging into Reddit...
Log in success! Retrieving post info...
Scraping reddit success! Returning list of info back to main.
Error occured on 1:
 Traceback (most recent call last):
  File "D:\YouTube-shorts-generator-main\main.py", line 68, in <module>
    success = main()
  File "D:\YouTube-shorts-generator-main\main.py", line 36, in main
    if not vid:
UnboundLocalError: local variable 'vid' referenced before assignment

Retrying...
Logging into Reddit...
Log in success! Retrieving post info...
Scraping reddit success! Returning list of info back to main.
Error occured on 2:
 Traceback (most recent call last):
  File "D:\YouTube-shorts-generator-main\main.py", line 68, in <module>
    success = main()
  File "D:\YouTube-shorts-generator-main\main.py", line 36, in main
    if not vid:
UnboundLocalError: local variable 'vid' referenced before assignment

Retrying...
Logging into Reddit...
Log in success! Retrieving post info...
Scraping reddit success! Returning list of info back to main.
Error occured on 3:
 Traceback (most recent call last):
  File "D:\YouTube-shorts-generator-main\main.py", line 68, in <module>
    success = main()
  File "D:\YouTube-shorts-generator-main\main.py", line 36, in main
    if not vid:
UnboundLocalError: local variable 'vid' referenced before assignment

Retrying...
Logging into Reddit...
Log in success! Retrieving post info...
Scraping reddit success! Returning list of info back to main.
Error occured on 4:
 Traceback (most recent call last):
  File "D:\YouTube-shorts-generator-main\main.py", line 68, in <module>
    success = main()
  File "D:\YouTube-shorts-generator-main\main.py", line 36, in main
    if not vid:
UnboundLocalError: local variable 'vid' referenced before assignment

Retrying...
Logging into Reddit...
Log in success! Retrieving post info...
Scraping reddit success! Returning list of info back to main.
Error occured on 5:
 Traceback (most recent call last):
  File "D:\YouTube-shorts-generator-main\main.py", line 68, in <module>
    success = main()
  File "D:\YouTube-shorts-generator-main\main.py", line 36, in main
    if not vid:
UnboundLocalError: local variable 'vid' referenced before assignment

Retrying...
Logging into Reddit...
Log in success! Retrieving post info...
Scraping reddit success! Returning list of info back to main.
Error occured on 6:
 Traceback (most recent call last):
  File "D:\YouTube-shorts-generator-main\main.py", line 68, in <module>
    success = main()
  File "D:\YouTube-shorts-generator-main\main.py", line 36, in main
    if not vid:
UnboundLocalError: local variable 'vid' referenced before assignment

Retrying...
Logging into Reddit...
Log in success! Retrieving post info...
Scraping reddit success! Returning list of info back to main.
Error occured on 7:
 Traceback (most recent call last):
  File "D:\YouTube-shorts-generator-main\main.py", line 68, in <module>
    success = main()
  File "D:\YouTube-shorts-generator-main\main.py", line 36, in main
    if not vid:
UnboundLocalError: local variable 'vid' referenced before assignment

Retrying...
Logging into Reddit...
Log in success! Retrieving post info...
Scraping reddit success! Returning list of info back to main.
Error occured on 8:
 Traceback (most recent call last):
  File "D:\YouTube-shorts-generator-main\main.py", line 68, in <module>
    success = main()
  File "D:\YouTube-shorts-generator-main\main.py", line 36, in main
    if not vid:
UnboundLocalError: local variable 'vid' referenced before assignment

Retrying...
Logging into Reddit...
Log in success! Retrieving post info...
Scraping reddit success! Returning list of info back to main.
Error occured on 9:
 Traceback (most recent call last):
  File "D:\YouTube-shorts-generator-main\main.py", line 68, in <module>
    success = main()
  File "D:\YouTube-shorts-generator-main\main.py", line 36, in main
    if not vid:
UnboundLocalError: local variable 'vid' referenced before assignment

Retrying...
Logging into Reddit...
Log in success! Retrieving post info...
Scraping reddit success! Returning list of info back to main.
Error occured on 10:
 Traceback (most recent call last):
  File "D:\YouTube-shorts-generator-main\main.py", line 68, in <module>
    success = main()
  File "D:\YouTube-shorts-generator-main\main.py", line 36, in main
    if not vid:
UnboundLocalError: local variable 'vid' referenced before assignment

Retrying...

(shorts-gen) D:\YouTube-shorts-generator-main>

@IcedCoffeeDrinker
Copy link

I have the same issue. It only occurs when I change the subreddit though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants