Giter Site home page Giter Site logo

Comments (7)

kyleellefsen avatar kyleellefsen commented on July 16, 2024

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.

from flika.

feoktistai avatar feoktistai commented on July 16, 2024

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
from PySide import version as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/anaconda3/bin/flika", line 6, in
from flika.flika import exec_
File "/anaconda3/lib/python3.7/site-packages/flika/init.py", line 4, in
from .flika import start_flika
File "/anaconda3/lib/python3.7/site-packages/flika/flika.py", line 12, in
from .app.application import FlikaApplication
File "/anaconda3/lib/python3.7/site-packages/flika/app/application.py", line 9, in
from qtpy import QtCore, QtWidgets, QtGui
File "/anaconda3/lib/python3.7/site-packages/qtpy/init.py", line 208, in
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found

????????

from flika.

kyleellefsen avatar kyleellefsen commented on July 16, 2024

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.

from flika.

feoktistai avatar feoktistai commented on July 16, 2024

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!

from flika.

kyleellefsen avatar kyleellefsen commented on July 16, 2024

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?

from flika.

feoktistai avatar feoktistai commented on July 16, 2024

This is what it it says for versions:

PyQt5-sip==4.19.18
pyqtgraph==0.10.0
pyrsistent==0.14.11

--
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.

from flika.

kyleellefsen avatar kyleellefsen commented on July 16, 2024

Great, didn't see that the first time. Glad it works!

from flika.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.