-
Notifications
You must be signed in to change notification settings - Fork 54
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
mcgui 3.4 windows issue #1552
Comments
Hi @pkaracosta Sorry for not getting back to you before, have been busy running a McStas school. :) If I remember correctly you may have an Anaconda Python installed “globally” on your Windows machine? If this is the case, very likely the “embedded” Python brought along with the installation of McStas 3.4 is likely colliding with that Python version - and the cure/workaround is potentially as simple as renaming your folder Try this and see what happens? (We may have to install McStas dependencies to your "system" Python - the list is available here: https://github.com/McStasMcXtrace/McCode/blob/main/environment.yml) Best, Peter |
Thanks Peter, this solved it!! |
Great! I will see what can be done to avoid this problem going forward with McStas 3.5. |
Hey there, I seem to have the exact same problem. I wanted to upgrade to McStas 3.4 from 3.3 and now i get the same error message when trying to start the gui from the shell. The thing is i get the same problem with version 2.7.2 that i downloaded just to check, but in version 3.3 the gui works fine. Best |
@GustiLoesch quite certain there is a clash between "system" Python ( Anaconda? ) and the embedded one in your McStas. I have three possible workarounds for you:
Best of luck |
Thank you :) |
@GustiLoesch good to hear! That installation was made on a machine where I was certain no other Python was present at install time. (I believe we are looking at a problem of detecting Qt "already available" on the surrounding system but linked to / matching another Python version...) |
@GustiLoesch and @pkaracosta I have reworked the installation procedure, you may try it out via the outputs of this GitHub worker run: (Windows installer is included in the "ubuntu" artefact as it a cross-compile) |
Hi, there is an issue with the GUI not running both from shortcut and the shell.
C:\Users\user>mcgui
Traceback (most recent call last):
File "C:\mcstas-3.4\lib\tools\Python\mcgui\mcgui.py", line 15, in
from PyQt5 import QtCore, QtWidgets
ImportError: DLL load failed while importing QtCore: The specified module could not be found.
Tried updating to latest python version and installing PyQt5 but no luck so far (windows).
Thanks!
The text was updated successfully, but these errors were encountered: