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
550 stars 68 forks source link

ImportError: attempted relative import with no known parent package #315

Closed kgoldmann closed 2 years ago

kgoldmann commented 2 years ago

When trying to run "python3 main.py" in the comic_dl directory on the macOS Terminal, I'm encountering the following error:

Traceback (most recent call last): File "/Users/username/Downloads/comic-dl-master/comic_dl/main.py", line 10, in from comic_dl.version import version File "/Users/username/Downloads/comic-dl-master/comic_dl/comic_dl.py", line 6, in from .version import version ImportError: attempted relative import with no known parent package

Am I using the wrong syntax?

darodi commented 2 years ago

@kgoldmann

use /Users/username/Downloads/comic-dl-master/cli.py instead

or https://github.com/Xonshiz/comic-dl/releases/download/2022.04.23/comic_dl_osx could work

kgoldmann commented 2 years ago

@darodi Thanks for this. cli.py worked for me, though any readcomiconline.li URLs just return 403 error. Maybe an issue with Cloudflare bypassing.

How does one use the OSX release?

darodi commented 2 years ago

@kgoldmann

... any readcomiconline.li URLs just return 403 error. Maybe an issue with Cloudflare bypassing.

see

How does one use the OSX release?

same way : https://github.com/Xonshiz/comic-dl#list-of-arguments

Xonshiz commented 2 years ago

Looks like that OSX release might have to go because of Apple's new restrictions of running external executables. Use Python for now on OSX as well, please

Closing this as Darodi already mentioned every required info. Thanks again, Darodi :)