Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved] Platformio can't find intelhex

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
brundage
Apprentice
Apprentice
User avatar
Posts: 166
Joined: Thu Dec 02, 2004 6:38 am

[solved] Platformio can't find intelhex

  • Quote

Post by brundage » Wed Aug 20, 2025 6:40 pm

I am starting out development for the ESP32 platform with platformio on vscode. When I try to build a basic project I get the following error:

Code: Select all

Generating partitions .pio/build/lilygo-t-display-s3/partitions.bin
Traceback (most recent call last):
  File "/home/brundage/.platformio/packages/tool-esptoolpy/esptool.py", line 41, in <module>
    import esptool
  File "/home/brundage/.platformio/packages/tool-esptoolpy/esptool/__init__.py", line 42, in <module>
    from esptool.bin_image import intel_hex_to_bin
  File "/home/brundage/.platformio/packages/tool-esptoolpy/esptool/bin_image.py", line 16, in <module>
    from intelhex import HexRecordError, IntelHex
ModuleNotFoundError: No module named 'intelhex'
Compiling .pio/build/lilygo-t-display-s3/FrameworkArduino/Esp.cpp.o
*** [.pio/build/lilygo-t-display-s3/bootloader.bin] Error 1
I have dev-python/intelhex installed. platformio is using the system python.

Code: Select all

0 zippy brundage/.platformio % pwd
/home/brundage/.platformio

0 zippy brundage/.platformio % find . -name python
./penv/bin/python

0 zippy brundage/.platformio % ll penv/bin/python
lrwxrwxrwx 1 brundage brundage 7 Aug  3 11:53 penv/bin/python -> python3*

0 zippy brundage/.platformio % ll penv/bin/python3
lrwxrwxrwx 1 brundage brundage 39 Aug  3 11:53 penv/bin/python3 -> /usr/lib/python-exec/python3.13/python3*
Invoking /usr/lib/python-exec/python3.13/python3 directly works, but not penv/bin/python.

Code: Select all

0 zippy brundage/.platformio % ./penv/bin/python
Python 3.13.5 (main, Jul  6 2025, 19:08:34) [GCC 14.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> from intelhex import IntelHex
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    from intelhex import IntelHex
ModuleNotFoundError: No module named 'intelhex'
>>>

0 zippy brundage/.platformio % /usr/lib/python-exec/python3.13/python3
Python 3.13.5 (main, Jul  6 2025, 19:08:34) [GCC 14.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> from intelhex import IntelHex
>>>
What's going on here? TIA
Unscrambler of Eggs
he/him
Top
brundage
Apprentice
Apprentice
User avatar
Posts: 166
Joined: Thu Dec 02, 2004 6:38 am

  • Quote

Post by brundage » Wed Aug 20, 2025 8:33 pm

Found a solution on the platformio forum. (Wow, google sucks these days.)

https://github.com/platformio/platform- ... 3155057733

Remove the $HOME/.platformio/packages/tool-esptoolpy directory and re-open the project in vscode.
Unscrambler of Eggs
he/him
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic