toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies…
No dependencies
Building in release mode
Building .pio/build/esp32dev/bootloader.bin
Traceback (most recent call last):
File “/home/fred/.platformio/packages/tool-esptoolpy/esptool.py”, line 41, in
import esptool
File “/home/fred/.platformio/packages/tool-esptoolpy/esptool/init.py”, line 42, in
from esptool.bin_image import intel_hex_to_bin
File “/home/fred/.platformio/packages/tool-esptoolpy/esptool/bin_image.py”, line 16, in
from intelhex import HexRecordError, IntelHex
ModuleNotFoundError: No module named ‘intelhex’
Compiling .pio/build/esp32dev/FrameworkArduino/FirmwareMSC.cpp.o
*** [.pio/build/esp32dev/bootloader.bin] Error 1
Removing the extension have no effect. Just close VS Code, delete the folder. When you restart VS Code and open a project, PlatformIO will begin to install the missing files automatically.
It might have effect to your projects if you did not specify the platform version in the platformio.ini. Make sure you specify the version you want to use (e.g.: “platform = espressif32 @ 6.12.0”). If no platform version is specified and no platform version is installed, it will install the latest available (which currently is “6.12.0”).
By the way: If you want to use the newer Espressif Arduino Framework 3.x instead of the outdated 2.0.17, take a look at pioarduino’s espressif32 platform.
Cleaning…
Tool Manager: tool-esptoolpy@2.40900.250804 has been installed!
MissingPackageManifestError: Could not find one of ‘package.json’ manifest files in the package
The terminal process “platformio ‘run’” terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
I than executed sudo apt install …. in $HOME and tried it again with the same result (see build log).
I than switched to .platformio/penvand executed the sudo apt install again without any further success.
I’m not sure whether I grasp the whole story with PIO and phyton venv
To answer your question: No, I do not have python3-venv (system wide) installed.
However, I found a directory pvenv located in $HOME/.platformio.
There is pyvenv.cfg which is pointing to $HOME/.local/share/uv/python/cpython-3.13.11-linux-x86_64-gnu/bin (home=….).
So it seems to me that I have a venv installed for platformio.
As I understand from reading, I have to activate the venv through the command source …./bin/activatewhich would be in my case source $HOME/.platformio/penv .
(Please correct me if I’m wrong).
That’s leads me to the question: how can I easily activate the venv when start working on pio projects?
Can I perhaps automate that in Platformio with some configuration or do I have to use the command on a CLI?
If I can resolve this mystery with venv, perhaps I can resolve all my problems when compiling.
Any suggestion is much appreciated.
TIA
Note: Everything refers to Linux Mint v22.2
Does perhaps a tutorial to the subject pio &python venv exist somewhere?
Unfortunately, I cannot answer your questions as I lack the necessary background knowledge myself. However, I do know that I need to install python3-venv if I want to use PlatformIO on Ubuntu (WSL).
The solution for me is simple: go to C:\Users\<user>\.platformio\penv\Scripts. Open a shell and type: pip3.exe install intelhex. The problem is solved.
The solution for me is simple: go to C:\Users\<user>\.platformio\penv\Scripts. Open a shell and type: pip3.exe install intelhex. The problem is solved.
This is the solution for me as well! Many thanks!!!