ZhuangLab / storm-control

Microscope control software
Other
65 stars 67 forks source link

TypeError with python 3.11 #128

Open aaronhalpern opened 1 year ago

aaronhalpern commented 1 year ago

After installation with Python 3.11, received the following error when testing with none_config.xml

TypeError: setPageStep(self, int): argument 1 has unexpected type 'float' line 195 of storm-control\storm_control\hal4000\illumination\illuminationChannelUI.py

The problem was resolved when downgrading to Python 3.9.6

HazenBabcock commented 1 year ago

I think this is just Python/PyQt being more picky about implicit casting of variables. This might fix the problem?

self.powerslider.setPageStep(int(page_step))

You'd probably have to do this in a number of places..