← Back to team overview

yade-users team mailing list archive

SerializableEditor.py for 32bit system

 

Hi all,
I used to get errors described below. For those, who have the same problem, just change
self.setRange(int(-1e10),int(1e10)); self.setSingleStep(1);
to
self.setRange(int(-1e9),int(1e9)); self.setSingleStep(1);
in ../lib/yade-trunk/py/yade/qt/SerializableEditor.py

Thanks Vaclav for help

Jan

*********

Welcome to Yade bzr2405
TCP python prompt on localhost:9000, auth cookie `udases'
TCP info provider on localhost:21000
Traceback (most recent call last):
  File "/home/honzik/yade/lib/yade-trunk/py/yade/qt/__init__.py", line 103, in generatorComboSlot
    se=SerializableEditor(gen,parent=self.generatorArea,showType=True)
  File "/home/honzik/yade/lib/yade-trunk/py/yade/qt/SerializableEditor.py", line 272, in __init__
    self.mkWidgets()
  File "/home/honzik/yade/lib/yade-trunk/py/yade/qt/SerializableEditor.py", line 379, in mkWidgets
    entry.widget=self.mkWidget(entry)
  File "/home/honzik/yade/lib/yade-trunk/py/yade/qt/SerializableEditor.py", line 346, in mkWidget
    widget=Klass(self,getter=getter,setter=setter)
  File "/home/honzik/yade/lib/yade-trunk/py/yade/qt/SerializableEditor.py", line 88, in __init__
    self.setRange(int(-1e10),int(1e10)); self.setSingleStep(1);
TypeError: QSpinBox.setRange(int, int): argument 1 has unexpected type 'long'
Traceback (most recent call last):
  File "/home/honzik/yade/lib/yade-trunk/py/yade/qt/__init__.py", line 126, in displayComboSlot
    se=SerializableEditor(ser,parent=self.displayArea,ignoredAttrs=set(['label']),showType=True)
  File "/home/honzik/yade/lib/yade-trunk/py/yade/qt/SerializableEditor.py", line 272, in __init__
    self.mkWidgets()
  File "/home/honzik/yade/lib/yade-trunk/py/yade/qt/SerializableEditor.py", line 379, in mkWidgets
    entry.widget=self.mkWidget(entry)
  File "/home/honzik/yade/lib/yade-trunk/py/yade/qt/SerializableEditor.py", line 346, in mkWidget
    widget=Klass(self,getter=getter,setter=setter)
  File "/home/honzik/yade/lib/yade-trunk/py/yade/qt/SerializableEditor.py", line 88, in __init__
    self.setRange(int(-1e10),int(1e10)); self.setSingleStep(1);
TypeError: QSpinBox.setRange(int, int): argument 1 has unexpected type 'long'
Running script stressStrainControll_test.py
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both, F9 generator, F8 plot. ]]



Follow ups