SOLVED : PyQt5 issues
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
SOLVED : PyQt5 issues
Hi,
Seems that FC 0.19 is the most unstable stable software I ever used.
After having lots of trouble with all kind of things that kept me busy for hours I uninstalled FC (see below for the version I was using).
Them downloaded the "FreeCAD_0.19-24276-Linux-Conda_glibc2.12-x86_64.Appimage and started using that.
it went ok for a while but suddenly after a save of my project half of my drawing was gone.
I got an error in the console about some lines it couldn't read anymore.
So decided to leave the .appimage for what it was too.
Checked my system and removed everything that had to do with Freecad.
shutdown and reboot.
installed the ppa for the stable 0.19 version again and installed FC again (the Ubuntu way: sudo apt install freecad).
The version now installed is:
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 9e3b630bbfb6807e93eeffb655e6c20f218644fc
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.1
When I now start freecad I get the errors as showed in the attached screenshot.
Anybody any idea what going on?
SOLVED:
This is solved by installing the full python3-pyqt5 package.
Did that and now the issue is gone.
Thanks in advance
This was the FC version I was using:
OS: Linux Mint 20 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: e8566f22bbeb0b7204e3c45519d0963e8881100b
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/United Kingdom (en_GB)
Seems that FC 0.19 is the most unstable stable software I ever used.
After having lots of trouble with all kind of things that kept me busy for hours I uninstalled FC (see below for the version I was using).
Them downloaded the "FreeCAD_0.19-24276-Linux-Conda_glibc2.12-x86_64.Appimage and started using that.
it went ok for a while but suddenly after a save of my project half of my drawing was gone.
I got an error in the console about some lines it couldn't read anymore.
So decided to leave the .appimage for what it was too.
Checked my system and removed everything that had to do with Freecad.
shutdown and reboot.
installed the ppa for the stable 0.19 version again and installed FC again (the Ubuntu way: sudo apt install freecad).
The version now installed is:
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 9e3b630bbfb6807e93eeffb655e6c20f218644fc
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.1
When I now start freecad I get the errors as showed in the attached screenshot.
Anybody any idea what going on?
SOLVED:
This is solved by installing the full python3-pyqt5 package.
Did that and now the issue is gone.
Thanks in advance
This was the FC version I was using:
OS: Linux Mint 20 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: e8566f22bbeb0b7204e3c45519d0963e8881100b
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/United Kingdom (en_GB)
- Attachments
-
- Screenshot from 2021-05-02 16-35-05.png (49.2 KiB) Viewed 2411 times
Last edited by Deffe on Sat May 08, 2021 8:33 am, edited 1 time in total.
Re: PyQt5 issues
This is one of the most unclear clear sentence I ever read...
FreeCAD doesn't use PyQt anymore (for quite a long time). I saw same problem on another post some days ago. You may have a search in the forum.Anybody any idea what going on?
Re: PyQt5 issues
PyQt5 indicate that probably (most probably) in /usr/share/freecad some old (very old) files are left maybe from something very old, as PyQt5 is not used at least from 0.14 onward (maybe also some prior version).
But from some infos around here the problem is in Ubuntu 20.04 that have done some strange things, and you have to install pyqt5-dev to solve the issue.
Although pyqt5 is not used, maybe some old code will refer to them.
https://forum.freecadweb.org/viewtopic. ... t5#p472366
https://forum.freecadweb.org/viewtopic. ... t5#p478685
Maybe some bug report to developer will address this old calls in the code @wmayer, @chrisb @looo ping.
Regards
Carlo D.
But from some infos around here the problem is in Ubuntu 20.04 that have done some strange things, and you have to install pyqt5-dev to solve the issue.
Although pyqt5 is not used, maybe some old code will refer to them.
https://forum.freecadweb.org/viewtopic. ... t5#p472366
https://forum.freecadweb.org/viewtopic. ... t5#p478685
Maybe some bug report to developer will address this old calls in the code @wmayer, @chrisb @looo ping.
Regards
Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: PyQt5 issues
Thanks for the replies.onekk wrote: ↑Sun May 02, 2021 4:28 pm PyQt5 indicate that probably (most probably) in /usr/share/freecad some old (very old) files are left maybe from something very old, as PyQt5 is not used at least from 0.14 onward (maybe also some prior version).
But from some infos around here the problem is in Ubuntu 20.04 that have done some strange things, and you have to install pyqt5-dev to solve the issue.
Although pyqt5 is not used, maybe some old code will refer to them.
https://forum.freecadweb.org/viewtopic. ... t5#p472366
https://forum.freecadweb.org/viewtopic. ... t5#p478685
Maybe some bug report to developer will address this old calls in the code @wmayer, @chrisb @looo ping.
Regards
Carlo D.
As written in my post, I checked my system for files and directories that had to do with Freecad.
I'm thus sure nothing was left in any directories as /usr/bin or /usr/share or ....
Even shutdown and rebooted the system to be sure nothing was left over in memory or strange named temporary files.
Then installed Freecad from the stable repository and I guess that should give me the latest stable version.
Thanks for the hint about the Ubuntu and the pyqt5-dev package.
I'm using Linux-Mint based on Ubuntu so I checked for the pyqt5-dev package.
It was/is installed. to be sure I reinstalled it (it also installed some pyqt3 stuff).
Problem is not solved, Freecad still complains about PyQt5 things.
Uninstalled Freecad, purged everything that could have to do with Freecad and reinstalled it.
Problem is not solved, Freecad still complains about PyQt5 things.
Then read the post in one of the links you supplied (thank for that).
There they talk about installing the full python3-pyqt5 package.
Did that and now the issue is gone.
[bug]I guess it's thus a bug[/bug]
Kind regards.
Re: PyQt5 issues
It is not a bug, it is a "strange way" Ubuntu has to manage Qt5.
I don't use Ubuntu, I use Arch Linux and AppImages, and everything is working fine, even using Devuan, I've had no problem.
Have you ever tried to use the Ubuntu-PPA as told in the FreeCAD Wiki?
Regards
Carlo D.
I don't use Ubuntu, I use Arch Linux and AppImages, and everything is working fine, even using Devuan, I've had no problem.
Have you ever tried to use the Ubuntu-PPA as told in the FreeCAD Wiki?
Regards
Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: PyQt5 issues
From the post it seems that you have used the "ubuntu" repositiories and not the "FreeCAD PPA".
https://launchpad.net/~freecad-maintain ... cad-stable
This page
https://wiki.freecadweb.org/Installing_on_Linux
is not very clear about that, as it gave simply commands, but reports the repositories location as hyperlinks.
Hope it helps
Carlo D.
https://launchpad.net/~freecad-maintain ... cad-stable
This page
https://wiki.freecadweb.org/Installing_on_Linux
is not very clear about that, as it gave simply commands, but reports the repositories location as hyperlinks.
Hope it helps
Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: PyQt5 issues
@Deffe, I'm not sure at all, but maybe your issue could be related to this https://forum.freecadweb.org/viewtopic. ... 50#p395673.
A fix is few posts later: https://forum.freecadweb.org/viewtopic. ... 60#p396652, see point 7-
Take it carefully, do not corrupt your system. Hope that will help you.
A fix is few posts later: https://forum.freecadweb.org/viewtopic. ... 60#p396652, see point 7-
Take it carefully, do not corrupt your system. Hope that will help you.
Re: PyQt5 issues
I using and used the freecad ppa.onekk wrote: ↑Wed May 05, 2021 4:25 pm From the post it seems that you have used the "ubuntu" repositiories and not the "FreeCAD PPA".
https://launchpad.net/~freecad-maintain ... cad-stable
This page
https://wiki.freecadweb.org/Installing_on_Linux
is not very clear about that, as it gave simply commands, but reports the repositories location as hyperlinks.
Hope it helps
Carlo D.
See screenshot of the graphical "Software Sources" tool
Kind regards
- Attachments
-
- Screenshot from 2021-05-07 12-57-12.png (13.95 KiB) Viewed 2116 times
Re: PyQt5 issues
Thanks Alex, I'll give it a look/tought-alex- wrote: ↑Wed May 05, 2021 4:42 pm @Deffe, I'm not sure at all, but maybe your issue could be related to this https://forum.freecadweb.org/viewtopic. ... 50#p395673.
A fix is few posts later: https://forum.freecadweb.org/viewtopic. ... 60#p396652, see point 7-
Take it carefully, do not corrupt your system. Hope that will help you.
Regards