Code Monkey home page Code Monkey logo

Comments (11)

vnitinv avatar vnitinv commented on July 20, 2024

Hi @blindpet this issue was due to recent changes in PyEZ (version 1.2.2). It has been fixed and is in github but not in pypi.Will be releasing it in few days. You can install updated code (1.2.3.dev) from github using
pip install git+https://github.com/Juniper/py-junos-eznc.git

from ansible-junos-stdlib.

blindpet avatar blindpet commented on July 20, 2024

We were using PyEZ 1.2.3.dev0 originally and the same error was thrown :(. We only downgraded to 1.2.2 to see if it fixed the error which it didn't. We installed the Junos role with ansible-galaxy and installed the junos-stdlib using the pip git+ method.

from ansible-junos-stdlib.

blindpet avatar blindpet commented on July 20, 2024

How long ago were updates the stdlib made? We installed using git 4 days ago or so.

from ansible-junos-stdlib.

vnitinv avatar vnitinv commented on July 20, 2024

3 days ago I merged the changes.
"PyEZ 1.2.3.dev0 originally and the same error was thrown" Can you test it once again and share the exception message. also the output for
from jnpr.junos import version
print version.VERSION

from ansible-junos-stdlib.

blindpet avatar blindpet commented on July 20, 2024

We checked the version with pip show junos-eznc and it showed 1.2.3 and then we downgraded to 1.2.2

We installed the std-lib with ansible galaxy which is showing version below, does the Junos role need to be upgraded as well? Should we install the Junos role with ansible-galaxy or using pip install git+https://github.com/Juniper/ansible-junos-stdlib?

htpcguides@htpcguides-Portable-PC:~/ansible$ sudo ansible-galaxy install Juniper.junos
- downloading role 'junos', owned by Juniper
- downloading role from https://github.com/Juniper/ansible-junos-stdlib/archive/1.2.0.tar.gz
- extracting Juniper.junos to /etc/ansible/roles/Juniper.junos
- error: the specified role Juniper.junos appears to already exist. Use --force to replace it.
- Juniper.junos was NOT installed successfully.
- you can use --ignore-errors to skip failed roles.

from ansible-junos-stdlib.

vnitinv avatar vnitinv commented on July 20, 2024

"does the Junos role need to be upgraded as well?" No we need not to.

from ansible-junos-stdlib.

vnitinv avatar vnitinv commented on July 20, 2024

@blindpet I doubt with 1.2.3.dev would give this error. Can you install it from github and share the error message (as done in first post)

from ansible-junos-stdlib.

blindpet avatar blindpet commented on July 20, 2024

Looks like we were just unlucky in the dev cycle :)

Managed to test with virtual machine at home. After running these commands I can upgrade the VM's OS using ansible. Thanks.

pip install git+https://github.com/Juniper/ansible-junos-stdlib.git
pip install git+https://github.com/Juniper/py-junos-eznc.git

from ansible-junos-stdlib.

dharpatel avatar dharpatel commented on July 20, 2024

I do have same error. I am using PyEZ version 1.2.2. shod I try version 1.2.3 to solve my error?
Is there any other way to solve this error?

from ansible-junos-stdlib.

blindpet avatar blindpet commented on July 20, 2024

I posted the fix above @dharpatel (the two pip install commands)

from ansible-junos-stdlib.

dharpatel avatar dharpatel commented on July 20, 2024

1.2.3 worked for me.
Thanks

from ansible-junos-stdlib.

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.