ONTAP Discussions

Ansible for Netapp on windows 10 Intel 64bit

raj_shrivastava11
7,935 Views

Hi Guys, 

I have installed Ansible via Cygwin on My Windows 10 laptop which is Intel based 64-bit.

 

I can see all Netapp modules but when i try to install Netapp-lib it fails at Building wheel for lxml (setup.py) ... error.

 

I have found pre-package lxml but i dont see any package for intel-64bit. I can see for 32bit and amd64bit and when i try to install any of these 2 it says platform not compatible which is obvious.

 

Any way to get it installed on Intel based 64-bit?

 

BR

Raj

1 ACCEPTED SOLUTION

moep
7,836 Views

The error message is pretty obvious. Install the cygwin packages for libxml2 and libxlst.

View solution in original post

7 REPLIES 7

moep
7,904 Views

Both 32bit and amd64bit should work. Intel and AMD use the same x86 64bit extension. AMD invented it, thats why it is often referenced as amd64.

raj_shrivastava11
7,900 Views

Thanks. I have attached an error msg which i get while installing Netapp-Lib. Tried with both 32 and 64 bit installation of lxml seperately also but nothing works.

 

$ pip3.7 install lxml-4.5.0-cp37-cp37m-win32.whl
ERROR: lxml-4.5.0-cp37-cp37m-win32.whl is not a supported wheel on this platform.

 

$ pip3.7 install lxml-4.5.0-cp37-cp37m-win_amd64.whl
ERROR: lxml-4.5.0-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.

 

 

 

moep
7,897 Views

I don't know much about cygwin. What about the lxml module provided by them? https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fpython3-lxml%2Fpython3-lxml-3.4.4-1&grep=lxml

raj_shrivastava11
7,885 Views

When i try to install lxml it seems it has 4.5 package already but fails during build as shown in error.

 

$ pip3.7 install lxml
Collecting lxml
Using cached lxml-4.5.0.tar.gz (4.5 MB)
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jbdg0hvy/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jbdg0hvy/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-xx5k3qhe
cwd: /tmp/pip-install-jbdg0hvy/lxml/
Complete output (95 lines):
Building lxml version 4.5.0.
Building without Cython.
ERROR: b'/bin/sh: xslt-config: command not found\n'
** make sure the development packages of libxml2 and libxslt are installed **

paul_stejskal
7,880 Views

Does cygwin have development packages of those? If not then it may be a no-go feature.

moep
7,837 Views

The error message is pretty obvious. Install the cygwin packages for libxml2 and libxlst.

raj_shrivastava11
7,814 Views

Thanks for help. I could able to install the packages by re-running the cygwin setup. I am able to install Netapp-Lib and run my ansible playbooks now.

 

Thanks a lot.

Public