I try to run all my python code in virtualenvs. I added a basic requirements file for pip. I created it by running each script and then performing pip install $foo until the import errors went away. I then did a pip freeze.
nagios-cli also needed to use #!/usr/bin/env python instead of #!/usr/bin/python
I try to run all my python code in virtualenvs. I added a basic requirements file for pip. I created it by running each script and then performing
pip install $foo
until the import errors went away. I then did apip freeze
.nagios-cli also needed to use
#!/usr/bin/env python
instead of#!/usr/bin/python