-
Notifications
You must be signed in to change notification settings - Fork 344
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
utils.sw.install gives int() argument must be a string, a bytes-like object or a number, not 'NoneType' #1184
Comments
related error Python code: Error below for version 2.6.4: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Hi, Please try with option dev.timeout . from jnpr.junos import Device dev = Device(host='xx.xx.xx.xx', user='xyz', password='xyz', gather_facts=False) Thanks & Regards |
Yes setting device.timeout solved the issue. Thanks |
I got the same issue and I had to pass the It seems to me that the culprit, at least in my case, is this commit 84fe8c6 because it uses self._conn_open_timeout = kvargs.get('conn_open_timeout', None) that is later used as a value for the timeout=self._conn_open_timeout, |
* In the latest version of the upstream JunOS Python library py-junos-eznc there is a regression that requires to always set the 'conn_open_timeout' parameter when creating a new Device instance to prevent to get an error of the type: could not convert timeout value of None to an integer * See Juniper/py-junos-eznc#1184 Change-Id: I561181b8b292465b1c9e50fb311bf9ae0af37be2
Issue fixed via commit #1192 |
Thanks @chidanandpujar . I was also getting it from junos salt-proxy when trying to apply a Salt state. |
To include this fix: Juniper/py-junos-eznc#1184 Change-Id: I36709a4fc049db8c43404f5edeca5a7def6807ba
I am trying to upgrade the EX2300 with 48 POE+ switch using below code. I don't set any time out parameters in install function. Everything is using the default value.
I get this exception
The text was updated successfully, but these errors were encountered: