Hi Detlev,
while trying to install the current eric snapshot on top of current
PyQt snapshot, install.py complains about:
Traceback (most recent call last):
File "install.py", line 299, in ?
main(sys.argv)
File "install.py", line 273, in main
if PYQT_VERSION[:9] == "snapshot-":
TypeError: unsubscriptable object
which is understandable, because Phil has changed PYQT_VERSION
handling recently.
>>> from qt import PYQT_VERSION
>>> print PYQT_VERSION
197888
I've attached a patch, which got it going for me again...
Bye,
Pete--- eric-snapshot-20030210/install.py~ 2003-02-10 22:37:58.000000000 +0100
+++ eric-snapshot-20030210/install.py 2003-03-01 17:01:12.000000000 +0100
@@ -268,18 +268,23 @@
if qtMajor < 3:
print 'Sorry, you must have Qt version 3.0.0 or higher.'
sys.exit(2)
#check version of PyQt
- if PYQT_VERSION[:9] == "snapshot-":
- if long(PYQT_VERSION[9:]) < 20021122L:
+ try:
+ from qt import PYQT_VERSION_STR
+ qtVersion = PYQT_VERSION_STR
+ except:
+ qtVersion = PYQT_VERSION
+ if qtVersion[:9] == "snapshot-":
+ if long(qtVersion[9:]) < 20021122L:
print 'Sorry, you must have PyQt snapshot-20021217 or higher.'
sys.exit(3)
else:
- while PYQT_VERSION.count('.') < 2:
- PYQT_VERSION += '.0'
- (maj, min, pat) = PYQT_VERSION.split('.')
+ while qtVersion.count('.') < 2:
+ qtVersion += '.0'
+ (maj, min, pat) = qtVersion.split('.')
maj = int(maj)
min = int(min)
pat = int(pat)
if maj < 3 or (maj == 3 and min < 6):
print 'Sorry, you must have PyQt 3.6.0 or snapshot-20021217 or higher.'