I just try to install PlatformIO IDE for Atom, and the IDE can be install, but there has problem installing PlatformIO Core. This workstation connecting internet via proxy server, it can’t see any package if the proxy setting is missing.
I can install PlatformIO IDE by adding the http-proxy setting, but unforunately, I don’t know if this is a bug in Atom or PlatformIO Core, it can’t use the setting to install PlatformIO Core. Whenever I start Atom, it will try to continue the installation of PlatformIO IDE, and all of them except “PlatformIO Core” was completed. The following error will be returned:
PIP: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, error(‘Tunnel connection failed: 407 Proxy Authorization Required’,))’: /platformio/platformio/archive/develop.zip
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, error(‘Tunnel connection failed: 407 Proxy Authorization Required’,))’: /platformio/platformio/archive/develop.zip
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, error(‘Tunnel connection failed: 407 Proxy Authorization Required’,))’: /platformio/platformio/archive/develop.zip
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, error(‘Tunnel connection failed: 407 Proxy Authorization Required’,))’: /platformio/platformio/archive/develop.zip
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, error(‘Tunnel connection failed: 407 Proxy Authorization Required’,))’: /platformio/platformio/archive/develop.zip
Exception:
Traceback (most recent call last):
File “c:\users\makk.platformio\penv\lib\site-packages\pip\basecommand.py”, line 215, in main
status = self.run(options, args)
File “c:\users\makk.platformio\penv\lib\site-packages\pip\commands\install.py”, line 335, in run
wb.build(autobuilding=True)
File “c:\users\makk.platformio\penv\lib\site-packages\pip\wheel.py”, line 749, in build
self.requirement_set.prepare_files(self.finder)
File “c:\users\makk.platformio\penv\lib\site-packages\pip\req\req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “c:\users\makk.platformio\penv\lib\site-packages\pip\req\req_set.py”, line 620, in _prepare_file
session=self.session, hashes=hashes)
File “c:\users\makk.platformio\penv\lib\site-packages\pip\download.py”, line 821, in unpack_url
hashes=hashes
File “c:\users\makk.platformio\penv\lib\site-packages\pip\download.py”, line 659, in unpack_http_url
hashes)
File “c:\users\makk.platformio\penv\lib\site-packages\pip\download.py”, line 853, in _download_http_url
stream=True,
File “c:\users\makk.platformio\penv\lib\site-packages\pip_vendor\requests\sessions.py”, line 488, in get
return self.request(‘GET’, url, **kwargs)
File “c:\users\makk.platformio\penv\lib\site-packages\pip\download.py”, line 386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File “c:\users\makk.platformio\penv\lib\site-packages\pip_vendor\requests\sessions.py”, line 475, in request
resp = self.send(prep, **send_kwargs)
File “c:\users\makk.platformio\penv\lib\site-packages\pip_vendor\requests\sessions.py”, line 596, in send
r = adapter.send(request, **kwargs)
File “c:\users\makk.platformio\penv\lib\site-packages\pip_vendor\cachecontrol\adapter.py”, line 47, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File “c:\users\makk.platformio\penv\lib\site-packages\pip_vendor\requests\adapters.py”, line 485, in send
raise ProxyError(e, request=request)
ProxyError: HTTPSConnectionPool(host=‘github.com’, port=443): Max retries exceeded with url: /platformio/platformio/archive/develop.zip (Caused by ProxyError(‘Cannot connect to proxy.’, error(‘Tunnel connection failed: 407 Proxy Authorization Required’,)))
I understand that the proxy setting is an old issue, and I already found many suggestion on this issue.
I have tried adding the following settings in c:\users<user>.atom.apmrc file, also add as environment variable, system variable.
- proxy
- http-proxy
- https-proxy
- http_proxy
- https_proxy
Also added strict-ssl=false
But still, fail installing PlatformIO Core.
I think the existing proxy setting is correct, otherwise, I cannot install PlatformIO IDE. I can’t see any package before adding http-proxy. But it seems that the installation of PlatformIO Core cannot use this setting.
May I know which proxy setting is being used when installing PlatformIO Core? Is it possible to proivde a standalone intallation package so that it can bypass this proxy issue.