Closed ghbook closed 1 year ago
Remove these lines from extractor/common.py
so it doesn't attempt to import the pyopenssl
module from urllib3:
https://github.com/mikf/gallery-dl/blob/3c2c7e21dd589aee99ad22687733ffb149d337a1/gallery_dl/extractor/common.py#L901-L909
Remove these lines from
extractor/common.py
so it doesn't attempt to import thepyopenssl
module from urllib3:
Thanks, it worked.
BTW Could you please remove sys.exit
from below and add gallery-dl.cmd
file as above in project folder in next commit.
https://github.com/mikf/gallery-dl/blob/248e8bc6996229fd8c3fb064afff14b2b722fa58/gallery_dl/__main__.py#L19-L20
Hi
I need to do some changes in few extractor files locally, so i download latest zip source code.
When running via command line it gives an error, but works fine via python script
Here is what i have done to setup the project: (followed yt-dlp)
gallery-dl2
for clarity.gallery-dl.cmd
inside the folder to run via cmd (referredyt-dlp.cmd
in yt-dlp project)__main__.py
was disabled withsys.exit
, so removed it https://github.com/mikf/gallery-dl/blob/248e8bc6996229fd8c3fb064afff14b2b722fa58/gallery_dl/__main__.py#L19-L20 it will becomeNow Run via python file: Created a test file and when ran, it works fine.
Run via cmd: Gives an error:
Here is another simple command.
go to provided urllib3 issue link, it suggests to remove a package called
urllib3-secure-extra
to suppress warning, but when ran there is no packagePretty sure its not urrlib3 issue, as I have another gallery-dl installed with pip and works fine via cmd.
what is the actual problem, anyone have idea?