makiisthenes / TiktokAutoUploader

Automatically Edits Videos and Uploads to Tiktok with CLI, Requests not Selenium.
GNU General Public License v3.0
568 stars 124 forks source link

After login attempt: `UnboundLocalError: cannot access local variable 'cookie_name' where it is not associated with a value` #75

Open fooryo opened 5 months ago

fooryo commented 5 months ago

OS: archlinux steps: 1) cloned repo $ git clone https://github.com/makiisthenes/TiktokAutoUploader.git 2) went to repo dir and created venv $ python -m venv .venv 3) activated venv $ source .venv/bin/activate 4) installed reqs $ pip install -r requirements.txt 5) $ cd tiktok_uploader/tiktok-signature/ && npm i && cd - 6) $ python cli.py login -n <MY_USERNAME> chrome is opened, i logged in manually 7) it returns:

Account successfully saved.
Saving cookies to file:  /home/user/ws/tiktok-test-autoupload/makii/TiktokAutoUploader/./CookiesDir/tiktok_session-laido.tv.cookie
Traceback (most recent call last):
  File "/home/user/ws/tiktok-test-autoupload/makii/TiktokAutoUploader/cli.py", line 47, in <module>
    tiktok.login(login_name)
  File "/home/user/ws/tiktok-test-autoupload/makii/TiktokAutoUploader/tiktok_uploader/tiktok.py", line 45, in login
    return cookie_name.get('value', '') if cookie_name else ''
                                           ^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'cookie_name' where it is not associated with a value

Useless to say, it doesnt even upload anything