[mcstas-users] McStas 3.0 - running mcgui (WSL 1, Ubuntu 20.04 LTS)
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Sat Feb 6 22:06:02 CET 2021
Hello again Michał,
I successfully reproduced your issue in a virtual machine, and also found a series of workarounds.
1) (As root) I commented out lines 26-28 in /usr/bin/mcgui
2) Next, a problem loading libQt5Core.so.5 appeared:
Traceback (most recent call last):
File "/usr/share/mcstas/3.0/tools/Python/mcgui/mcgui.py", line 14, in <module>
from PyQt5 import QtCore, QtWidgets
ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory
- But in fact the file was present in /usr/lib/x86_64-linux-gnu/ ?! This turned out to be an issue with the kernel shipped
with Ubuntu 20.04 on WSL, I followed the recommendation from this page:
https://askubuntu.com/questions/1034313/ubuntu-18-4-libqt5core-so-5-cannot-open-shared-object-file-no-such-file-or-dir
and ran the command
sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
- This all together allowed mcgui to run, see attachment.
Best
Peter
[cid:E6578628-E379-4EA8-BE1C-EB49FA104559]
On 6 Feb 2021, at 20.50, Peter Willendrup <pwillendrup at gmail.com<mailto:pwillendrup at gmail.com>> wrote:
Dear Michał.
Judging from the last line of the error-message, it looks like the shell-script could be picking up a path containing a space, i.e. Program Files?
Could you try doing e.g. a cd /tmp before attempting to start mcgui to see if this changes anything?
Alternatively you should be able to remove the lines 26-28 in the mcgui shell-script, i.e. replace
else
export PATH=$LIB/../miniconda3/bin:$PATH
export LD_LIBRARY_PATH=$LIB/../miniconda3/lib:$LD_LIBRARY_PATH
fi
by
fi
only?
Hope this helps,
Peter
On 6 Feb 2021, at 18.39, Dembski-Villalta, Michal Piotr <michal.dembski-villalta at tum.de<mailto:michal.dembski-villalta at tum.de>> wrote:
Dear McStas users,
I’m writing with a problem, I believe similar to a recent issue (already resolved here https://mailman2.mcstas.org/pipermail/mcstas-users/2021q1/001391.html), however that solution did not help me. After installing McStas 3.0 on Windows 10 (WSL1, Ubuntu 20.04 LTS) I get the following error:
.../McStas$ mcgui
/usr/share/mcstas/3.0/bin/mcgui: 14: [[: not found
/usr/share/mcstas/3.0/bin/mcgui: 27: export:
Files/WindowsApps/CanonicalGroupLimited.Ubuntu20.04onWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/Program: bad variable name
I would be grateful for any help with it.
Kindly,
Michał Dembski-Villalta
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
Peter Kjær Willendrup
Forskningsingeniør, Specialkonsulent
Næstformand for DTU Fysik LSU
DTU Physics
[cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk]
Technical University of Denmark
[cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk<mailto:pkwi at fysik.dtu.dk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210206/a5587e84/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2021-02-06 at 21.58.24.png
Type: image/png
Size: 379956 bytes
Desc: Screen Shot 2021-02-06 at 21.58.24.png
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210206/a5587e84/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210206/a5587e84/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210206/a5587e84/attachment-0003.gif>
More information about the mcstas-users
mailing list