ubarsc / tuiview

TuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
http://tuiview.org/
GNU General Public License v2.0
26 stars 13 forks source link

Tuiview 1.2.1 crashes on Qsize for python 2.7 #6

Closed gillins closed 6 years ago

gillins commented 6 years ago

Original report by Anonymous.


This is what happens on my archlinux 32 machine: $ tuiview Traceback (most recent call last): File "/usr/bin/tuiview", line 21, in viewerapplication.run() File "/usr/lib/python2.7/site-packages/tuiview/viewerapplication.py", line 222, in run app = ViewerApplication() File "/usr/lib/python2.7/site-packages/tuiview/viewerapplication.py", line 161, in init self.viewers.newViewer() File "/usr/lib/python2.7/site-packages/tuiview/geolinkedviewers.py", line 122, in newViewer newviewer = viewerwindow.ViewerWindow() File "/usr/lib/python2.7/site-packages/tuiview/viewerwindow.py", line 169, in init self.restoreFromSettings() File "/usr/lib/python2.7/site-packages/tuiview/viewerwindow.py", line 282, in restoreFromSettings self.resize(settings.value("size", defaultsize).toSize()) AttributeError: 'QSize' object has no attribute 'toSize'

gillins commented 6 years ago

Original comment by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).


Thanks for your report. Indeed there were a number of problems with Python 2.7 which I hadn't picked up on with Qt5. I usually only test with Python 3 so this has been a good lesson for me.

I have pushed a new commit (https://bitbucket.org/chchrsc/tuiview/commits/cf0723ff8a6be957e8b93869e8557a199168140a) with some fixes. Can you install the latest from Mercurial and let me know if it is running ok or not?

Thanks Sam.

gillins commented 6 years ago

Original comment by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).


Fixed in 1.2.2