Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependencies on py23_compat, so it works with Python 3.6 #4

Open
miguelhernandez-work opened this issue Jun 9, 2020 · 3 comments

Comments

@miguelhernandez-work
Copy link

Hi,
I attempted to use this library with Python 3.6.8 and its breaking on

ImportError: cannot import name py23_compat

My use-case is to use this with netbox.
Can we please have a version that doesn't require py23_compat?
Thanks in advance.

@skoef
Copy link
Collaborator

skoef commented Jun 9, 2020

Has napalm dropped python 2 support itself? If so, the easiest fix would be to comply and drop python 2(.3) support.

I'm no python dependency expert, but perhaps if py23_compat was part of the requirements.txt file, it would automatically be installed alongside this plugin?

@miguelhernandez-work
Copy link
Author

miguelhernandez-work commented Jun 9, 2020

I was testing with this with my Dell S4048-ON switches (FTOS / Dell OS v9.x) and had to specify napalam==2.5 in my local_requirements.txt to get it to work with the raw API command, however that then possibly caused issues with netbox not rendering the lldp results within the GUI.

I tested adding py23_compat to the requirements file and it spit out error msg:
Could not find a version that satisfies the requirement py23_compat
I guess this is because napalm, as of version 3.0 (as of May this year), supports Python 3.6+ only.

@baccenfutter
Copy link

@skoef is a fix in the pipeline?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants