platformio-core: Error extracting downloaded frameworks

Configuration

Operating system: Windows

PlatformIO Version (platformio --version): 3.3.1

Description of problem

When platformio is fetching libraries from the framewrok’s repositories it fails extracting the archive.

For example it happened with framework-mbed-3.142.0.tar.gz. It downloads the archive as a temporary directory but then the process prompts the error:

Could not install 'framework-mbed' with version requirements '~3.142.0' for your system 'windows_x86'.

If i move the archive out from the temporary directory and manually extract it, the process continues and i can build the project successfully.

I used the same project many time last week without issues, platformio correctly downloded all the dependencies without problems.

Steps to Reproduce

  1. git clone https://github.com/rushup/Cloud-JAM-Platformio
  2. platformio init
  3. platformio update
  4. platformio run

Actual Results

Could not install 'framework-mbed' with version requirements '~3.142.0' for your system 'windows_x86'.

Additional info

I don’t have any antivirus running.

Additional log:

PackageManager: Installing framework-mbed @ ~3.142.0
Downloading  [####################################]  100%
Unpacking  [###---------------------------------]    9%  00:00:13
Warning! Package Mirror: [Error 32] Impossibile accedere al file. Il file Þ utilizzato da un altro processo: 'C:\\Users\\matteo.fumagalli\\Downloads\\Cloud-JAM-Platformio-master\\.platformio\\packages\\_tmp_installing-0efcpp-package\\framework-mbed-3.142.0.tar.gz'
Looking for other mirror...

The error is in italian but basically it says that it can’t open a file because of another process.

First thing i thought is a problem with my pc, but i tried another pc starting from a clean enviroment and i get the same error. As i said before, last week everything worked…

Any idea?

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

We have thousands of users per day and you are the first with this issue. Could you provide your platformio.ini? It seems that your broke home_dir option.