-
-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error extracting downloaded frameworks #989
Comments
Hm... Strange issue. Could you reproduce this issue after PC restart? Also, would be good if you remove |
Hi, I tried the following:
Could you follow steps to reproduce in your pc and tell me if it works for you? I just wanted to report a possible common issue since a colleague of mine has the same problem. As i said i can skip the error just by extracting the mbed archive manually. Thanks. |
We have thousands of users per day and you are the first with this issue. Could you provide your |
The project i'm using is this: https://github.com/rushup/Cloud-JAM-Platformio The ini is the following:
Anyway following your suggestion i got some news: Without the home_dir parameter it works. When i tried before i commented the filed using "#" instead of the semicolon :/ Seems like the issue is that parameter, i'm using it to create a standalone project and last week it worked fine. Do you see something wrong in what i did? Thanks. |
"#" should work too, be sure that there is no spaces before "#". That is a requirement of INI format.
Why do you need to override PIO Core Home directory? PIO Core installs here platform dependent toolchains, libraries, and other instruments. This folder is not portable between different OS or architectures. |
Hi, I changed the home directory to create a standalone project, similar to to what VisualGDB does. Since we were helding an Hackathon with many people it was better to provide an archive with most of the stuff already downloaded. Everyone had the same OS. Also, when you complete a project shouldn't you be able to backup the full source code? If after years you have to change something, you may face issues by upgraded dependencies or missing online services. I saw your answer here at a similar question and i thought it should have worked with the home_dir parameter too. Anyway, i just thought it was a cool feature to use that way. |
If they use the same OS, you can share with them own PIO Core Home. Try this:
|
I still get the error during the download of the dependencies but this time i see an additional exception:
It always gets stuck while unpacking the mbed framework. Later i'll try on another computer and update the result. |
This time i tried the same on my home PC and it worked without issues. I'll do some additional tests and let you know. |
Does it unpack other packages correctly? |
Ok, The issue seems just the path that gets too long when extracting the mbed framework. I tried also to enable the NTFS's LongPath and rebooting but didn't see any change. PS: Ignore the 'AttributeError' python exception above, that was because of a different version of Python that i was trying. |
Yes |
Well i got a similar behaviour even with just a simple python program using tarfile, so i don't think it's just an issue related to the windows's cli. Anyway i think we can close the issue since it doesn't seem a platformio problem. Thanks, |
To avoid issues with "[platformio] home_dir = .platformio", you can ask users to place ".platformio" folder to %HOME_DIR% folder. In this case, not matter will the user use the same folder of a project it will have pre-installed packages. For example,
New user:
In any case, is better when PIO automatically install all dependent packages. |
I just discovered that it's not an error with platformio but with the VSCode shell instead. The integrated shell behaves weird sometimes with some commands, cause when you try to manually install the packages in a regular cmd window outside of VSCode it works fine. |
Configuration
Operating system: Windows
PlatformIO Version (
platformio --version
): 3.3.1Description 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
git clone https://github.com/rushup/Cloud-JAM-Platformio
platformio init
platformio update
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:
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.
The text was updated successfully, but these errors were encountered: