Xonshiz / comic-dl

Comic-dl is a command line tool to download manga and comics from various comic and manga sites. Supported sites : readcomiconline.to, mangafox.me, comic naver and many more.
https://github.com/Xonshiz/comic-dl
MIT License
545 stars 68 forks source link

python script doing nothing. #260

Closed altanir84 closed 3 years ago

altanir84 commented 4 years ago

Hello! I'll be as brief as I can.

Windows 10 user, trying to use the python script as the binary is outdated and still unable to deal with cloudscrape. Python 3.7.7, added to PATH, added nodejs to system and user path, phantomjs-2.1.1-windows folder inside comic_dl folder.

comic_dl folder located inside python folder: C:\Python37\comic_dl

Made a little test.py with some imports (pandas, sys and cloudscraper) and some prints to test if the python was working.

When typing main.py -v -i https://readcomiconline.to/Comic/Batman-2016 I just get nothing.

image

Please, how can I solve this?

altanir84 commented 4 years ago

Solved by adding

import sys sys.path.append("C:\Python37\Lib\site-packages")

In the beggining of every .py file.

Xonshiz commented 3 years ago

Your python environment isn't visible to the PATH of your system OS. Appending this line in every .py files isn't a good solution. I'd suggest that you add that directory in your $PATH variable instead. Look up "System environments" and "Path" for windows.