RileyXX / IMDB-Trakt-Syncer

A python script that syncs user watchlist, ratings and reviews for Movies, TV Shows and Episodes both ways between Trakt and IMDB.
MIT License
91 stars 2 forks source link

ModulNotFoundError #79

Closed 1Bl4ck1 closed 11 months ago

1Bl4ck1 commented 11 months ago

Is there already an issue for your problem?

Bug Description

Traceback (most recent call last): File "C:\Users\Narki\AppData\Local\Programs\Python\Python312\Lib\site-packages\IMDBTraktSyncer\IMDBTraktSyncer.py", line 15, in from IMDBTraktSyncer import checkChromedriver File "C:\Users\Narki\AppData\Local\Programs\Python\Python312\Lib\site-packages\IMDBTraktSyncer\checkChromedriver.py", line 3, in import pkg_resources ModuleNotFoundError: No module named 'pkg_resources'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\Narki\AppData\Local\Programs\Python\Python312\Scripts\IMDBTraktSyncer.exe__main__.py", line 4, in File "C:\Users\Narki\AppData\Local\Programs\Python\Python312\Lib\site-packages\IMDBTraktSyncer\IMDBTraktSyncer.py", line 22, in import checkChromedriver ModuleNotFoundError: No module named 'checkChromedriver'

Environment

Windows 11

I entered all my credentials to verifyCredentials

Screenshots

cmd_xwWT5b5c5F WindowsTerminal_ZeQ1kXCarR

RileyXX commented 11 months ago

Hi thanks for reporting this. Looks like there is a required package that isn't being installed during setup. I see what the issue is.

To install the missing package run the following in command prompt:

python -m pip install setuptools

After doing that run the script again and see if that resolves it. I will implement a fix for this shortly.

RileyXX commented 11 months ago

This should be fixed now in v1.8.6 or later.

You can update using the following:

python -m pip install IMDBTraktSyncer

Let me know if that fixes it for you.

1Bl4ck1 commented 11 months ago

Wow. that was quick. thank you on quick replay.

Now i'm encountering problem from the pic. I login to chrome and i'm signed in when i'm trying IMDBTraktSyncer but keep encountering the error. There was no captcha to enter, however many times i tried log in and log out. :/

cmd_UuFa3FUGuD

RileyXX commented 11 months ago

Glad to hear the original error is fixed.

As for the IMDB captcha issue, the only solution is to login/logout on IMDB from your browser on the same device. If you run the script too many times in a short period then the captcha can show up more frequently. This is usually only temporary. If you tried logging in/out several times already on your browser and still get that error then the only other thing you can do is wait a couple hours or try again the next day. Usually this issue will resolve on its own.