Comments (8)
That issue is due to the way napalm was installed. If you want to install it manually do:
git clone [email protected]:napalm-automation/napalm.git
cd napalm
python setup.py sdist
pip install dist/napalm-$version.tar.gz
Replace $version with the version you are trying to install.
from napalm.
Hello Kirk,
thanks for reporting this issue. Looks like some namespace issue that triggers under some weird circumstances. I will try to fix it this week.
Thanks!
David
from napalm.
@ktbyers Could you check if you have the same issue with napalm 0.50, please?
Thanks!
from napalm.
I still get this error (clean install of napalm using 'python setup.py install')
$ python Python 2.7.10 (default, Dec 8 2015, 18:25:23) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from napalm import get_network_driver Traceback (most recent call last): File "", line 1, in File "/home/kbyers/venv/napalm_test/local/lib/python2.7/site-packages/napalm-0.50-py2.7.egg/napalm/__init__.py", line 17, in from junos import JunOSDriver File "/home/kbyers/venv/napalm_test/local/lib/python2.7/site-packages/napalm-0.50-py2.7.egg/napalm/junos.py", line 17, in from napalm.utils import junos_views File "/home/kbyers/venv/napalm_test/local/lib/python2.7/site-packages/napalm-0.50-py2.7.egg/napalm/utils/junos_views.py", line 7, in globals().update(loadyaml(_YAML_)) File "/home/kbyers/venv/napalm_test/local/lib/python2.7/site-packages/jnpr/junos/factory/__init__.py", line 33, in loadyaml return FactoryLoader().load(yaml.load(open(path, 'r'))) IOError: [Errno 2] No such file or directory: '/home/kbyers/venv/napalm_test/local/lib/python2.7/site-packages/napalm-0.50-py2.7.egg/napalm/utils/junos_views.yml'
This is using the napalm 0.50 code release.
from napalm.
Found the issue, while moving files around to fix the namespace issue I forgot to update the Manifest.in... Should be fixed now. Try with the version 0.50.1 and let me know if it works now, please.
Thanks!
from napalm.
Same problem for me at 0.51.0
from napalm import get_network_driver
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/napalm-0.51.0-py2.7.egg/napalm/init.py", line 17, in
File "/usr/lib/python2.7/site-packages/napalm-0.51.0-py2.7.egg/napalm/junos.py", line 17, in
File "/usr/lib/python2.7/site-packages/napalm-0.51.0-py2.7.egg/napalm/utils/junos_views.py", line 7, in
File "/usr/lib/python2.7/site-packages/junos_eznc-1.3.1-py2.7.egg/jnpr/junos/factory/init.py", line 33, in loadyaml
IOError: [Errno 20] Not a directory: '/usr/lib/python2.7/site-packages/napalm-0.51.0-py2.7.egg/napalm/utils/junos_views.yml'
from napalm.
Could you try doing the following and pasting the output?
cd /usr/lib/python2.7/site-packages/napalm-0.51.0-py2.7.egg/
find
On Tue 9 Feb 2016 at 08:26 Simon [email protected] wrote:
Same problem for me at 0.51.0
from napalm import get_network_driver
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/napalm-0.51.0-py2.7.egg/napalm/
init.py", line 17, in
File
"/usr/lib/python2.7/site-packages/napalm-0.51.0-py2.7.egg/napalm/junos.py",
line 17, in
File
"/usr/lib/python2.7/site-packages/napalm-0.51.0-py2.7.egg/napalm/utils/junos_views.py",
line 7, in
File
"/usr/lib/python2.7/site-packages/junos_eznc-1.3.1-py2.7.egg/jnpr/junos/factory/
init.py", line 33, in loadyaml
IOError: [Errno 20] Not a directory:
'/usr/lib/python2.7/site-packages/napalm-0.51.0-py2.7.egg/napalm/utils/junos_views.yml'—
Reply to this email directly or view it on GitHub
#114 (comment)
.
from napalm.
like we discussed in the slack channel -> this worked fine. Thanks for your help!
from napalm.
Related Issues (20)
- napalm cli does not parse the transport optional arg HOT 2
- nxos_ssh get_environment fails to parse temperature info
- NAPALM get_firewall_policies support
- optional_args doesn't have "huge_tree" as an available parameter for JunOS HOT 2
- Security Concern: Remove telnetlib for Improved Security HOT 1
- NAPALM fails to install on python 3.12 HOT 4
- IOS: discard_config() fails at large catalyst-stack HOT 9
- Cisco - configure replace fails on exit-af-interface command HOT 3
- junos: get_interfaces returns list instead of bool for an svi that is admin down HOT 2
- Proposed New Getter: `get_lag_interfaces` HOT 2
- typo in model name
- Napalm validate inside list search for patterns instead of fullmatch HOT 2
- Illegal Instruction Error Debian 12 HOT 3
- Documentation is outdated due to a build error HOT 6
- get_vlans for ios not removing whitespace with no interfaces HOT 1
- NAPALM readthedocs builds are failing for some set of builds
- New deprecation warning in tests HOT 1
- Deprecation warning: telnetlib HOT 1
- The h3c driver open method takes too long to execute HOT 1
- Inconsistent key formatting for functions utilizing 'parse_intf_section'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from napalm.