qt5 no module named '_hal'
- HiSH
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 1
08 Feb 2023 15:08 #264056
by HiSH
Replied by HiSH on topic qt5 no module named '_hal'
Sorry for the delay. Running the install_script as you told me,
i got few errors:
cnc@LinuxCNC:/usr/lib/python2.7/dist-packages/qtvcp/designer$ bash install_script.sh
install_script.sh: Zeile 2: $'\r': Kommando nicht gefunden.
installing common base packages
[sudo] Passwort für cnc:
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
E: Paket sound-theme-freedesktop
kann nicht gefunden werden.
install_script.sh: Zeile 6: $'\r': Kommando nicht gefunden.
installing base packages for python2
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
E: Paket
kann nicht gefunden werden.
install_script.sh: Zeile 9: $'\r': Kommando nicht gefunden.
install_script.sh: Zeile 18: Syntaxfehler beim unerwarteten Wort `$'in\r''
'nstall_script.sh: Zeile 18: ` case $response in
i got few errors:
cnc@LinuxCNC:/usr/lib/python2.7/dist-packages/qtvcp/designer$ bash install_script.sh
install_script.sh: Zeile 2: $'\r': Kommando nicht gefunden.
installing common base packages
[sudo] Passwort für cnc:
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
E: Paket sound-theme-freedesktop
kann nicht gefunden werden.
install_script.sh: Zeile 6: $'\r': Kommando nicht gefunden.
installing base packages for python2
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
E: Paket
kann nicht gefunden werden.
install_script.sh: Zeile 9: $'\r': Kommando nicht gefunden.
install_script.sh: Zeile 18: Syntaxfehler beim unerwarteten Wort `$'in\r''
'nstall_script.sh: Zeile 18: ` case $response in
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
09 Feb 2023 05:03 #264099
by cmorley
Replied by cmorley on topic qt5 no module named '_hal'
Well darn, that didn't work.
It can be done manually.
I need to know what version of qt is on the system.
If you open qt designer and click on help/ about qt, what version does it say?
It can be done manually.
I need to know what version of qt is on the system.
If you open qt designer and click on help/ about qt, what version does it say?
Please Log in or Create an account to join the conversation.
- HiSH
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 1
09 Feb 2023 07:49 #264110
by HiSH
Replied by HiSH on topic qt5 no module named '_hal'
Thank you. The qt-version is 5.11.3 .
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
10 Feb 2023 03:20 #264194
by cmorley
Replied by cmorley on topic qt5 no module named '_hal'
Again referencing (the bottom half) of this:
github.com/LinuxCNC/linuxcnc/blob/2.8/li.../designer/README.txt
you will find the libpyqt5_py2.so file in:
/usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.11
it needs to be extracted and put in:
/usr/lib/x86_64-linux-gnu/qt5/plugins/designer
The existing file named libpyqt5.s0 must be renamed libpyqt5_py3.so
Both of those things require sudo privileges.
then you need to create a link in:
~/.designer/plugins/python
that points to:
/usr/lib/python2.7/dist-packages/qtvcp/plugins/qtvcp_plugin.py
Then you should see the widgets in designer or some error messages about a few missing libraries, which we can address if they happen.
github.com/LinuxCNC/linuxcnc/blob/2.8/li.../designer/README.txt
you will find the libpyqt5_py2.so file in:
/usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.11
it needs to be extracted and put in:
/usr/lib/x86_64-linux-gnu/qt5/plugins/designer
The existing file named libpyqt5.s0 must be renamed libpyqt5_py3.so
Both of those things require sudo privileges.
then you need to create a link in:
~/.designer/plugins/python
that points to:
/usr/lib/python2.7/dist-packages/qtvcp/plugins/qtvcp_plugin.py
Then you should see the widgets in designer or some error messages about a few missing libraries, which we can address if they happen.
Please Log in or Create an account to join the conversation.
- HiSH
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 1
13 Feb 2023 10:09 #264412
by HiSH
Replied by HiSH on topic qt5 no module named '_hal'
Thank you.
As you told me, i did:
>>/usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.11
Yes, the archive was present there. (picture1)
>>it needs to be extracted and put in:
>>/usr/lib/x86_64-linux-gnu/qt5/plugins/designer
>>The existing file named libpyqt5.s0 must be renamed libpyqt5_py3.so
Done. (picture2)
>>then you need to create a link in:
>>~/.designer/plugins/python
>>that points to:
>>/usr/lib/python2.7/dist-packages/qtvcp/plugins/qtvcp_plugin.py
Done (picture3)
>>Then you should see the widgets in designer or some error messages about a few missing libraries, which we can address if they happen.
Unfortunately the error remains. (see picture4)
As you told me, i did:
>>/usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.11
Yes, the archive was present there. (picture1)
>>it needs to be extracted and put in:
>>/usr/lib/x86_64-linux-gnu/qt5/plugins/designer
>>The existing file named libpyqt5.s0 must be renamed libpyqt5_py3.so
Done. (picture2)
>>then you need to create a link in:
>>~/.designer/plugins/python
>>that points to:
>>/usr/lib/python2.7/dist-packages/qtvcp/plugins/qtvcp_plugin.py
Done (picture3)
>>Then you should see the widgets in designer or some error messages about a few missing libraries, which we can address if they happen.
Unfortunately the error remains. (see picture4)
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5714
- Thank you received: 2090
13 Feb 2023 10:25 #264414
by phillc54
Replied by phillc54 on topic qt5 no module named '_hal'
The directory that you show in picture2 is /usr/lib/python2.7/dist-packages/qtvcp/designer
It is supposed to be /usr/lib/x86_64-linux-gnu/qt5/plugins/designer
It is supposed to be /usr/lib/x86_64-linux-gnu/qt5/plugins/designer
The following user(s) said Thank You: cmorley
Please Log in or Create an account to join the conversation.
- HiSH
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 1
13 Feb 2023 10:53 #264417
by HiSH
Replied by HiSH on topic qt5 no module named '_hal'
Oh yes, thank you, that was my error!
I have copied the lib in the correct folder and now i could see the linuxcnc-widgets!
I have copied the lib in the correct folder and now i could see the linuxcnc-widgets!
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.059 seconds