In Devnet express for DNA -> Pre-Event Preparation -> page 2 -> Windows -> "Install the ncclient package into the virtual environment"
It shows duplication "pip install requests" on Window 10 when doing "pip install ncclient"
Seems like a known error:
https://github.com/ncclient/ncclient/issues/149
This has something to do with your machine's locale. Can you try setting your machine's locale to US English and see if it installs.
Or Can you try the setup.py . This should be done after downloading the ncclient 0.5.2 and then use "python setup.py install" to install. Seems like a unicode/Windows issue.
Note: You need to extract ncclient-0.5.2.tar.gz and replace the setup.py file within the resulting directory with the one provided. Then run "python setup.py install" from within that directory.
Found that the root cause is some characters not recognized in utf-8 in the README.rst. When saved the file into windows default encoding, it can get thru the problem. However, facing another issue that tells you need libxml2 and libxslt to get lxml installed and then get ncclient install…
Pip will auto-install the missing packages. So if you could use pip, you should get everything you need. You can use "pip install \path\to\ncclient-0.5.2". That should pull down the requirements, too.
You need to download the lxml whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
Then ncclient can be installed properly now.
These are important steps to get ncclient installed in windows..
Error after "python setup.py install" for ncclient
===============================================
Installed c:\users\yitung\mycode\lib\site-packages\ncclient-0.5.2-py3.5.egg
Processing dependencies for ncclient==0.5.2
Searching for lxml>=3.3.0
Reading https://pypi.python.org/simple/lxml/
Best match: lxml 3.6.4
Processing lxml-3.6.4.tar.gz
Writing C:\Users\yitung\AppData\Local\Temp\easy_install-vclklmy1\lxml-3.6.4\setup.cfg
Running lxml-3.6.4\setup.py -q bdist_egg --dist-dir C:\Users\yitung\AppData\Local\Temp\easy_install-vclklmy1\lxml-3.6.4\egg-dist-tmp-f3jxm1sb
Building lxml version 3.6.4.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
cl : Command line warning D9025 : overriding '/W3' with '/w'
lxml.etree.c
src\lxml\includes\etree_defs.h(14): fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory
Compile failed: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
xmlXPathInitqmc41pi7.c
C:\Users\yitung\AppData\Local\Temp\easy_install-vclklmy1\lxml-3.6.4\temp\xmlXPathInitqmc41pi7.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
For Mac users lxml needs to be compiled, and that happens on the Mac. And the steps for Mac usually involve using homebrew and installing libxslt and libxml2.
Comments
0 comments
Please sign in to leave a comment.