platformio / platformio-core-installer

PlatformIO Core Installer
https://docs.platformio.org/en/latest/core/installation/index.html
Apache License 2.0
82 stars 50 forks source link

Installation Manager #3139

Closed Carl-1999 closed 5 months ago

Carl-1999 commented 5 months ago

%23 Description of problem Leave a comment...

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 186, in _main status = self.run(options, args) File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 357, in run resolver.resolve(requirement_set) File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 177, in resolve discovered_reqs.extend(self._resolve_one(requirement_set, req)) File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for abstract_dist = self.preparer.prepare_linked_requirement(req) File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement local_path = unpack_url( File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 282, in unpack_url return unpack_http_url( File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 158, in unpack_http_url from_path, content_type = _download_http_url( File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 303, in _download_http_url for chunk in download.chunks: File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/utils/ui.py", line 160, in iter for x in it: File "/home/gtf/.platformio/penv/lib/python3.8/site-packages/pip/_internal/network/utils.py", line 15, in response_chunks for chunk in response.raw.stream( File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 564, in stream data = self.read(amt=amt, decode_content=decode_content) File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 529, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File "/usr/lib/python3.8/contextlib.py", line 131, in exit self.gen.throw(type, value, traceback) File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 430, in _error_catcher raise ReadTimeoutError(self._pool, None, "Read timed out.") urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. Error: Could not install PlatformIO Core: Command '['/home/gtf/.platformio/penv/bin/python', '-m', 'pip', 'install', '-U', 'platformio']' returned non-zero exit status 2. -> Installer version: 1.2.1 Platform: Linux-5.15.0-75-generic-x86_64-with-glibc2.29 Python version: 3.8.10 (default, Nov 22 2023, 10:22:35) [GCC 9.4.0] Python path: /usr/bin/python3 Creating a virtual environment at /home/gtf/.platformio/penv Updating Python package manager (PIP) in a virtual environment Virtual environment has been successfully created! Installing PlatformIO Core Collecting platformio Downloading platformio-6.1.13.tar.gz (237 kB)

at /home/gtf/.vscode/extensions/platformio.platformio-ide-3.3.2-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5300
at ChildProcess.c (/home/gtf/.vscode/extensions/platformio.platformio-ide-3.3.2-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4598)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1121:16)
at Socket.<anonymous> (node:internal/child_process:479:11)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at Pipe.<anonymous> (node:net:757:14)
ivankravets commented 5 months ago

raise ReadTimeoutError(self._pool, None, "Read timed out.") urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

It looks like a connection issue. Please restart VSCode. It should work.