conda-forge / pyqt-feedstock

A conda-smithy repository for pyqt.
BSD 3-Clause "New" or "Revised" License
5 stars 35 forks source link

Issue with PyQt4 from conda-forge #9

Closed astrofrog closed 7 years ago

astrofrog commented 7 years ago

The following minimal example:

https://github.com/astrofrog/debug-pyqt4-defaults/blob/master/.travis.yml

Results in the following failure:

$ python -c 'from qtpy import QtGui, QtWidgets'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/travis/miniconda/envs/test/lib/python2.7/site-packages/qtpy/QtGui.py", line 22, in <module>
    from PyQt4.Qt import QKeySequence, QTextCursor
ImportError: cannot import name QKeySequence

This doesn't happen if I don't add the conda-forge channel.

Travis build log: https://travis-ci.org/astrofrog/debug-pyqt4-defaults/builds/183749370

Any idea what could be causing this?

ccordoba12 commented 7 years ago

This seems more of an error in qtpy instead of one in the Qt package per se.

However, I don't have time to investigate this further.

ocefpaf commented 7 years ago

@astrofrog has that worked before? I tested with pyqt4 from defaults and could not get it to work.

Edit: ignore that. It must be

from PyQt4.Qt import QKeySequence
from PyQt4.Qt import QTextCursor

and not

import PyQt4.Qt.QKeySequence
import PyQt4.Qt.QTextCursor

I am updating the tests now.