Skip to content

Instantly share code, notes, and snippets.

@Mierdin
Last active January 5, 2017 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mierdin/cb7e3667711cbe6414cc87b8d2dbc90c to your computer and use it in GitHub Desktop.
Save Mierdin/cb7e3667711cbe6414cc87b8d2dbc90c to your computer and use it in GitHub Desktop.
(virtualenv)vagrant@st2dev:~/st2$ ./st2common/bin/st2-run-pack-tests -p /opt/stackstorm/packs/napalm
Running tests for pack: napalm
Creating virtualenv in /tmp/st2-pack-tests-virtualenvs/napalm...
Using real prefix '/usr'
Overwriting /tmp/st2-pack-tests-virtualenvs/napalm/lib/python2.7/site.py with new content
New python executable in /tmp/st2-pack-tests-virtualenvs/napalm/bin/python
Installing setuptools, pip, wheel...done.
Overwriting /tmp/st2-pack-tests-virtualenvs/napalm/bin/activate with new content
Overwriting /tmp/st2-pack-tests-virtualenvs/napalm/bin/activate.fish with new content
Overwriting /tmp/st2-pack-tests-virtualenvs/napalm/bin/activate_this.py with new content
Overwriting /tmp/st2-pack-tests-virtualenvs/napalm/bin/activate.csh with new content
Requirement already up-to-date: pip in /tmp/st2-pack-tests-virtualenvs/napalm/lib/python2.7/site-packages
Installing global pack test dependencies...
Installing pack-specific dependencies...
Installing pack-specific test dependencies...
Running tests...
Failure: ImportError (No module named napalm) ... ERROR
======================================================================
ERROR: Failure: ImportError (No module named napalm)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/st2/virtualenv/local/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/home/vagrant/st2/virtualenv/local/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/vagrant/st2/virtualenv/local/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/opt/stackstorm/packs/napalm/tests/napalm_action_test.py", line 22, in <module>
from napalm_loadconfig import NapalmLoadConfig
File "/opt/stackstorm/packs/napalm/actions/napalm_loadconfig.py", line 1, in <module>
from napalm import get_network_driver
ImportError: No module named napalm
-------------------- >> begin captured logging << --------------------
oslo_config.cfg: DEBUG: Expected default value of type(s) list but got '' of type str
oslo_config.cfg: DEBUG: Expected default value of type(s) list but got '' of type str
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 1 test in 0.320s
FAILED (errors=1)
(virtualenv)vagrant@st2dev:~/st2$ cat /opt/stackstorm/packs/napalm/requirements.txt
napalm-base
napalm-eos
napalm-fortios
napalm-ibm
napalm-ios
napalm-iosxr
napalm-junos
napalm-nxos
napalm-pluribus
napalm-panos
napalm
(virtualenv)vagrant@st2dev:~/st2$ pip freeze | grep napalm
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(virtualenv)vagrant@st2dev:~/st2$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment