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 'compat' #2

Closed
Haejien opened this issue Mar 6, 2017 · 15 comments
Closed

ModuleNotFoundError: No module named 'compat' #2

Haejien opened this issue Mar 6, 2017 · 15 comments
Assignees
Labels

Comments

@Haejien
Copy link

Haejien commented Mar 6, 2017

Next import error:

  File "AnimeDL.py", line 9, in <module>
    import sites
  File "C:\Users\x\Desktop\anime-dl-master\anime_dl\sites\__init__.py", line 1, in <module>
    import sites.crunchyroll
  File "C:\Users\x\Desktop\anime-dl-master\anime_dl\sites\crunchyroll.py", line 10, in <module>
    from external.utils import bytes_to_intlist, intlist_to_bytes
  File "C:\Users\x\Desktop\anime-dl-master\anime_dl\external\__init__.py", line 1, in <module>
    import external.aes
  File "C:\Users\x\Desktop\anime-dl-master\anime_dl\external\aes.py", line 5, in <module>
    from .utils import bytes_to_intlist, intlist_to_bytes
  File "C:\Users\x\Desktop\anime-dl-master\anime_dl\external\utils.py", line 37, in <module>
    from compat import (
ModuleNotFoundError: No module named 'compat'
Xonshiz added a commit that referenced this issue Mar 6, 2017
Fix for #2
@Xonshiz
Copy link
Owner

Xonshiz commented Mar 6, 2017

working on my end. Just downloaded bunch of videos. Let me know if Py script still causes some funky errors. After that I'll push the windows binary. PyCharm doesn't show these errors. Gawd dammit PythonPath :/

@Xonshiz Xonshiz self-assigned this Mar 6, 2017
@Xonshiz Xonshiz added the bug label Mar 6, 2017
@Haejien
Copy link
Author

Haejien commented Mar 6, 2017

New one now haha:

Traceback (most recent call last):
  File "AnimeDL.py", line 9, in <module>
    import sites
  File "C:\Users\Administrator\Desktop\anime-dl-master\anime_dl\sites\__init__.py", line 1, in <module>
    import sites.crunchyroll
  File "C:\Users\Administrator\Desktop\anime-dl-master\anime_dl\sites\crunchyroll.py", line 10, in <module>
    from external.utils import bytes_to_intlist, intlist_to_bytes
  File "C:\Users\Administrator\Desktop\anime-dl-master\anime_dl\external\__init__.py", line 1, in <module>
    import external.aes
  File "C:\Users\Administrator\Desktop\anime-dl-master\anime_dl\external\aes.py", line 5, in <module>
    from utils import bytes_to_intlist, intlist_to_bytes
ModuleNotFoundError: No module named 'utils'

@Xonshiz Xonshiz closed this as completed in 0e63c58 Mar 6, 2017
@Xonshiz
Copy link
Owner

Xonshiz commented Mar 6, 2017

Just pushed an update from desktop. It closed automatically. Re-opening, please try again and let me know. Should work now. Please make sure you're running on Python 3

@Xonshiz Xonshiz reopened this Mar 6, 2017
@Haejien
Copy link
Author

Haejien commented Mar 6, 2017

Still get the same error after the update:


C:\Users\Administrator\Desktop\anime-dl-master\anime_dl>python --version
Python 3.6.0

@Xonshiz Xonshiz closed this as completed in 67a9e39 Mar 6, 2017
@Xonshiz
Copy link
Owner

Xonshiz commented Mar 6, 2017

Okay, please check again. PyCharm uses PYTHONPATH and the imports work just fine inside it. Outside it, THIS happens. (Learned something new). Check again and let me know...

@Xonshiz Xonshiz reopened this Mar 6, 2017
@Haejien
Copy link
Author

Haejien commented Mar 6, 2017

Fixed utils back to compat however:

Traceback (most recent call last):
  File "AnimeDL.py", line 9, in <module>
    import sites
  File "C:\Users\Administrator\Desktop\anime-dl-master\anime_dl\sites\__init__.py", line 1, in <module>
    import sites.crunchyroll
  File "C:\Users\Administrator\Desktop\anime-dl-master\anime_dl\sites\crunchyroll.py", line 10, in <module>
    from external.utils import bytes_to_intlist, intlist_to_bytes
  File "C:\Users\Administrator\Desktop\anime-dl-master\anime_dl\external\__init__.py", line 1, in <module>
    import external.aes
  File "C:\Users\Administrator\Desktop\anime-dl-master\anime_dl\external\aes.py", line 5, in <module>
    from external.utils import bytes_to_intlist, intlist_to_bytes
  File "C:\Users\Administrator\Desktop\anime-dl-master\anime_dl\external\utils.py", line 37, in <module>
    from compat import (
ModuleNotFoundError: No module named 'compat'

Xonshiz added a commit that referenced this issue Mar 6, 2017
@Xonshiz
Copy link
Owner

Xonshiz commented Mar 6, 2017

son of a ... -_-
Please bear with this shit, because it's working on my end just fine. :/

@Haejien
Copy link
Author

Haejien commented Mar 6, 2017

Oh yeah I understand, glad you're active and willing to work through these problems.

@Xonshiz
Copy link
Owner

Xonshiz commented Mar 6, 2017

Check this update and let me know if its working or not...

@Haejien
Copy link
Author

Haejien commented Mar 6, 2017

No more errors but running --help/-h and I get no output, assume that's just because running it on windows.

@Xonshiz
Copy link
Owner

Xonshiz commented Mar 6, 2017

Try downloading an episode. Don't forget to put ffmpeg in the directory of this script, or in the system path.

@Haejien
Copy link
Author

Haejien commented Mar 6, 2017

No good:

C:\Users\Administrator\Desktop\anime-dl-master\anime_dl>python AnimeDL.py -i http://www.crunchyroll.com/kemono-friends/episode-8-ppp-live-728273 -u username -p password

C:\Users\Administrator\Desktop\anime-dl-master\anime_dl>

@Xonshiz
Copy link
Owner

Xonshiz commented Mar 6, 2017

This :

python __main__.py -i http://www.crunchyroll.com/kemono-friends/episode-8-ppp-live-728273 -u username -p password

@Haejien
Copy link
Author

Haejien commented Mar 6, 2017

Alright that did it, worked successfully.

@Xonshiz
Copy link
Owner

Xonshiz commented Mar 6, 2017

NICE! Finally! And thank you so much for pointing this out and helping me fix this shiznit :)

@Xonshiz Xonshiz closed this as completed Mar 6, 2017
Xonshiz added a commit that referenced this issue Mar 6, 2017
Check Changelog for more info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants