08-01-2018 09:14 AM
Hi All,
I'm trying to implement a python application with docker in IE 4000 but when i run the command "pip install" to install a library in the iox-app its return this error:
/ # pip install pymodbus
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.3.1', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/pkg_resources.py", line 2311, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/pkg_resources.py", line 2017, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/pip/__init__.py", line 9, in <module>
from pip.log import logger
File "/usr/lib/python2.7/site-packages/pip/log.py", line 7, in <module>
from pip import backwardcompat
File "/usr/lib/python2.7/site-packages/pip/backwardcompat/__init__.py", line 67, in <module>
from urllib2 import URLError, HTTPError
File "/usr/lib/python2.7/urllib2.py", line 94, in <module>
File "/usr/lib/python2.7/httplib.py", line 79, in <module>
File "/usr/lib/python2.7/mimetools.py", line 6, in <module>
File "/usr/lib/python2.7/tempfile.py", line 34, in <module>
File "/usr/lib/python2.7/random.py", line 61, in <module>
ValueError: math domain error
I used this cisco docker image for IE 4000:
devhub-docker.cisco.com/iox-docker/ie4k/base-rootfs:latest
are there any limitations concerning the implementation of pytohn on IE 4000 with this image?
is there another way to install python library on IE 4000?
Best Regards
Giovanni Sirigu