niqdev / packtpub-crawler

Download your daily free Packt Publishing eBook https://www.packtpub.com/packt/offers/free-learning
MIT License
755 stars 178 forks source link

ImportError: cannot import name Client #68

Open AwdotiaRomanowna opened 7 years ago

AwdotiaRomanowna commented 7 years ago

Hi, I cannot run the script because of import error: python script/spider.py -c config/prod.cfg -t pdf --notify None Traceback (most recent call last): File "script/spider.py", line 12, in from notify import Notify, SERVICE_GMAIL, SERVICE_IFTTT, SERVICE_JOIN, SERVICE_PUSHOVER File "/home/boria/repos/test/packtpub-crawler/script/notify.py", line 5, in from notification.mypushover import Pushover File "/home/boria/repos/test/packtpub-crawler/script/notification/mypushover.py", line 3, in from notification.mypushover import Client ImportError: cannot import name Client

niqdev commented 7 years ago

Hi, can you please confirm you are using python 2.x and you run pip install -r requirements.txt? thanks

hactrox commented 7 years ago

It seems you installed the wrong package pushover . You can run pip uninstall pushover, and then run pip install -r requirements.txt.