Installing packages with anaconda behind a http proxy - python-3.x

I am trying to install the package langdect in Anaconda
As I am working in an office, I tried to set up the proxy by creating a .condarc file in C:\Users\my_username
In this file I put
channels:
- defaults
show_channel_urls: True
allow_other_channels: True
proxy_servers:
http: http://username:passwordwith%escape#proxyhost:8080
https: https://username:passwordwith%escape#proxyhost:8080
ssl_verify: True
But i got the following error when executing conda update conda
ProxyError(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', port=443):
Max retries exceeded with url: /pkgs/pro/noarch/repodata.json.bz2
(Caused by ProxyError('Cannot connect to proxy.',
OSError('Tunnel connection failed: 407 au thenticationrequired')))"))
I already tried the solution on this question How to make Anaconda work behind HTTP proxy (not https)?
But I have some questions, is there an easy way to check my proxy blocked out the repository url? What else can I try to make it work?

Related

Unknown python request proxy error with no proxy in place

We facing the issue in docker where we remove the proxy but still we facing the proxy error.
Connection Error occurred. ProxyError: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))
we removed proxy configuration from docker config.json file as well as docker.service.d folder.

Instal & Use the Kmodes package develop on Github https://github.com/nicodv/kmodesed

I am a very beginner, but need to use KModes.
I found the documentation for KModes.
As described I am starting by this code to install kmodes on Jupyter Notebook (via Anaconda)
!pip install kmodes
but get this error message :
Could not fetch URL https://pypi.org/simple/kmodes/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/kmodes/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping
I should I install this new KModes, please ?

How to install envoy proxy on redhat 7

I follow envoy doc https://www.envoyproxy.io/docs/envoy/latest/start/install to how to install Envoy proxy : but I keep getting the same error:
rpm --import 'https://rpm.dl.getenvoy.io/public/gpg.CF716AF503183491.key'
curl: (7) Failed to connect to 2600:9000:2199:9a00:1:3749:30c0:93a1: Network is unreachable
error: https://rpm.dl.getenvoy.io/public/gpg.CF716AF503183491.key: import read failed(2).
I also tried to disable and enable firewall , keep getting the same error.
If anyone have any suggestion please help.

poetry install - ConnectionError | Failed to establish a new connection: [Errno 101] Network is unreachable'

I am using Poetry version 1.1.7.
Running poetry install yields this error.
Can this be resolved through bash or is this explicitly to do with my network? Note: Internet connectivity it perfectly fine in browsers.
me#LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/CompositeKey/CompositeKey$ poetry install
Updating dependencies
Resolving dependencies... (225.5s)
ConnectionError
HTTPSConnectionPool(host='pkgs.dev.azure.com', port=443): Max retries exceeded with url: <CENSORED> (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f53950c3ee0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
at ~/.poetry/lib/poetry/_vendor/py3.8/requests/adapters.py:516 in send
512│ if isinstance(e.reason, _SSLError):
513│ # This branch is for urllib3 v1.22 and later.
514│ raise SSLError(e, request=request)
515│
→ 516│ raise ConnectionError(e, request=request)
517│
518│ except ClosedPoolError as e:
519│ raise ConnectionError(e, request=request)
520│
A 401 Unauthorized Error is thrown when pasting the URL into my browser.
I did:
poetry self update 1.0.10
poetry install
Terminal is giving me installs now, as it should.
me#LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/CompositeKey/CompositeKey$ poetry self update 1.0.10
Updating to 1.0.10
- Downloading poetry-1.0.10-linux.tar.gz 100%
Poetry (1.0.10) is installed now. Great!
me#LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/CompositeKey/CompositeKey$ poetry install
Updating dependencies
Resolving dependencies... (101.5s)
Writing lock file
Package operations: 167 installs, 0 updates, 0 removals
- Installing six (1.16.0)
...
I have the same issue and it turns out to be connection refused by server due to exceeding the max connections limit of the mirror repo.
By default poetry's max installer.max-workers is set to number_of_cores + 4. This would be a problem when you run poetry on a server with like 24 cores and it is reasonable for the server side to refuse that many of connections.
The work around is to config this value manually before executing poetry install, you can use the following command to do limit the max connections:
poetry config installer.max-workers 4

I was trying to install autobahn(0.14.1).But it shows like ''No matching distribution found for autobahn==0.14.1''

No matching distribution found for autobahn==0.14.1
[pipenv.exceptions.InstallError]:
['Collecting autobahn==0.14.1 (from -r /tmp/pipenv-mUvBAU-requirements/pipenv-hE1ELq-requirement.txt (line 1))', '
Could not fetch URL https://pypi.org/simple/autobahn/:
There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'pypi.org\', port=443): Max retries exceeded with url: /simple/autobahn/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.",)) - skipping']
Please change to your python folder and run the following command.
./configure --with-ssl
make
sudo make install

Resources