Failed to load extension problem
I get this two errors when I launch Open Sesame:
Failed to load extension file_handler (see debug window for stack trace)
Failed to load extension pyqode_manager (see debug window for stack trace)
The window stack trace shows:
Traceback: File "c:\Users\chris\libqtopensesame\extensions\_extension_manager.py", line 73, in __init__ ext = plugins.load_extension(ext_name, self.main_window) File "c:\Users\chris\libopensesame\plugins.py", line 451, in load_extension mod = import_plugin(ext_name, _type=u'extensions') File "c:\Users\chris\libopensesame\plugins.py", line 395, in import_plugin return imp.load_source(plugin, path) File "C:\Users\chris\AppData\Local\Programs\Python\Python36\lib\imp.py", line 172, in load_source module = _load(spec) File "<frozen importlib._bootstrap>", line 684, in _load File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "C:\Users\chris\AppData\Local\Programs\Python\Python36\share\opensesame_extensions\pyqode_manager\pyqode_manager.py", line 37, in <module> from pyqode.core.panels import LineNumberPanel, FoldingPanel, MarginPanel ImportError: cannot import name 'MarginPanel' Extension error item-stack: time: Tue Aug 25 09:24:52 2020 exception type: ImportError exception message: cannot import name 'BaseExtension' Traceback: File "c:\Users\chris\libqtopensesame\extensions\_extension_manager.py", line 73, in __init__ ext = plugins.load_extension(ext_name, self.main_window) File "c:\Users\chris\libopensesame\plugins.py", line 451, in load_extension mod = import_plugin(ext_name, _type=u'extensions') File "c:\Users\chris\libopensesame\plugins.py", line 395, in import_plugin return imp.load_source(plugin, path) File "C:\Users\chris\AppData\Local\Programs\Python\Python36\lib\imp.py", line 172, in load_source module = _load(spec) File "<frozen importlib._bootstrap>", line 684, in _load File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "C:\Users\chris\AppData\Local\Programs\Python\Python36\share\opensesame_extensions\file_handler\file_handler.py", line 25, in <module> from libqtopensesame.extensions import BaseExtension ImportError: cannot import name 'BaseExtension'
Comments
Hi @chris8574 ,
This is probably due to the version of PyQode that you have installed, which is the library that is used for the editor components. OpenSesame requires PyQode ≥ 3, which is a fork of the original (unmaintained) PyQode.
pip:
conda:
Hope this helps!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!