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

ImportError: cannot import name 'ApplicationContext' #1

Closed
jaguarondi opened this issue Apr 19, 2020 · 2 comments
Closed

ImportError: cannot import name 'ApplicationContext' #1

jaguarondi opened this issue Apr 19, 2020 · 2 comments

Comments

@jaguarondi
Copy link

I got this error:

⇒  fbs run
Traceback (most recent call last):
  File "/Users/davidbourgeois/src/hidpytoy/src/main/python/main.py", line 6, in <module>
    from fbs_runtime.application_context import ApplicationContext
ImportError: cannot import name 'ApplicationContext'

and changed this to get it working:

diff --git a/src/main/python/main.py b/src/main/python/main.py
index ac8d203..c0496fd 100644
--- a/src/main/python/main.py
+++ b/src/main/python/main.py
@@ -3,7 +3,7 @@
 #   2019 Tod E. Kurt, todbot.com
 #

-from fbs_runtime.application_context import ApplicationContext
+from fbs_runtime.application_context.PyQt5 import ApplicationContext
 from PyQt5 import QtCore, uic, QtWidgets

 import sys
@maxime1907 maxime1907 mentioned this issue Sep 8, 2020
@mcuee
Copy link

mcuee commented Aug 29, 2021

This has been merged so it can be closed.

@todbot todbot closed this as completed Aug 29, 2021
@todbot
Copy link
Owner

todbot commented Aug 29, 2021

Thanks!

@todbot todbot reopened this Aug 29, 2021
@todbot todbot closed this as completed Aug 29, 2021
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

3 participants