Code Monkey home page Code Monkey logo

Comments (7)

 avatar commented on August 27, 2024 1

I see my problem.
ansible.cfg pointing to the git clone itself. I never installed.
It's been so long, I thought I installed via pip along with napalm.

I should read the README files, and quit wasting other people's time.

from napalm-ansible.

dbarrosop avatar dbarrosop commented on August 27, 2024

Ok, I think it makes sense to take this into account. My immediate reaction would be to use a git submodule but that has the problem that managing versions requires an extra step but it would allow us to support installing via pip and via "clones".

Any alternative ideas?

from napalm-ansible.

ktbyers avatar ktbyers commented on August 27, 2024

So if we remove the ./library symbolic link wouldn't that fix the issue?

Then people that did git clone would have to set the module path to here:

/path/to/napalm-ansible/napalm_ansible

And there is no setup.py nor setup.cfg there.

from napalm-ansible.

 avatar commented on August 27, 2024

I configure library in ansible.cfg to point to napalm-ansible. This is not in my path.

Got burned with this trying to gather facts on linux box. Removing library config resolved my issue.

Ansible latches on to the closest setup.* it can find. In my case it was the napalm setup.cfg

Can you rename setup.cfg and setup.py in napalm-ansible?

from napalm-ansible.

ktbyers avatar ktbyers commented on August 27, 2024

@bowersjj No, we can't really rename them as those are standard Python files for package creation and package management.

There might be some complex way we can essentially have two packages.

Why not point ansible library in .ansible.cfg to?

/path/to/napalm-ansible/napalm_ansible

from napalm-ansible.

ktbyers avatar ktbyers commented on August 27, 2024

@bowersjj No worries.

It is an annoying issue...unfortunately, it is a choice of not very good options for what to do about it.

Yes, my .ansible.cfg looks like this:

$ cat .ansible.cfg 
[defaults]
hostfile = ~/ansible-hosts
library = ~/napalm-ansible/library:~/ansible-extras/ntc-ansible/library

from napalm-ansible.

ktbyers avatar ktbyers commented on August 27, 2024

I don't think we are going to fix this...so I am going to close this issue.

from napalm-ansible.

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.