nguy / artview

ARM Radar Toolkit Viewer
http://nguy.github.io/artview
BSD 3-Clause "New" or "Revised" License
48 stars 21 forks source link

PyQt5 #168

Closed pfhein closed 7 years ago

pfhein commented 8 years ago

The latest version of Anaconda Python 2.7 installs PyQt5 not PyQt4. I just ran across this helping a student install artview on their Mac laptop. It installs but then it can not find PyQt4. Changing the 4 to 5 unfortunately did not work. Here is the error when importing PyQt5 instead of PyQt4.

screen shot 2016-11-07 at 2 23 28 pm
gamaanderson commented 8 years ago

I have recently faced the same problem. My master branch is changed to support PyQt5, I'm not totally sure however how stable it is, would recommend nevertheless.

Merging this in the main project is problematic because of the extensive module re-structuration from PyQt4 to PyQt5. While we are working on this, I would suggest opening a branch PyQt5 in @nguy repository and add a notice in the readme.

pfhein commented 8 years ago

Thank you @gamaanderson! This was a big surprise to me. I am glad that you are on top of it.

pfhein commented 8 years ago

@gamaanderson - Unfortunately there are still issues. I have not had chance to take a close look at it but here is error messages.

screen shot 2016-11-08 at 3 45 18 pm
gamaanderson commented 8 years ago

It does not seems you have the correct files. This should be the (line)[https://github.com/gamaanderson/artview/blob/master/artview/core/core.py#L208]. Please try to make a plane new install

pfhein commented 8 years ago

I had grabbed the zip file, so maybe that was a problem, and I did not clean out the old install. I will try again.

nguy commented 8 years ago

I recently ran into this when I changed jobs and was setting my computer up.

Another work around is to downgrade your PyQt to PyQt4. You can get a list of packages: conda search pyqt And then use the info to install a version 4 distribution: conda install pyqt=4.11.4 or conda update pyqt 4.11.4

I think this should work, but as @gamaanderson mentioned, we'll have to make the move eventually.

nguy commented 8 years ago

@pfhein @gamaanderson Where are we at on this issue?

gamaanderson commented 8 years ago

If I got the time, tomorow I will make a PR. This will be a high conflict PR, so if you have anything not publish you should present it, so I can solve any conflicts.

nguy commented 8 years ago

Okay, there is a PR implementing the small fix you pulled back and a lot of small pep8 maintenance. If you could just breeze through quick and verify, that would be great. I can then hold off any more changes until you address this issue. In the meantime, I'll try to start commenting on some posts to get an idea of what we should work on next.

gamaanderson commented 8 years ago

implemented in PR #171

nguy commented 7 years ago

Can this topic be closed? I've opened another issue #174 to address the lingering problem with Qt5 compatibility.

pfhein commented 7 years ago

Yes, it can be closed. I will do it.

nguy commented 7 years ago

@pfhein I'd love to hear any issues you run across. Make sure PyQt4 is available on machines.