Skip to content
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: Could not find one of ... manifest files in the package #1785

Closed
AntonMalygin opened this issue Dec 1, 2020 · 12 comments
Closed

Error: Could not find one of ... manifest files in the package #1785

AntonMalygin opened this issue Dec 1, 2020 · 12 comments
Labels
wontfix This will not be worked on

Comments

@AntonMalygin
Copy link

AntonMalygin commented Dec 1, 2020

Solution

Please remove a broken package that does not contain a manifest file.


PIO Core Call Error: "Error: Could not find one of 'package.json' manifest files in the package"

@stale stale bot added the Stale label Jan 23, 2021
@ivankravets ivankravets changed the title Could not load platform data Error: Could not find one of 'package.json' manifest files in the package Jan 26, 2021
@ivankravets ivankravets changed the title Error: Could not find one of 'package.json' manifest files in the package Error: Could not find one of ... manifest files in the package Jan 26, 2021
@ivankravets
Copy link
Member

Please remove a broken package that does not contain a manifest file.

@HamzaHajeir
Copy link

How can we build with a specific version of a framework, such as:

platform = https://github.com/esp8266/Arduino/archive/78e63280ba2f736c1803bab6e82ad5a30492fc70.zip

Where that doesn't contain platform.json file?

@ivankravets
Copy link
Member

@AntonMalygin
Copy link
Author

AntonMalygin commented Jun 22, 2021 via email

@neilmendoza
Copy link

I think I ended up with a partially downloaded microcontroller platform somehow and had to delete it from the .platformio folder to fix.

@DevlshOne
Copy link

I'm not sure what the fix for this is, but I'm having the exact same issue. @neilmendoza what did you do to fix this? I'm very new to VSCode, Marlin and compiling. I have Auto Build Marlin and PlatformIO extensions installed in VSCode and neither seem to be able to get past this error message. Please help.

@neilmendoza
Copy link

@DevlshOne I uninstalled Platformio, deleted the whole YOUR_HOME_FOLDER/.platformio folder and reinstalled in the end. Probably didn't need to go that far and just deleting the YOUR_HOME_FOLDER/.platformio/platforms/MICROCONTOLLER_YOUR_HAVING_ISSUES_WITH folder will probably work. YOUR_HOME_FOLDER/.platformio will probably be hidden, so on Mac you have to select go to folder from the Finder menu and Windows you have to show hidden folder.

@AtmegaBuzz
Copy link

I just unsintalled platform io from vscode and deleted .platformio folder from C://User/username/, then reinstalled platformio on vscode and it worked

@rhousedorf
Copy link

this worked, just exiting vscode, deleting .platformio, running vscode again, and letting it install platformio again by itself.

@ajsb85
Copy link

ajsb85 commented Dec 11, 2022

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal
PLATFORM: Espressif 32 (5.2.0) > SparkFun ESP32 MicroMod
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-espidf @ 3.40402.0 (4.4.2) 
 - tool-cmake @ 3.16.4 
 - tool-esptoolpy @ 1.40201.0 (4.2.1) 
 - tool-ninja @ 1.7.1 
 - toolchain-esp32ulp @ 1.22851.191205 (2.28.51) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3

@curiegupta
Copy link

this worked, just exiting vscode, deleting .platformio, running vscode again, and letting it install platformio again by itself.

Worked for me as well. Thanks!

@walwer
Copy link

walwer commented Dec 5, 2023

TLDR

  • Remove corrupted packages from esphome docker container and let them be downloaded again

I stepped upon the same issue recently inside Home Assistant environment and I just figured out the solution for that one.

Description of issue

No possibility to install/build/compile from any configuration that uses arduino framework.
Example of failing configuration:

esp32:
  board: esp-wrover-kit
  framework:
    type: arduino

Cause of the issue in my case

Loss of network on HA environment caused incomplete download of package during the build.

Solution

Steps to take:

  1. Make sure you have terminal access to your HA instance. (I used https://github.com/hassio-addons/addon-ssh - Advanced SSH & Web Terminal)

  2. If using above mentioned addon - make sure to disable "Safe Mode" under addon's setting. (HA Settings -> Addons -> Advanced SSH & Web Terminal -> Secure/Safe Mode -> Disable

  3. Open terminal

  4. List docker containers running on HA instance docker ps

  5. The output should look more less like this:
    terminal_docker_ps

  6. Copy name of esphome container

  7. Enter shell of esphome container

docker exec -it <container_name or container id> /bin/bash
  1. Navigate to following path
cd /data/cache/platformio/packages
  1. If you list the files under that directory you should see some packages
***
framework-arduinoespressif32/
framework-arduinoespressif8266/
***
  1. Remove any arduino related directories there
rm -r framework_arduino*
  1. Try installing / building / compiling your configuration YAML file again.

The following solution worked for me and redownloaded the corrupted arduino build tool packages.
I hope this helps someone with similiar issue 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

10 participants