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

Blockly fails to load #25

Open
renerichter opened this issue Jan 12, 2023 · 6 comments
Open

Blockly fails to load #25

renerichter opened this issue Jan 12, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@renerichter
Copy link

Bug description
Imswitch not starting due to failing blockly.

How to reproduce
Steps to reproduce the behavior:

  1. install imswitch with all dependencies
  2. git pull configs von git and put to ~/ImSwitchConfig
  3. in mamba activate imswitch environment run imswitch command

Expected behavior
Assumed all modules (including blockly) to start properly.

Output

2023-01-12 16:11:02 ERROR [main] Failed to initialize module imblockly
2023-01-12 16:11:02 ERROR [main] Traceback (most recent call last):
  File "[...]ImSwitch/imswitch/__main__.py", line 58, in main
    view, controller = modulePkg.getMainViewAndController(
  File "[...]ImSwitch/imswitch/imblockly/__init__.py", line 55, in getMainViewAndController
    from .controller import ImScrMainController
  File "[...]ImSwitch/imswitch/imblockly/controller/__init__.py", line 1, in <module>
    from .ImScrMainController import ImScrMainController
  File "[...]ImSwitch/imswitch/imblockly/controller/ImScrMainController.py", line 5, in <module>
    from .ImScrMainViewController import ImScrMainViewController
  File "[...]ImSwitch/imswitch/imblockly/controller/ImScrMainViewController.py", line 2, in <module>
    from .EditorController import EditorController
  File "[...]ImSwitch/imswitch/imblockly/controller/EditorController.py", line 5, in <module>
    from imswitch.imblockly.view import guitools
  File "[...]ImSwitch/imswitch/imblockly/view/__init__.py", line 1, in <module>
    from .ImScrMainView import ImScrMainView
  File "[...]ImSwitch/imswitch/imblockly/view/ImScrMainView.py", line 4, in <module>
    from .BlocklyView import BlocklyView
  File "[...]ImSwitch/imswitch/imblockly/view/BlocklyView.py", line 3, in <module>
    from PyQt5.QtWebEngineWidgets import *
ImportError: QtWebEngineWidgets must be imported before a QCoreApplication instance is created

[1]    70295 segmentation fault  imswitch
/opt/homebrew/Caskroom/mambaforge/base/envs/imswitch/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '

Environment

  • OS: osx-arm64
  • ImSwitch version: 1.2.11
  • How you downloaded ImSwitch: git
@renerichter renerichter added the bug Something isn't working label Jan 12, 2023
@beniroquai
Copy link
Collaborator

Thanks @renerichter. This is indeed a known issue. I'll investigate. Most likely the Website is not being shipped through github correctly. I'll have a look.

@beniroquai beniroquai self-assigned this Jan 14, 2023
@beniroquai
Copy link
Collaborator

Seems I cannot even install the package under windwos..
https://stackoverflow.com/questions/51154871/python-3-7-0-no-module-named-pyqt5-qtwebenginewidgets

@renerichter
Copy link
Author

@beniroquai installation of the package (as it is shipped with PyQt5 as expected) is no problem. It seems that order of modules and packages that are imported is messed up. I will have a look.

@beniroquai
Copy link
Collaborator

Yep. Napari is the issue I guess. Tried installing microeye for STORM reconstruction today which screwed up pydantic and pyqt5. Force-reinstalling resolved the issue in my case.

@renerichter
Copy link
Author

So a simple pip install --upgrade --force-reinstall pyqt5 at the solved your problem? Maybe we should try this in the installation script then?

@beniroquai
Copy link
Collaborator

beniroquai commented Feb 1, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants