microelly2 / Animation

Animation Workbench for FreeCAD
GNU General Public License v2.0
33 stars 17 forks source link

backend.qt4 is not a valid rc parameter (see rcParams.keys() for a list of valid parameters)'" occurred in /home/xx/.FreeCAD/Mod/Animation/InitGui.py #36

Closed snelweg closed 5 years ago

snelweg commented 5 years ago

During initialization the error "'backend.qt4 is not a valid rc parameter (see rcParams.keys() for a list of valid parameters)'" occurred in /home/ton/.FreeCAD/Mod/Animation/InitGui.py Please look into the log file for further information Traceback (most recent call last): File "", line 20, in File "", line 15, in init File "", line 7, in init File "/tmp/.mount_FreeCAPXhj6V/usr/Mod/Start/StartPage/StartPage.py", line 302, in handle with open(qssfile, 'r') as f: <class 'FileNotFoundError'>: [Errno 2] No such file or directory: '/tmp/.mount_FreeCAQQJwQP/usr/share/Gui/Stylesheets/Light-orange.qss' [Errno 2] No such file or directory: '/tmp/.mount_FreeCAQQJwQP/usr/share/Gui/Stylesheets/Light-orange.qss'

OS: Debian GNU/Linux 10 (buster) (XFCE/lightdm-xsession) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.18614 (Git) AppImage Build type: Release Branch: master Hash: efd55884ad7d40e77571a60c5bb906bbd8d1cbbd Python version: 3.7.3 Qt version: 5.12.5 Coin version: 4.0.0a OCC version: 7.3.0 Locale: English/United States (en_US)

ghost commented 5 years ago

had the same isuue. Solution see my comment here: https://github.com/microelly2/Animation/issues/35

snelweg commented 5 years ago

ok, thank you. It worked.

(I copied the solution here for others to reference)

i had the same issue on Archlinux, error message: During initialization the error 'backend.qt4 is not a valid rc parameter (see rcParams.keys() for a list of valid parameters)' occurred in /home/andreas/.FreeCAD/Mod/animation/InitGui.py Please look into the log file for further information Following https://scipy-cookbook.readthedocs.io/items/Matplotlib_PySide.html i commented out line 30 in Animation.py:

matplotlib.rcParams['backend.qt4']='PySide'

and animation workbench is shown and can be used now.