-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Hi, i have obtained the latest FreeCAD AppImage package via the official download link for Linux 64bit arch:
FreeCAD-13522.glibc2.17-x86_64.AppImage
By the way, i'm using Debian 9 "Stretch". After running FreeCAD, i tried to install the Animation workbench as usual. Yet, in the Report view panel it displayed the following error messages regarding the matplotlib import process:
/var/tmp/.mount_FreeCAd26llA/usr/lib/python2.7/dist-packages/matplotlib/__init__.py:764: UserWarning: Could not find matplotlibrc; using defaults warnings.warn('Could not find matplotlibrc; using defaults') /var/tmp/.mount_FreeCAd26llA/usr/lib/python2.7/dist-packages/matplotlib/__init__.py:880: UserWarning: could not find rc file; returning defaults warnings.warn(message)
After locating the Python module at "/var/tmp/.mount_FreeCA***/usr/lib/python2.7/dist-packages/matplotlib/init.py", i realized it was looking for the "matplotlibrc" configuration file in the following places on Linux:
- $HOME/.matplotlib/matplotlibrc`, if it exists
-
or
$XDG_CONFIG_HOME/matplotlib/matplotlibrc(if $XDG_CONFIG_HOME is defined) -
or
$HOME/.config/matplotlib/matplotlibrc(if $XDG_CONFIG_HOME is not defined)`
I found the matplotlib directory at "$HOME/.config/matplotlib", but the matplotlibrc file was missing. After fetching the "matplotlibrc" file from matplotlibrc the error messages disappeared and the Animation workbench is activated successfully.
Still, i'm not entirely sure if this is an issue on my end due to unset environment variables. But it might take some time for the Animation workbench users to figure out what's missing. Anyway, animation workbench users facing the same problem can run the following commands in the terminal as a workaround:
cd $HOME/.config/matplotlib; curl -o matplotlibrc https://matplotlib.org/1.5.1/_static/matplotlibrc
Thanks for creating this useful workbench :)