Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
Bug report
Bug summary
When running a python script containing matplotlib module on a remote server machine, got the following errors:
import matplotlib.pyplot as plt
File "path_to_env/lib/python2.7/site-packages/matplotlib/pyplot.py", line 29, in
import matplotlib.colorbar
File "path_to_env/lib/python2.7/site-packages/matplotlib/colorbar.py", line 36, in
import matplotlib.contour as contour
File "path_to_env/lib/python2.7/site-packages/matplotlib/contour.py", line 21, in
import matplotlib.font_manager as font_manager
File "path_to_env/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1454, in
_rebuild()
File "path_to_env/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1438, in _rebuild
json_dump(fontManager, _fmcache)
File "path_to_env/lib/python2.7/site-packages/matplotlib/font_manager.py", line 966, in json_dump
json.dump(data, fh, cls=JSONEncoder, indent=2)
File "path_to_env/lib/python2.7/json/init.py", line 190, in dump
fp.write(chunk)
IOError: [Errno 122] Disk quota exceeded
Code for reproduction
python run.py
Actual outcome
as above.
I need to clarify this only crashes when running it on a remote machine. If i tried to run it locally, it worked just fine. The remote machine should be using the same env as my local because I used SGE command 'qsub -V
' which would pass all my local environment variables to the remote machine. Also, I checked that I have enough space under /home/ and others on that remote machine.
Expected outcome
quietly load in or rebuild needed fonts.
Matplotlib version
matplotlib==2.1.0
- Operating system: Linux 2.6.32-642.6.2.el6.x86_64
- Matplotlib version: 2.1.0
- Matplotlib backend (
print(matplotlib.get_backend())
): TkAgg - Python version: 2.7.14
- Jupyter version (if applicable):
- Other libraries:
pip install matplotlib