와 방랑의 텍스트 파일 바쁜 :하기 matplotlib 가져 오기OSError : [errno를 26] synced_folder
내가 pylearn2에 대한 자습서를 실행하고 그것이 matplotlib.pyplot
을 가져올 때 나는 약간의 오차가 받고 있어요에 MPLCONFIGDIR이 .matplotlib 쓸 수 없습니다. 아마도 불필요한 일부 정보는 Vagrant에서 생성 한 VirtualBox에서 실행한다는 것입니다. 내가 몇 가지 유사한 오류가 장고를 모두 언급하는 걸 봤어,하지만 난 웹 호스팅하려하지 않고, 나는 공간이 부족하다. 저는 루트로서 파이썬을 실행하려고 시도했지만, 안전하지는 않습니다.하지만 여전히 작동하지 않았습니다. 나는 또한 같은 오류와 함께 내 MPLCONFIGDIR 변수를 설정하려고했습니다. 추가 할 수있는 정보가 더 있으면 알려주십시오. 감사.
Traceback (most recent call last):
File "/home/vagrant/pylearn2/pylearn2/scripts/plot_monitor.py", line 274, in <module>
main()
File "/home/vagrant/pylearn2/pylearn2/scripts/plot_monitor.py", line 57, in main
import matplotlib.pyplot as plt
File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 774, in <module>
rcParams = rc_params()
File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 692, in rc_params
fname = matplotlib_fname()
File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 604, in matplotlib_fname
fname = os.path.join(get_configdir(), 'matplotlibrc')
File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 253, in wrapper
ret = func(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 475, in _get_configdir
raise RuntimeError("'%s' is not a writable dir; you must set %s/.matplotlib to be a writable dir. You can also set environment variable MPLCONFIGDIR to any writable directory where you want matplotlib data stored "% (h, h))
RuntimeError: '/home/vagrant' is not a writable dir; you must set /home/vagrant/.matplotlib to be a writable dir. You can also set environment variable MPLCONFIGDIR to any writable directory where you want matplotlib data stored
/집/방랑은 쓸 수 있도록 내 홈 디렉토리입니다,하지만 우려에 대한 ...
[email protected]:~$ ls -ld /home/vagrant
drwxrwxrwx 1 vagrant vagrant 16384 Sep 26 17:40 /home/vagrant
[email protected]:~$ ls -ld /home/vagrant/.matplotlib/
drwxrwxrwx 1 vagrant vagrant 4096 Sep 26 18:07 /home/vagrant/.matplotlib/
UPDATE :
가 에 의한 것으로 보인다
OSError: [Errno 26] Text file busy: '/home/vagrant/.matplotlib/tmp3ciLMo'
내 홈 폴더를 동기화 된 폴더로 마운트하는 불량배와 관련이 있습니다.
이 파일 시스템은 읽기/쓰기인가? – tacaswell
그리고 명령 행에서'touch/home/vagrant/test'는 무엇을합니까? – tacaswell
예, 모든 읽기/쓰기. touch/home/vagrant/test >> -rwxrwxrwx 1 방역 0 9 월 26 22:21/가정/방랑/시험 –