Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selecting new group on applet dock in artiq 3.0 crashes dashboard #629

Closed
r-srinivas opened this issue Nov 28, 2016 · 2 comments
Closed

Comments

@r-srinivas
Copy link

r-srinivas commented Nov 28, 2016

Using 3.0 on windows, if you right click on the applet dock and click new group it crashes the dashboard. The error message I get is,

Traceback (most recent call last):
  File "C:\Anaconda3\envs\artiq-2016-11-25\lib\site-packages\artiq\gui\applets.p
y", line 542, in new_with_parent
    cb(parent=parent, **kwargs)
  File "C:\Anaconda3\envs\artiq-2016-11-25\lib\site-packages\artiq\gui\applets.p
y", line 523, in new_group
    QtCore.Qt.ItemIsDropEnabled |
AttributeError: type object 'Qt' has no attribute 'ItemIsAutoTristate'

Seems to happen if the applet dock is empty or if there's another applet there.

@r-srinivas r-srinivas changed the title Selecting new applet on empty applet dock in artiq 3.0 crashes dashboard Selecting new group on empty applet dock in artiq 3.0 crashes dashboard Nov 28, 2016
@r-srinivas r-srinivas changed the title Selecting new group on empty applet dock in artiq 3.0 crashes dashboard Selecting new group on applet dock in artiq 3.0 crashes dashboard Nov 28, 2016
@r-srinivas
Copy link
Author

Probably related, following the example here (https://github.com/m-labs/artiq/blob/master/artiq/examples/master/repository/code_applet.py), I run into the following error,

ERROR:dashboard:artiq.dashboard.applets_ccb:failed to process CCB
Traceback (most recent call last):
  File "C:\Anaconda3\envs\artiq-2016-11-25\lib\site-packages\artiq\dashboard\app
lets_ccb.py", line 246, in ccb_notify
    self.ccb_create_applet(*args, **kwargs)
  File "C:\Anaconda3\envs\artiq-2016-11-25\lib\site-packages\artiq\dashboard\app
lets_ccb.py", line 178, in ccb_create_applet
    parent, applet = self.locate_applet(name, group, True)
  File "C:\Anaconda3\envs\artiq-2016-11-25\lib\site-packages\artiq\dashboard\app
lets_ccb.py", line 131, in locate_applet
    new_parent = self.new_group(g, parent=parent)
  File "C:\Anaconda3\envs\artiq-2016-11-25\lib\site-packages\artiq\gui\applets.p
y", line 523, in new_group
    QtCore.Qt.ItemIsDropEnabled |
AttributeError: type object 'Qt' has no attribute 'ItemIsAutoTristate'

If I modify the code to group=None it works.

Sorry, something went wrong.

jordens added a commit that referenced this issue Nov 29, 2016
* m-labs/master:
  applets: compatibility with older Qt. Closes #629
  doc: update LLVM configure command (fixes #628).
  runtime: match argument signedness between ARTIQ Python and ksupport.
  runtime: refactor rtio_output_list.
  runtime: use correct ABI when accepting ARTIQ lists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants