virtualenv: OSError: [Errno 30] Read-only file system
I’ve started getting a strange error when trying to create new environments:
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 9, in <module>
load_entry_point('virtualenv==1.7', 'console_scripts', 'virtualenv')()
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 928, in main
never_download=options.never_download)
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1029, in create_environment
site_packages=site_packages, clear=clear))
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1145, in install_python
fix_local_scheme(home_dir)
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1430, in fix_local_scheme
os.symlink(os.path.abspath(home_dir), local_path)
OSError: [Errno 30] Read-only file system
I don’t seem to have trouble creating symlinks under any other circumstances.
I’m running Ubuntu 11.04 through Virtualbox - I’ve tried destroying and rebuilding the box from scratch (using an unchanged puppet manifest), but the same error persists.
About this issue
- Original URL
- State: closed
- Created 13 years ago
- Comments: 27
upgrade virtualenv to the latest version(1.11.6), and use it as
the options will not use hard link but copy the files
This can be solved on virtualbox when the issues are created by shared folders by running:
This won’t store your environment in your folder, but best practice is to use requirements.txt and tell your VCS to ignore your environment tree
OSError: [Errno 30] Read-only file system
if you have using shared drive inside vm and trying to execute tox inside that directory it will throw this error. Simple solution is copy that source code inside some directory in vm, lets say inside your home directory /home/sunil/projectName/ . and execute tox command inside this directory.
In my case it was
setup.cfgwith emptyprefix=that was causing this mess.I’m not using Virtual Box and I’m facing this issue. I don’t know why in a specific folder it doesn’t work. I did chmod and chown but It just don’t work.
I ran into the same issue. Using VBoxManage setextradata as proposed in https://www.virtualbox.org/ticket/10085 worked for me. But this is another little thing that makes the process of running a virtual local dev server unnecessary cumbersome 😃