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

UnknownPackageError: Could not find the package with 'espressif/toolchain-riscv32-esp @ 13.2.0+20240530' requirements for your system 'darwin_arm64' #144

Open
Tracked by #137
Kanzll opened this issue Dec 24, 2024 · 13 comments

Comments

@Kanzll
Copy link

Kanzll commented Dec 24, 2024

Hello,

Unable to compile the platformIO example, with all versions (@5.1 and even the latest).
here is the complete OUTPUT:

Resolving ESP-LCD dependencies...
Tool Manager: Installing espressif/toolchain-riscv32-esp @ 13.2.0+20240530
UnknownPackageError: Could not find the package with 'espressif/toolchain-riscv32-esp @ 13.2.0+20240530' requirements for your system 'darwin_arm64'

I am on vscode with PlatformIO on os x (15.1.1)

Thank you

@Lzw655
Copy link
Collaborator

Lzw655 commented Dec 25, 2024

Hi @Kanzll,

I tried compiling this project on Linux, and apart from dependency version errors causing the build to fail, I did not encounter the UnknownPackageError. I will attempt to compile it on MacOS next.

@Kanzll
Copy link
Author

Kanzll commented Dec 25, 2024

Hello @Lzw655,
It's been a few days, that I am not able to compile a single project plaformIO for the Waveshare 5inch lcd board (1024x600)

@Lzw655
Copy link
Collaborator

Lzw655 commented Dec 25, 2024

I was able to reproduce this issue. May I confirm if you are intending to use Arduino as the framework? Also, could you specify the target ESP chip model?

@Kanzll
Copy link
Author

Kanzll commented Dec 25, 2024

Yes, I use Arduino framework, the chip model is esp32s3. (Board: Waveshare ESP32-S3-Touch-LCD-5B )

@Lzw655
Copy link
Collaborator

Lzw655 commented Dec 26, 2024

Hi @Kanzll,

Please try to modify the platformio.ini file as follows, then the project can be compiled success in my test.
(BTW, note that the lv_conf.h should be enabled and placed to the src folder)

[env:ESP-LCD]
platform = espressif32
board = ESP-LCD
framework = arduino
platform_packages =
        platformio/framework-arduinoespressif32@https://github.com/esp-arduino-libs/arduino-esp32.git#high_perf/v3.0.3
        platformio/framework-arduinoespressif32-libs@https://github.com/esp-arduino-libs/arduino-esp32-sdk.git#high_perf/v3.0.3
upload_speed = 921600
monitor_speed = 115200
build_flags =
        -DBOARD_HAS_PSRAM
        -DLV_CONF_INCLUDE_SIMPLE
        -DDISABLE_ALL_LIBRARY_WARNINGS
        -DARDUINO_USB_CDC_ON_BOOT=1
        -DCORE_DEBUG_LEVEL=1
        -DLV_LVGL_H_INCLUDE_SIMPLE
        -I src
lib_deps =
        https://github.com/esp-arduino-libs/ESP32_Display_Panel.git
        https://github.com/esp-arduino-libs/ESP32_IO_Expander.git#v0.1.0
    https://github.com/lvgl/lvgl.git#release/v8.3

@Lzw655 Lzw655 mentioned this issue Dec 26, 2024
8 tasks
@Kanzll
Copy link
Author

Kanzll commented Dec 26, 2024

Hello @Lzw655,
Thank you for your update, but I have another compilation error :

Resolving esp32s3box dependencies...
Error! Failed to extract upstream toolchainconfigurations:
Extra data: line 1 column 4 (char 3)
You can disable this feature via the `board_build.arduino.upstream_packages = no` setting in your `platformio.ini` file.

Other error with board_build.arduino.upstream_packages = no :


Resolving esp32s3box dependencies...
Tool Manager: Installing git+https://github.com/esp-arduino-libs/arduino-esp32.git#high_perf/v3.0.3
git version 2.18.0
Cloning into '/Users/kiman/.platformio/.cache/tmp/pkg-installing-r58oopd4'...

fatal: could not read Username for 'https://github.com': Device not configured

VCSBaseException: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', '--branch', 'high_perf/v3.0.3', 'https://github.com/esp-arduino-libs/arduino-esp32.git', '/Users/kiman/.platformio/.cache/tmp/pkg-installing-r58oopd4']

Thank you !

@Lzw655
Copy link
Collaborator

Lzw655 commented Dec 27, 2024

Sorry, I can't reproduce this issue now; it seems related to Git and network conditions.

@Kanzll
Copy link
Author

Kanzll commented Jan 1, 2025

Hello @Lzw655,
I got 404 error when try 1st url in browser :
Capture d’écran, le 2025-01-01 à 11 22 39
is it an authentication problem ? Should I add an access token or something like that?
Thank you for your help !

@Lzw655
Copy link
Collaborator

Lzw655 commented Jan 2, 2025

This is not a standard URL. The 'high_perf/v3.0.3' is a branch's name and the section is a format for PlatformIO.

@Kanzll
Copy link
Author

Kanzll commented Jan 3, 2025

With this URL I got always fatal: could not read Username for 'https://github.com': Device not configured.
I replaced by this one platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.3
and project compiles successfully.
there is difference with this twos URL ?

@Lzw655
Copy link
Collaborator

Lzw655 commented Jan 6, 2025

Oh, I'm really sorry for that. The repository esp-arduino-libs/arduino-esp32.git seems to have been accidentally deleted. However, it is identical to espressif/arduino-esp32.git. You can directly use the latter as a replacement.

@Kanzll
Copy link
Author

Kanzll commented Jan 7, 2025

Thank you for your help @Lzw655 !

@Lzw655
Copy link
Collaborator

Lzw655 commented Jan 8, 2025

You are welcome! Can your board work well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants