Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'anime_dl' #104

Open
leptoid opened this issue Oct 29, 2019 · 4 comments
Open

ModuleNotFoundError: No module named 'anime_dl' #104

leptoid opened this issue Oct 29, 2019 · 4 comments

Comments

@leptoid
Copy link
Contributor

leptoid commented Oct 29, 2019

Hi. Another issue I found but did not understand completely yet...

python3 ./Anime_dl.py 
Traceback (most recent call last):
  File "./Anime_dl.py", line 8, in <module>
    import sites
  File "/media/1TB/Downloads/Torrents/anime-dl/anime-dl/anime-dl-master/anime_dl/sites/__init__.py", line 1, in <module>
    from . import crunchyroll
  File "/media/1TB/Downloads/Torrents/anime-dl/anime-dl/anime-dl-master/anime_dl/sites/crunchyroll.py", line 6, in <module>
    import anime_dl
ModuleNotFoundError: No module named 'anime_dl'

To be precise, I understand, but I don't know where it stems from... I think it happens when the Crunchyroll stuff is called, but there isn't exactly anything i can fill in that spot. ;)
Happens in Windows and Debian Linux when running via Python.

@leptoid
Copy link
Contributor Author

leptoid commented Oct 30, 2019

Ok... now I understand it. I don't know how to correct it yet but I'm working on it. This error comes from the inability to import a parent directory. Since anime_dl is the parent directory to all script functions, it is not being referenced/imported. I didn't think it should, but it appears to be happening in Python2.7, Python 3, and Python 3.7. More to come as I learn more.

@hexcakes
Copy link

hexcakes commented Nov 2, 2019

@leptoid i am getting issues with no module named anime_dl.common when running via python.

@leptoid
Copy link
Contributor Author

leptoid commented Nov 2, 2019

The is because it doesn't know how to find the anime_dl folder. I would assume that if all references to "anime_dl." were removed, things would be okie dokie again. Technically, using an old but 'correct'(Newer than 2.7.* older than 3.5.*) version of Python should work too. I'm still figuring it out.

@leptoid
Copy link
Contributor Author

leptoid commented Nov 2, 2019

Ok... I figured it out. I will wait for @Xonshiz to verify/approve as he is way better at this than me.

leptoid added a commit to leptoid/anime-dl that referenced this issue Nov 3, 2019
Corrected issue 104.
Xonshiz added a commit that referenced this issue Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants