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

FBS with Pyqt6 #290

Closed
proftc opened this issue Jan 10, 2023 · 4 comments
Closed

FBS with Pyqt6 #290

proftc opened this issue Jan 10, 2023 · 4 comments

Comments

@proftc
Copy link

proftc commented Jan 10, 2023

I'm trying to use FBS on my Mac M2 which requires PyQt5. I have installed Python 3.9.6 and set up a virtual environment. However I see that PyQt5 is not supported and I have tried many of the suggested solutions but - I get all sorts of errors when I try to install it- so I am now trying fbs pro which supports PyQt6 but now the test program gives an error?
(nmr396) terry@M2 testFBS % fbs run
Traceback (most recent call last):
File "/Users/terry/Documents/Python/testFBS/src/main/python/main.py", line 11, in
exit_code = appctxt.app.exec_() # 2. Invoke appctxt.app.exec_()
AttributeError: 'QApplication' object has no attribute 'exec_'
I'm obvious missed something?
Thanks for any suggestions

@mherrmann
Copy link
Owner

In PyQt6, I think it's called exec, not exec_.

@proftc
Copy link
Author

proftc commented Jan 11, 2023

Brilliant Thanks

@proftc
Copy link
Author

proftc commented Jan 11, 2023

That worked fine but I now get these errors? when I try to freeze. Do I need to run everything under Rosetta?
nmr396) terry@M2 testFBS % fbs freeze
Could not find any of the following files:

  • Python3
  • libpython3.9m.dylib
  • Python
  • .Python
  • libpython3.9.dylib

Thanks again

@mherrmann
Copy link
Owner

Let's continue this discussion in #291 please.

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

2 participants