Closed crimson-med closed 3 years ago
The GUI needs an extra dependency for pyqt. From the README: "To install this project with gui and all its dependencies, add #egg=anime-downloader[gui] to the pip command you are using to install it. Example: pip install -U git+https://github.com/anime-dl/anime-downloader#egg=anime_downloader[gui]"
Try installing pyqt5 through pip, and see if the problem persists.
@IguanasInPyjamas so the homebrew installation does not work for mac? Should the install docs be updated then?
No, the homebrew installation should work for anime-dl, you're wanting anime-dl + GUI, the GUI install options are directly mentioned in the README (we have to treat them separately technically as having pyqt5 as a direct dependency breaks android)
All you need to do is pip install PyQt5 and the GUI should fully work. Please, give it a go.
Per my previous comment I have already installed PyQT5 (more info section)
Running:
pip3 install PyQt5
Results in:
Requirement already satisfied: PyQt5 in /usr/local/lib/python3.9/site-packages (5.15.1)
That is interesting, maybe you now have more than one python environment installed? does brew create it's own copy of python, on one of my pcs I had an issue like this where pyqt was only being picked up by anaconda for a while but I can't remember how I fixed it.
If the module is installed I have no answer to why a python import command is failing, and I don't have a mac to test this :/
Looking through stackexchange, mostly it comes through when you have different environments, if you can -m pip
install pyqt on the right python on your system it'll import. Check these following stackoverflow links;
https://stackoverflow.com/questions/53460186/pyqt5-modulenotfounderror-no-module-named-pyqt5
https://stackoverflow.com/questions/56031636/pycharm-error-modulenotfounderror-no-module-named-pyqt5
The last one specifically may be of use, if you have multiple pythons in your path it takes the top-most one as first, if that one doesn't have the module then it won't pull the import
if I use
brew list python python3
I only get python3.9 listed
/usr/local/Cellar/python@3.9/3.9.0_1/bin/2to3
/usr/local/Cellar/python@3.9/3.9.0_1/bin/2to3-3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/easy_install-3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/idle3
/usr/local/Cellar/python@3.9/3.9.0_1/bin/idle3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/pip3
/usr/local/Cellar/python@3.9/3.9.0_1/bin/pip3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/pydoc3
/usr/local/Cellar/python@3.9/3.9.0_1/bin/pydoc3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/python3
/usr/local/Cellar/python@3.9/3.9.0_1/bin/python3-config
/usr/local/Cellar/python@3.9/3.9.0_1/bin/python3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/python3.9-config
/usr/local/Cellar/python@3.9/3.9.0_1/bin/wheel3
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/ (3032 files)
/usr/local/Cellar/python@3.9/3.9.0_1/IDLE 3.app/Contents/ (8 files)
/usr/local/Cellar/python@3.9/3.9.0_1/lib/pkgconfig/ (4 files)
/usr/local/Cellar/python@3.9/3.9.0_1/libexec/bin/ (7 files)
/usr/local/Cellar/python@3.9/3.9.0_1/libexec/pip/ (852 files)
/usr/local/Cellar/python@3.9/3.9.0_1/libexec/setuptools/ (511 files)
/usr/local/Cellar/python@3.9/3.9.0_1/libexec/wheel/ (60 files)
/usr/local/Cellar/python@3.9/3.9.0_1/Python Launcher 3.app/Contents/ (16 files)
/usr/local/Cellar/python@3.9/3.9.0_1/share/man/ (2 files)
/usr/local/Cellar/python@3.9/3.9.0_1/bin/2to3
/usr/local/Cellar/python@3.9/3.9.0_1/bin/2to3-3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/easy_install-3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/idle3
/usr/local/Cellar/python@3.9/3.9.0_1/bin/idle3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/pip3
/usr/local/Cellar/python@3.9/3.9.0_1/bin/pip3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/pydoc3
/usr/local/Cellar/python@3.9/3.9.0_1/bin/pydoc3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/python3
/usr/local/Cellar/python@3.9/3.9.0_1/bin/python3-config
/usr/local/Cellar/python@3.9/3.9.0_1/bin/python3.9
/usr/local/Cellar/python@3.9/3.9.0_1/bin/python3.9-config
/usr/local/Cellar/python@3.9/3.9.0_1/bin/wheel3
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/ (3032 files)
/usr/local/Cellar/python@3.9/3.9.0_1/IDLE 3.app/Contents/ (8 files)
/usr/local/Cellar/python@3.9/3.9.0_1/lib/pkgconfig/ (4 files)
/usr/local/Cellar/python@3.9/3.9.0_1/libexec/bin/ (7 files)
/usr/local/Cellar/python@3.9/3.9.0_1/libexec/pip/ (852 files)
/usr/local/Cellar/python@3.9/3.9.0_1/libexec/setuptools/ (511 files)
/usr/local/Cellar/python@3.9/3.9.0_1/libexec/wheel/ (60 files)
/usr/local/Cellar/python@3.9/3.9.0_1/Python Launcher 3.app/Contents/ (16 files)
/usr/local/Cellar/python@3.9/3.9.0_1/share/man/ (2 files)
Also tried
sudo python3 -m pip install PyQt5
And i get the same:
Requirement already satisfied: PyQt5 in /usr/local/lib/python3.9/site-packages (5.15.1)
@crimson-med try /usr/local/opt/python@3.9/libexec/bin/python -m pip install PyQt5
worked for me after installing with homebrew.
edit: spoke way too soon... still same error
this is a package install issue, not to do with anime-dl
Describe the bug GUI version does not launch
To reproduce
More Info
I have tried running
If I run
brew info pyqt5
I get the following output:LOG
``` Traceback (most recent call last): File "/usr/local/bin/anime", line 33, in