Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Can't enable debug mode on opensesame 3.1.5

edited February 2017 in OpenSesame

Hello,

I am trying to debug an issue. Namely, when I copy past a text into a script editor for any form, the program terminates (crashes). This mostly happens when I past between double quotation marks.

I am running Arch with the latest updates. I installed opensesame 3.1.5 using pip2 (the version on AUR is outdated).

I tried running opensesame with --debug option and got this:

    000000 debug mode enabled
    Traceback (most recent call last):
     File "/usr/bin/opensesame", line 24, in <module>
        from libqtopensesame import __main__
      File "/usr/lib/python2.7/site-packages/libqtopensesame/__init__.py", line 27, in <module>
        from libqtopensesame.items import qtplugin
      File "/usr/lib/python2.7/site-packages/libqtopensesame/items/qtplugin.py", line 24, in <module>
        from libqtopensesame.items import qtitem
      File "/usr/lib/python2.7/site-packages/libqtopensesame/items/qtitem.py", line 24, in <module>
        from libqtopensesame.widgets.item_view_button import item_view_button
      File "/usr/lib/python2.7/site-packages/libqtopensesame/widgets/item_view_button.py", line 22, in <module>
        from libqtopensesame.misc.base_subcomponent import base_subcomponent
      File "/usr/lib/python2.7/site-packages/libqtopensesame/misc/base_subcomponent.py", line 22, in <module>
        from libqtopensesame.misc.base_component import base_component
      File "/usr/lib/python2.7/site-packages/libqtopensesame/misc/base_component.py", line 30, in <module>
        from libqtopensesame.misc.base_qtobject import base_qtobject
      File "/usr/lib/python2.7/site-packages/libqtopensesame/misc/base_qtobject.py", line 25, in <module>
        from qtpy.QtCore import pyqtWrapperType
    ImportError: cannot import name pyqtWrapperType

I have python2-qtpy verrsion 1.2.1-1 installed (as well as python-qtpy verrsion 1.2.1-1)

When I run it without --debug, it runs, but I get this warning:

    /usr/lib/python2.7/site-packages/IPython/qt.py:13: ShimWarning: The `IPython.qt` package has been deprecated. You should import from qtconsole instead.
      "You should import from qtconsole instead.", ShimWarning)

Same thing happens in version 3.1.4.

Other then this, the program works as it should and I can run my experiment and collect data.

Hike

Comments

  • I am trying to debug an issue. Namely, when I copy past a text into a script editor for any form, the program terminates (crashes). This mostly happens when I past between double quotation marks.

    Do you mean that you get a segmentation fault? If so, this is probably a problem with PyQt4 and/ or QScintilla2 (the editor component) in your distribution. This is annoying, and there's not much you can do about it. OpenSesame itself is pure Python, so bugs in OpenSesame will give you neat stacktraces (like the one you're seeing now).

    So I doubt that debugging with --debug will give you much useful information. But if you want to do it anyway, you can downgrade qtpy to 1.1.2. This is the version that I use (Ubuntu 16.04), and it does allow debug mode to run.

    Cheers!
    Sebastiaan

  • Sebastiaan, thanks for getting back and for developing such a great software!

    Yes, I get a segmentation fault. I guess, if the issue is not so terrible, I'll live with it.

    Can you explain (if you have time) what do you mean by "OpenSesame itself is pure Python" and the crash is in the editor? I thought the entire thing is OpenSesame, except the back-ends.

  • Can you explain (if you have time) what do you mean by "OpenSesame itself is pure Python" and the crash is in the editor? I thought the entire thing is OpenSesame, except the back-ends.

    OpenSesame, like most modern software, uses many third-party libraries. For example, the editor is based on QScintilla2. In a sense, of course, all these libraries together make up OpenSesame; but if there's a problem in the third-party libraries, especially if they're not written in Python themselves, it's very difficult to fix.

Sign In or Register to comment.