Spin up vagrant and install provisioning files

Installing Vagrant for M312

  1. the notes do not specify exactly where to download these files which folder?

  2. where specifically do i have to run these commands from (a command console?):
    cd m312-vagrant-env vagrant plugin install vagrant-vbguest
    $ vagrant up

i managed to et this far:

==================
missing windows steps

mkdir m312-vagrant-env

copy the two provisioning files that yo downloaded into this directory
start a command prompt in this directory
run commands vagrant plugin install vagrant-vbguest
run commands vagrant up

now i have this error while running vagrant up :

m312: Cleaning up…
m312: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/psutil
m312: Storing debug log for failure in /root/.pip/pip.log
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

any ideas?

1 Like

May be version related issues with python

Check this link

Installing Vagrant for M312 - error

vagrant up works if i comment out this: sudo pip install psutil

however: mtools needs psutil.

tried changing the faker to 3.01 as per other instructions = getting nowhere.
check a million other links following paper trails of other students with the same issues.

I dont know what i am doing, i just want to start the course.

can you update the install scripts to work please and send me a link of where i can obtain the update setup scripts to start this course. thank you.

FYI error :slight_smile: m312: Downloading/unpacking psutil
m312: Running setup.py (path:/tmp/pip_build_root/psutil/setup.py) egg_info for package psutil
m312: /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘python_requires’
m312: warnings.warn(msg)
m312: error in psutil setup command: ‘extras_require’ must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
m312: Complete output from command python setup.py egg_info:
m312: /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘python_requires’
m312:
m312: warnings.warn(msg)
m312:
m312: error in psutil setup command: ‘extras_require’ must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.

== SOLVED ==

updating this function in file provision-m312 solved my issue

inidcated by ‘===>’:

function install_python_dependencies(){
sudo apt-get install -y python-dev --upgrade
sudo apt-get install -y python-pip --upgrade
===> sudo apt-get install python-setuptools
sudo pip install pymongo --upgrade
sudo pip install docopt --upgrade
sudo pip install faker==3.0.1
===> sudo apt-get install python-psutil
sudo pip install mtools==1.5.3
}

run successfully:
vagrant@m312:~$ mlaunch init --replicaset --name m312RS --wiredTigerCacheSizeGB 0.3 --hostname localhost --port 30000
launching: “mongod” on port 30000
launching: “mongod” on port 30001
launching: “mongod” on port 30002
replica set ‘m312RS’ initialized.

4 Likes

For me this was the second part of the solution. The first part was to uninstall VirtualBox 6.1 and install Virtualbox 6.0.14.

my psutil failed so I ran the sudo apt-get install python-psutil above which had failed before… then I figurethe mtools 1.5.3 was important because it still supported python 2.7 which was what i have standard on my old Mac… which cant be upgraded past High Sierra because of hardware compatibility.

1 Like