Howdy, Stranger!

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

Supported by

Rapunzel breaks! MacOS 13.2

Hello Sebastiaan&Co.!

I transfered to macOS Vertura 13.2 and Rapunzel issued some unsolvable problems.

The first thing it issued some problem with unfound module of PyQt5. So I followed advice that Terminal suggested, and unchecked one of places in Menu-> Tools-> Preferences-> (as far as I remember, UPDATE).

After that, Terminal suggested to uncheck Menu-> Tools-> Preferences-> (DEBUG-...).

And after that Rapunzel crashes all the time, it just shows up and disappears.

I uninstalled conda and then installed it again via brew. And Rapunzel still behaves the same.

Is there any way to return DEBUG checkbox to default state, so that it be possible to try solving the first problem with PyQt?

Comments

  • (guri_rapunzel_env) guri@Guris-MacBook-Air ~ % rapunzel 

    qt.qpa.fonts: Populating font family aliases took 376 ms. Replace uses of missing font family "Monospace" with one that exists to avoid this cost. 

    [2023-02-12 16:10:56,450:console_bridge:50:INFO] 

    Extension error


    item-stack: 

    time: Sun Feb 12 16:10:56 2023

    exception type: AttributeError

    exception message: module 'pyflakes.messages' has no attribute 'ReturnWithArgsInsideGenerator'


    Traceback:

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libqtopensesame/extensions/_extension_manager.py", line 88, in __init__

      ext = plugins.load_extension(ext_name, self.main_window)

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libopensesame/plugins.py", line 470, in load_extension

      mod = import_plugin(ext_name, _type=u'extensions')

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libopensesame/plugins.py", line 413, in import_plugin

      return imp.load_source(plugin, path)

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/imp.py", line 171, in load_source

      module = _load(spec)

     File "<frozen importlib._bootstrap>", line 711, in _load

     File "<frozen importlib._bootstrap>", line 680, in _load_unlocked

     File "<frozen importlib._bootstrap_external>", line 850, in exec_module

     File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/share/opensesame_extensions/pyqode_manager/pyqode_manager.py", line 31, in <module>

      from pyqode_extras.widgets import (

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/share/opensesame_extensions/pyqode_manager/pyqode_extras/widgets/__init__.py", line 21, in <module>

      from pyqode_extras.widgets.python_code_edit import PythonCodeEdit

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/share/opensesame_extensions/pyqode_manager/pyqode_extras/widgets/python_code_edit.py", line 25, in <module>

      from pyqode.python.backend import server

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/pyqode/python/backend/__init__.py", line 7, in <module>

      from .workers import calltips

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/pyqode/python/backend/workers.py", line 186, in <module>

      messages.ReturnWithArgsInsideGenerator,

    AttributeError: module 'pyflakes.messages' has no attribute 'ReturnWithArgsInsideGenerator'



    [2023-02-12 16:10:56,491:console_bridge:50:INFO] 

    Extension error


    item-stack: 

    time: Sun Feb 12 16:10:56 2023

    exception type: AttributeError

    exception message: module 'pyflakes.messages' has no attribute 'ReturnWithArgsInsideGenerator'


    Traceback:

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libqtopensesame/extensions/_extension_manager.py", line 88, in __init__

      ext = plugins.load_extension(ext_name, self.main_window)

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libopensesame/plugins.py", line 470, in load_extension

      mod = import_plugin(ext_name, _type=u'extensions')

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libopensesame/plugins.py", line 413, in import_plugin

      return imp.load_source(plugin, path)

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/imp.py", line 171, in load_source

      module = _load(spec)

     File "<frozen importlib._bootstrap>", line 711, in _load

     File "<frozen importlib._bootstrap>", line 680, in _load_unlocked

     File "<frozen importlib._bootstrap_external>", line 850, in exec_module

     File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/share/opensesame_extensions/OpenSesameIDE/OpenSesameIDE.py", line 41, in <module>

      from pyqode_extras.widgets import FallbackCodeEdit

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/share/opensesame_extensions/pyqode_manager/pyqode_extras/widgets/__init__.py", line 21, in <module>

      from pyqode_extras.widgets.python_code_edit import PythonCodeEdit

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/share/opensesame_extensions/pyqode_manager/pyqode_extras/widgets/python_code_edit.py", line 25, in <module>

      from pyqode.python.backend import server

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/pyqode/python/backend/__init__.py", line 7, in <module>

      from .workers import calltips

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/pyqode/python/backend/workers.py", line 186, in <module>

      messages.ReturnWithArgsInsideGenerator,

    AttributeError: module 'pyflakes.messages' has no attribute 'ReturnWithArgsInsideGenerator'



    [2023-02-12 16:10:57,163:console_bridge:50:INFO] 

    Extension error


    item-stack: 

    time: Sun Feb 12 16:10:57 2023

    exception type: ImportError

    exception message: dlopen(/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/QtWebEngineWidgets.abi3.so, 0x0002): Library not loaded: @rpath/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets

     Referenced from: <257965B2-8A02-3130-899C-2BDA0CFEF2FC> /usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/QtWebEngineWidgets.abi3.so

     Reason: tried: '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/System/Volumes/Preboot/Cryptexes/OS@rpath/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/Library/Frameworks/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/System/Library/Frameworks/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file, not in dyld cache)


    Traceback:

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libqtopensesame/widgets/webbrowser.py", line 37, in <module>

      from PyQt5.QtWebKitWidgets import QWebView as WebView

    ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'


    During handling of the above exception, another exception occurred:


    Traceback (most recent call last):

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libqtopensesame/extensions/_extension_manager.py", line 88, in __init__

      ext = plugins.load_extension(ext_name, self.main_window)

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libopensesame/plugins.py", line 470, in load_extension

      mod = import_plugin(ext_name, _type=u'extensions')

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libopensesame/plugins.py", line 413, in import_plugin

      return imp.load_source(plugin, path)

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/imp.py", line 171, in load_source

      module = _load(spec)

     File "<frozen importlib._bootstrap>", line 711, in _load

     File "<frozen importlib._bootstrap>", line 680, in _load_unlocked

     File "<frozen importlib._bootstrap_external>", line 850, in exec_module

     File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/share/opensesame_extensions/analytics/analytics.py", line 24, in <module>

      from libqtopensesame.widgets.webbrowser import WebView

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libqtopensesame/widgets/webbrowser.py", line 40, in <module>

      from PyQt5.QtWebEngineWidgets import QWebEngineView as WebView

    ImportError: dlopen(/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/QtWebEngineWidgets.abi3.so, 0x0002): Library not loaded: @rpath/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets

     Referenced from: <257965B2-8A02-3130-899C-2BDA0CFEF2FC> /usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/QtWebEngineWidgets.abi3.so

     Reason: tried: '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/System/Volumes/Preboot/Cryptexes/OS@rpath/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/Library/Frameworks/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/System/Library/Frameworks/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file, not in dyld cache)



    2023-02-12 16:10:57.310 python3.9[749:13937] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_bundleIdentifierWithReply:) block performed very slowly (3.18 secs).

    Traceback (most recent call last):

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libqtopensesame/widgets/webbrowser.py", line 37, in <module>

      from PyQt5.QtWebKitWidgets import QWebView as WebView

    ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'


    During handling of the above exception, another exception occurred:


    Traceback (most recent call last):

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/share/opensesame_extensions/RapunzelWelcome/RapunzelWelcome.py", line 40, in event_startup

      self.tabwidget.open_markdown(

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libqtopensesame/widgets/tab_widget.py", line 509, in open_markdown

      from libqtopensesame.widgets.webbrowser import webbrowser

     File "/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/libqtopensesame/widgets/webbrowser.py", line 40, in <module>

      from PyQt5.QtWebEngineWidgets import QWebEngineView as WebView

    ImportError: dlopen(/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/QtWebEngineWidgets.abi3.so, 0x0002): Library not loaded: @rpath/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets

     Referenced from: <257965B2-8A02-3130-899C-2BDA0CFEF2FC> /usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/QtWebEngineWidgets.abi3.so

     Reason: tried: '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/System/Volumes/Preboot/Cryptexes/OS@rpath/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/lib/python3.9/site-packages/PyQt5/Qt5/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/usr/local/anaconda3/envs/guri_rapunzel_env/bin/../lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/Library/Frameworks/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file), '/System/Library/Frameworks/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets' (no such file, not in dyld cache)

    zsh: abort   rapunzel

  • That's what happens when I try to run 'rapunzel' from Terminal

  • Hi @sfumata ,

    Based on the error message seem to be a number of separate issues here.

    The first issue is that I suspect that you have installed the original pyqode.core and pyqode.python packages (which are no longer maintained by the author), as opposed to the fork that is required by OpenSesame. When installing from pip , these are called pyqode3.core and pyqode3.python . (It's also possible that you already have these installed, but that they need to be updated.)

    The second issue seems to be due to your installation of PyQt5 and the subpackage QtWebEngineWidgets . Here I don't have any suggestions, because this is likely very specific to your system.

    Maybe simply installing a fresh environment is the way to go?

    — Sebastiaan

    Also tagging @robbertmijn , who has more experience with Mac OS.

  • Hi @sebastiaan ! Thanks for your fast reply!

    Unfortunately installing pyqode3.core and pyqode3.python didn't help. But that's what I'd like to mention: When I try to install rapunzel in a new env it says next :


    The following NEW packages will be INSTALLED:

    ...

     pyqode.core    conda-forge/noarch::pyqode.core-2.12.1-py_0 None

     pyqode.python   conda-forge/noarch::pyqode.python-2.12.1-py_0 None

     pyqode.qt     conda-forge/noarch::pyqode.qt-2.10.0-pyh8a2030e_0 None

     pyqt        conda-forge/osx-64::pyqt-5.15.7-py37h6d02c96_0 None

     pyqt5-sip     conda-forge/osx-64::pyqt5-sip-12.11.0-py37h453a0d4_0 None

    ...


    So, by default it installs not version 3 but simply pyqode.

    With regards!

  • Hi @sfumata ,

    Ah, you're using Anaconda, not pip. In that case, you need the packages from the cogsci channels as described here:

    When adding the cogsci channel, you should see that pyqode.core and pyqode.python are version 3 (and not 2 as the conda-forge packages).

    — Sebastiaan

Sign In or Register to comment.