Comments (7)
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.
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.
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.
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.
@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.
@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.
I don't think we are going to fix this...so I am going to close this issue.
from napalm-ansible.
Related Issues (20)
- Can the action_plugin be made to understand ansible_port properly
- New release HOT 4
- Distribute napalm-ansible as a collection HOT 5
- ios.commit_config() error HOT 3
- conform diff format with ansible format
- napalm-ansible ignoring ProxyCommand HOT 2
- Ansible 2.10 breaks build
- napalm-ping was unreliable when testing it for IOS (does default delay_factor need increased)
- Create a napalm rollback module
- Create a commit + confirm module HOT 11
- Convert the tests over to GitHub Actions
- Review documentation and make sure it is updated properly for using the new napalm collection
- Remove old setup.py and other old non-collection code from this repository
- napalm Collection on AWX 19.0.0 HOT 9
- npalm_install_merge.yml does not revert all changes HOT 1
- napalm collection with ansible_network_os fully-qualified HOT 1
- Netmiko4 read_timeout default is too short for IOS commit_conifg operation HOT 29
- napalm_ping: Add source_interface argument
- napalm module : Error: "'ascii' codec can't encode characters in position 5396-5398: ordinal not in range(128)"} HOT 14
- napalm module : Error: "'ascii' codec can't encode characters in position 5396-5398: ordinal not in range(128)"}
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-ansible.