Wednesday, 5 July 2017

Vagrant - Virtual Environment : Problem while running a command in VM



Problem :  While in Lab 5: Create an RA Project , when I did Task 2 (2. make TOOLKIT_DIR=/home/vagrant/.devops-toolkit toolkit-venv), I get the following error. Earlier it worked for a particular RA( it downloaded something), I’ve tried to create another RA, I see following error. Could please give any clue why I’m getting this.   Many thanks.

vagrant@vagrant-ubuntu-trusty-64:~/shared/myradocker1$ make TOOLKIT_DIR=/home/vagrant/.devops-toolkit toolkit-venv

New python executable in /home/vagrant/shared/myradocker1/env/bin/python2.7
Also creating executable in /home/vagrant/shared/myradocker1/env/bin/python
Traceback (most recent call last):
  File "/usr/local/bin/virtualenv", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 713, in main
    symlink=options.symlink)
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 925, in create_environment
    site_packages=site_packages, clear=clear, symlink=symlink))
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1370, in install_python
    os.symlink(py_executable_base, full_pth)
OSError: [Errno 71] Protocol error
make: *** [toolkit-venv] Error 1
vagrant@vagrant-ubuntu-trusty-64:~/shared/myradocker1$


PS: Earlier I was stuck up at this level when I’m trying to create from first RA it is because Tech Mahindra network as restricted while downloading something, I switched to Open Internet , then it worked. This time, though I’m in Open Internet , still I’m getting this error.

Solution : Running vagrant command (vagrant up ; for VM) solved the problem


No comments:

Post a Comment