Giter Club home page Giter Club logo

Comments (8)

dbarrosop avatar dbarrosop commented on June 26, 2024 1

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.

dbarrosop avatar dbarrosop commented on June 26, 2024

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.

dbarrosop avatar dbarrosop commented on June 26, 2024

@ktbyers Could you check if you have the same issue with napalm 0.50, please?

Thanks!

from napalm.

ktbyers avatar ktbyers commented on June 26, 2024

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.

dbarrosop avatar dbarrosop commented on June 26, 2024

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.

smnmtzgr avatar smnmtzgr commented on June 26, 2024

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.

dbarrosop avatar dbarrosop commented on June 26, 2024

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.

smnmtzgr avatar smnmtzgr commented on June 26, 2024

like we discussed in the slack channel -> this worked fine. Thanks for your help!

from napalm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.