Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on March 27, 2020 2:41PM
Likes: 1
Replies: 1
I am trying to install the Sentiment Analysis plugin. When I try to create the environment, I get an error:
/opt/dataiku/data_dir/code-envs/python/plugin_sentiment-analysis_managed_1/bin/python failed (exit code: 1)
New python executable in /opt/dataiku/data_dir/code-envs/python/plugin_sentiment-analysis_managed_1/bin/python2.7
Also creating executable in /opt/dataiku/data_dir/code-envs/python/plugin_sentiment-analysis_managed_1/bin/python
Installing setuptools, pip, wheel...done.Running virtualenv with interpreter /usr/bin/python2.7
Updating code environment according to spec ...Installing from Pip requirementsCollecting pandas==0.23.4 (from -r /opt/dataiku/data_dir/tmp/pip-requirements-install/req3894516647341133427.txt (line 2))
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff66f4ba650>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pandas/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff66f4ba350>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pandas/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff66f4ba990>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pandas/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff66f4bacd0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pandas/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff66f4bae50>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pandas/
Could not find a version that satisfies the requirement pandas==0.23.4 (from -r /opt/dataiku/data_dir/tmp/pip-requirements-install/req3894516647341133427.txt (line 2)) (from versions: )No matching distribution found for pandas==0.23.4 (from -r /opt/dataiku/data_dir/tmp/pip-requirements-install/req3894516647341133427.txt (line 2))
Hi,
Your machine likely does not have outgoing Internet connectivity and thus cannot download packages from the Python repositories.
If you have a proxy, you can add pip install options to make pip use your proxy. Please see https://doc.dataiku.com/dss/latest/code-envs/custom-options.html#custom-options-and-environment for details.
You'd need to add two options:
--proxy
[user:passwd@]proxy.server:port
See https://pip.pypa.io/en/stable/user_guide/#using-a-proxy-server for more details on proxy options for pip