Closed hjmangalam closed 4 years ago
I'm struggling to replicate this. I just did a clean install of flika in a new conda environment using conda version 4.5.11 on OSX, python=3.6.7. PySide shouldn't be required, I've never used it. qtpy should be able to work with the PyQt5 you have installed (my clean install shows PyQt5=5.11.3). It seems that for some reason your qtpy isn't detecting PyQt5, and is throwing the error that PySide can't be found.
I had a similar problem. I've zero python experience so I'm not even sure what I'm doing but I followed the instructions by installing the latest version of anaconda from the link on the flika website, running the pip install flika command in my terminal and then trying to run flika and I get this same error
2019-07-17 14:28:08,078 - ERROR - Uncaught exception
Traceback (most recent call last):
File "/anaconda3/lib/python3.7/site-packages/qtpy/init.py", line 202, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/anaconda3/bin/flika", line 6, in
????????
What operating system are you using?
Try installing PyQt5 from the terminal with the command:
pip install PyQt5
It should have automatically been installed with flika, but maybe for some reason it wasn't. Let me know if that works.
I installed PyQt5 it and am still getting the error message. Also my anaconda navigator application isn't launching (though it did launch after I first installed it). I read in python forums that this might be a problem with the qt bindings. (Again I'm very very new to python so I'm only guessing from what I've read up on that the qt bindings are important for launching GUIs). I'm running OS X version 10.11.6. I'm planning on upgrading the OS since the latest release of MATLAB requires the new version. Please let me know if any of this strikes you as relevant to the problem.
Just to update: the operating system was the issue. I updated to the latest OS X release (10.14.5) and Flika launches just fine. Thanks for your time!
I'm not sure if it's relevant, I thought it might be a Linux thing, but I'm using OS X 10.14.4 and it works for me.
I'm suspecting it's a package versioning issue. Could you type the following command to see which version of qt, pyqt, and qtpy you are using in a terminal and paste the results here:
pip freeze | grep -i qt
You can try forcing them to be the same as the versions I'm using:
pip install --force-reinstall qtpy==1.8.0 PyQt5==5.13
Then launch a python terminal and run
>>> import qtpy
Does that give an error?
This is what it it says for versions:
-- QtAwesome==0.5.7 qtconsole==4.4.3 QtPy==1.7.0
Again, once I upgraded my OS to 10.14, I'm able to launch FLIKA, so the above is a PyQt version that now works.
Great, didn't see that the first time. Glad it works!
on a CentOS cluster,trying to install for a user. Using anaconda/3.6-5.0.1 as a base, all deps installed (see http://termbin.com/fric ) except for pyside, which is no longer available for versions > 3.4.:
And pyside2 is not integrated into flika. What do you recommend for resolving this impasse?
When trying to start flika with the above deps installed (tho not pyside; apparently not a stated dep):
The pyqt is yet another problem, but I haven't started in on that. Waiting to see if the pyside bit is addressable.
thanks Harry