Hi all!
Loving PlatformIO, but recently ran into two problems that both return back a [“No module named ‘termios’”] error message.
First noticed this about a month ago, whenever I would click on a PlatformIO Home - Recent News link, the resulting error message would be:
OS_OPEN_URL
Server error: {"type":"ModuleNotFoundError","args":["No module named 'termios'"],"message":"No module named 'termios'"}
.Now, most recently, I am getting the same error message on a specific project when I try to compile it. It is an arduino UNO project with a touchscreen display. When I try to build this project, I get this error message in the terminal:
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (3.3.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:
- framework-arduino-avr 5.1.0
- toolchain-atmelavr 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Library Manager: Installing adafruit/Adafruit BusIO @ ^1.9.6
Library Manager: Warning! Package Mirror: No module named 'termios'
Library Manager: Looking for another mirror...
Library Manager: Warning! Package Mirror: No module named 'termios'
Library Manager: Looking for another mirror...
Library Manager: Warning! Package Mirror: No module named 'termios'
Library Manager: Looking for another mirror...
PackageException: Could not install package 'adafruit/Adafruit BusIO @ ^1.9.6' for 'windows_amd64' system:
File "C:\Program Files\Inkscape\lib\python3.8\site-packages\platformio\builder\main.py", line 181:
env.SConscript("$BUILD_SCRIPT")
There are additional errors after those listed above, all pointing to errors in .py files which I assume is a result of the error posted above.
Here is my platformio.ini:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:uno]
platform = atmelavr
board = uno
framework = arduino
lib_extra_dirs = ~/Documents/Arduino/libraries
lib_deps = adafruit/Adafruit BusIO@^1.9.6
The lib_extra_dirs and lib_deps are the same as used in other project’s platformio.ini that build fine.
Some of my system info:
- win10
- Visual Studio Code v1.66 - just updated itself before writing this, but the problem occurred before this update
- PlatformIO core 5.2.5
Thanks for any help,
Randy
PS - the project builds in the arduino IDE