Giter VIP home page Giter VIP logo

Comments (6)

ccordoba12 avatar ccordoba12 commented on June 19, 2024

@ProvoK, could you post a simple code snippet that's giving errors when you have both PyQt and PySide installed, so we can test it in our side? Thanks :-)

We've worked hard to make QtAwesome work with PyQt5, PyQt4 and PySide, but it seems there are some differences between them we haven't addressed correctly :-)

from qtawesome.

ProvoK avatar ProvoK commented on June 19, 2024

I'm very sorry for the late reply, i had uninstalled PyQt as "easy fix" since i needed my program running.
I found that the problem was pretty stupid, once i look'd into qtpy code.
It was os.environ['QT_API'] = 'pyside' instead of os.environ['QT_API'] = 'PySide' ...

from qtawesome.

Nodd avatar Nodd commented on June 19, 2024

We should accept the values whatever the letter case. It's just amatter of adding a .lower() at the correct place.

from qtawesome.

ProvoK avatar ProvoK commented on June 19, 2024

Yes, it would be nice, or give a better exception message.
Actually, if i change it to "PySide" it gives me this error
File "/home/vitto/TESI/PyDaMind/Client/Widgets/Welcome.py", line 9, in <module> import qtawesome as qta File "/usr/local/lib/python2.7/dist-packages/qtawesome/__init__.py", line 19, in <module> from .iconic_font import IconicFont, set_global_defaults File "/usr/local/lib/python2.7/dist-packages/qtawesome/iconic_font.py", line 22, in <module> from qtpy.QtCore import QObject, QPoint, QRect, qRound, Qt File "/usr/local/lib/python2.7/dist-packages/qtpy/__init__.py", line 68, in <module> assert os.environ[QT_API] in (PYQT5_API + PYQT4_API + PYSIDE_API) AssertionError
This made me look into that file and solve by myself

from qtawesome.

ccordoba12 avatar ccordoba12 commented on June 19, 2024

@Nodd is right, we should accept values of QT_API no matter if they are lower or upper-cased :-)

@ProvoK, we'll fix this one for the next qtpy release.

from qtawesome.

ccordoba12 avatar ccordoba12 commented on June 19, 2024

This was fixed in qtpy 1.1.2, which is a dependency of qtawesome. Please update to that version.

from qtawesome.

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.