(config.py): no verify ssl doesnt parse with python<3.9 #275
Labels
No labels
help wanted
need testing
status: accepted
status: discussing
type: bug
type: documentation
type: duplicate
type: enhancement
type:hardware
type: invalid
type: major feature
type: minor feature
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/netbox-agent#275
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
19a158ec82/netbox_agent/config.py (L40)
please see the following stackoverflow link for an explanation:
https://stackoverflow.com/a/15008806
for the use:create a clean python env with python>3.9
use that pip, to install pynetbox packaging jsonargparse slugify netifaces netaddr
for the devs: maybe adapt the lines or bump version requirement
parser.add_argument('--no-feature', dest='feature', action='store_false') parser.set_defaults(feature=True)
I have recently been experimenting (quite a bit) with different python version environments (primarily using conda envs for python then pip) on centos 6-7.9 and ubuntu 14.04+ with 0.7.2
on ubuntu 14.04 my finding are that,
#272 happened with python version 3.4 (perhaps packages where installed with python 3.4, but now python 3.10 is using them?)
and then with python=3.5 i found that jsonargparse couldnt parse the ssl verify disablement configuration. So I had to install python=3.9 in the conda env, and then install with the newly installed pip, pynetbox packaging jsonargparse slugify netifaces netaddr
From what I remember experimenting with centos 6+7, python 3.4 and 3.5 were also causing issues, probably because pip would install more recent versions of deps
more detail, look like the latest versions of jsonargparse expect a type=bool which would conflict with the default action, all in that same line
19a158ec82/netbox_agent/config.py (L40C33-L40C33)
I'm gonna go with an upgrade of jsonargparse in v4 and fix this argument, it will be backward incompatible as I think we'll move to
netbox.no_ssl_verify
to disable this.