2013-09-26 29 views
0

原标题:MPLCONFIGDIR .matplotlib不matplotlib进口OSERROR:[错误26]在颠沛流离的文本文件忙与synced_folder

我竞选pylearn2教程,我得到了一些错误,当它导入matplotlib.pyplot写。一些可能不必要的信息是我在Vagrant生成的VirtualBox中运行它。我已经看到了几个类似的错误,都指的是Django,但我没有尝试虚拟主机,也没有空间。我尝试以root身份运行python,因为它不安全,但它仍然无法工作。我也试着用相同的错误设置我的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' 

我怀疑有s与流浪汉安装我的家庭文件夹作为同步文件夹的东西

+0

是文件系统的读/写? – tacaswell

+0

和命令行中的“touch/home/vagrant/test”是做什么的? – tacaswell

+0

是,所有读/写。 touch/home/vagrant/test >> -rwxrwxrwx 1 vagrant vagrant 0 Sep 26 22:21/home/vagrant/test –

回答

相关问题