Change ncclient dependency from 0.5.2 to 0.5.3 #860

Closed
opened 2025-12-29 16:26:24 +01:00 by adam · 0 comments
Owner

Originally created by @candlerb on GitHub (Apr 13, 2017).

Building the current develop branch under ubuntu 16.04 with stock python3

Installing dependencies fails here:

# git clone -b develop https://github.com/digitalocean/netbox.git .
...
# pip3 install -r requirements.txt
...
Collecting ncclient==0.5.2 (from -r requirements.txt (line 13))
  Downloading ncclient-0.5.2.tar.gz (61kB)
    100% |################################| 71kB 10.2MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-krvixqb5/ncclient/setup.py", line 32, in <module>
        long_description = file.read()
      File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 4335: ordinal not in range(128)

However if I change the requirements to 0.5.3 it loads OK.

It appears this problem was fixed between v0.5.2 and v0.5.3.

So I think you should just be able to point to 0.5.3 in requirements.txt, as long as this doesn't break anything else.

Originally created by @candlerb on GitHub (Apr 13, 2017). Building the current develop branch under ubuntu 16.04 with stock python3 Installing dependencies fails here: ~~~ # git clone -b develop https://github.com/digitalocean/netbox.git . ... # pip3 install -r requirements.txt ... Collecting ncclient==0.5.2 (from -r requirements.txt (line 13)) Downloading ncclient-0.5.2.tar.gz (61kB) 100% |################################| 71kB 10.2MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-krvixqb5/ncclient/setup.py", line 32, in <module> long_description = file.read() File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 4335: ordinal not in range(128) ~~~ However if I change the requirements to 0.5.3 it loads OK. It appears this problem was [fixed](https://github.com/ncclient/ncclient/commit/e80a21e9f3e228eda547150410f5333ade1e58af) between v0.5.2 and v0.5.3. So I think you should just be able to point to 0.5.3 in requirements.txt, as long as this doesn't break anything else.
adam added the type: bug label 2025-12-29 16:26:24 +01:00
adam closed this issue 2025-12-29 16:26:24 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#860