anaconda - How to solve ERROR download_api._download:228 HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5) - TagMerge
4How to solve ERROR download_api._download:228 HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)How to solve ERROR download_api._download:228 HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

How to solve ERROR download_api._download:228 HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

Asked 1 years ago
0
4 answers

I've got the same error here.

https://imgur.com/a/KgkCIEh

Source: link

0

The installed Anaconda startup error is as follows:
anaconda-navigator 
2021-12-02 20:57:12,833 - WARNING linux_scaling.get_scaling_factor_using_dbus:31
An exception occurred during fetching list of system display settings.

libGL error: MESA-LOADER: failed to open iris: /home/nication/anaconda3/lib/python3.9/site-packages/PyQt5/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /home/nication/anaconda3/lib/python3.9/site-packages/PyQt5/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /home/nication/anaconda3/lib/python3.9/site-packages/PyQt5/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
2021-12-02 20:57:55,550 - ERROR download_api._download:228
HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

QXcbConnection: XCB error: 3 (BadWindow), sequence: 3225, resource id: 14878253, major code: 40 (TranslateCoords), minor code: 0
There is no problem starting now:
anaconda-navigator 
2021-12-02 21:34:56,159 - WARNING linux_scaling.get_scaling_factor_using_dbus:31
An exception occurred during fetching list of system display settings.

2021-12-02 21:35:31,590 - ERROR download_api._download:228
HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

2021-12-02 21:35:31,921 - ERROR download_api._download:228
HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

Source: link

0

I have the same problem as @grosssven ; unable to update as detailed here: #11049 Looking at the log I see:
[
    {
        "level": "ERROR",
        "line": 234,
        "message": "Invalid url https://www.anaconda.com/wp-content/uploads/2017/05/Webinar20-20Three20Ways20to20Move20your20Data20Science20Projects20to20Production.png",
        "method":   "_download",
        "module": "download_api",
        "path":   "/Applications/anaconda3/lib/python3.6/site-packages/anaconda_navigator/api/download_api.py",
       "time": "2019-07-02 21:53:59,565"
    }
]
This is the code inside ~/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/download_api.py line 233-235.
if status_code != 200:
        logger.error('Invalid url {0}'.format(url))
        return path
It does not have specific image in that page. I think better ignore this error. My error says:
2019-08-07 08:58:56,364 - ERROR download_api._download:234
Invalid url https://www.anaconda.com/wp-content/uploads/2017/05/Webinar20-20Three20Ways20to20Move20your20Data20Science20Projects20to20Production.png
same problem on every package I attempt to update; url paths vary slightly
[
    {
        "level": "ERROR",
        "line": 234,
        "message": "Invalid url https://www.anaconda.com/api/events",
        "method": "_download",
        "module": "download_api",
        "path": "C:/Users/john/Anaconda3/lib/site-packages/anaconda_navigator/api/download_api.py",
        "time": "2019-02-09 18:35:35,385"
    }
]
```

`

Source: link

0

<!–more–>
>pip install pyside2
Collecting pyside2
  Downloading PySide2-5.15.2-5.15.2-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (136.3 MB)
     |██████████████████              | 75.3 MB 25 kB/s eta 0:40:29ERROR: Exception:
Traceback (most recent call last):
  File "c:\users\<user_name>\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\urllib3\response.py", line 437, in _error_catcher
    yield
.
.
. Omitted
.
.
  File "c:\users\<user_name>\appdata\local\programs\python\python38\lib\ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\<user_name>\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\cli\base_command.py", line 228, in _main
    status = self.run(options, args)
.
.
. Omitted
.
.
  File "c:\users\<user_name>\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\urllib3\response.py", line 442, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
Method 1. Pass the option to pip directly
pip --default-timeout=1200 install pyside2
Method 2. Set the default value
set PIP_DEFAULT_TIMEOUT=1200

Source: link

Recent Questions on anaconda

    Programming Languages