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

Install on windows #149

Open
kyzma84 opened this issue Aug 18, 2016 · 5 comments
Open

Install on windows #149

kyzma84 opened this issue Aug 18, 2016 · 5 comments
Assignees
Milestone

Comments

@kyzma84
Copy link

kyzma84 commented Aug 18, 2016

Hi
I got this error when tried install package on windows 7 , python 3.5.

Collecting ncclient
Using cached ncclient-0.5.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users????\AppData\Local\Temp\pip-build-mpfw4qcu\ncclient\set
up.py", line 32, in
long_description = file.read()
File "C:\Users????\AppData\Local\Programs\Python\Python35\lib\encodin
gs\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 4336:
character maps to undefined

@christung16
Copy link

I have the same issue when installing ncclient in windows 10

@coreyrh
Copy link

coreyrh commented Aug 30, 2016

Same here. Both Python 2.7 and 3.5.

@christung16
Copy link

christung16 commented Aug 31, 2016

The problem is that in the file README.rst, some characters are not recognized in cp1252 encoding.

Here's the way to workaround it:

  1. download and unzip the ncclient-0.5.2.tar.gz
  2. Use MSWord to open README.rst
  3. Save as another coding. I choose windows (default). It will warn you some characters will be missing.
  4. python setup.py install <<<< to install the ncclient module

DONE!

@vnitinv vnitinv self-assigned this Aug 31, 2016
@vnitinv vnitinv added this to the 0.5.3 milestone Aug 31, 2016
@answanso
Copy link

answanso commented Dec 8, 2016

I get the following error when i try to install ncclient on ubuntu and centos:

Collecting ncclient
Using cached ncclient-0.5.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-g5js2iie/ncclient/setup.py", line 32, in
long_description = file.read()
File "/usr/local/lib/python3.4/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)

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-g5js2iie/ncclient/

I tried this with python 3.4.5 and 3.5.2. I am able to get it to work on OSX.

@cspeidel
Copy link
Contributor

cspeidel commented Jun 21, 2018

@kyzma84 @christung16 @corhoade
The file looks UTF-8 to me.
[cspeidel@test ncclient]$ file -i README.rst README.rst: text/x-python; charset=utf-8
I also double-checked with iconv and verified the UTF-8 output was the same.

Are you still having this issue with 0.3.5?

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

No branches or pull requests

6 participants