PyQt issue when trying to use IMAQdxCamera labscript device

16 views
Skip to first unread message

EMLLS QUBIT

unread,
May 31, 2023, 3:52:47 PM5/31/23
to the labscript suite
Hello everyone,

When trying to use the IMAQdxCamera from the labscript devices, I'm having the following error:

Traceback (most recent call last):
  File "C:\Anaconda\envs\py39\lib\threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Anaconda\envs\py39\lib\site-packages\zprocess\utils.py", line 122, in _reraise
    raise value.with_traceback(traceback)
  File "C:\Anaconda\envs\py39\lib\site-packages\blacs\__main__.py", line 272, in __init__
    self.tablist[device_name] = TabClass(self.tab_widgets[0],self.settings_dict[device_name])
  File "C:\Anaconda\envs\py39\lib\site-packages\blacs\device_base_class.py", line 54, in __init__
    self.initialise_GUI()
  File "C:\Anaconda\envs\py39\lib\site-packages\labscript_devices\IMAQdxCamera\blacs_tabs.py", line 145, in initialise_GUI
    QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding
AttributeError: module 'PyQt5.QtGui' has no attribute 'QSizePolicy'


I understand there is an issue with the version of PyQt, but I'm not sure how to solve the problem.

I appreciate any assistance you can provide!

Best,
Gabriel

dihm....@gmail.com

unread,
May 31, 2023, 4:40:37 PM5/31/23
to the labscript suite
Hi Gabriel,

Could you say what version of labscript-devices you are using? I thought we had fixed all of the QSizePolicy issues not too long ago. You may just need to update your installation (or at least apply the relevant patches to your local installation).

-David

EMLLS QUBIT

unread,
Jun 1, 2023, 9:09:33 PM6/1/23
to the labscript suite
Hi David,

Many thanks, I updated labscript and it solved the issue.

Best
Gabriel

Reply all
Reply to author
Forward
0 new messages