Page 1 of 1

[_curses.error nocbreak() returned err] when setup on raspberry pi3

Posted: Mon Mar 02, 2020 5:37 pm
by cry_viem
Hi friends,
I'm trying to setup ESP-IDF environment on my Raspberry Pi3 follow official getting started guilde: https://docs.espressif.com/projects/esp ... t-started/
Everything went well except the command: idf.py menuconfig
Then I got this log:
  1. Traceback (most recent call last):  File "/home/pi/esp/esp-idf/tools/kconfig_new/menuconfig.py", line 3287, in <module>    _main() 
  2. File "/home/pi/esp/esp-idf/tools/kconfig_new/menuconfig.py", line 672, in _main    menuconfig(standard_kconfig(__doc__)) 
  3. File "/home/pi/esp/esp-idf/tools/kconfig_new/menuconfig.py", line 741, in menuconfig    print(curses.wrapper(_menuconfig)) 
  4. File "/usr/lib/python2.7/curses/wrapper.py", line 49, in wrapper    curses.nocbreak()_curses.error: nocbreak() returned ERRninja: build stopped: subcommand failed.ninja failed with exit code 1
It seem py - curses module (for terminal sceen painting...) got problem.
I'm not a good python-er, so it made me a lot tough. Thank you for helping.

Re: [_curses.error nocbreak() returned err] when setup on raspberry pi3

Posted: Tue Mar 03, 2020 12:12 am
by ESP_Angus
Hi cry,

I have a couple of questions to help us debug this:

What operating system (and version) are you running on your Pi? is it up to date?

Also, how are you accessing your Pi to run the IDF build? (for example, are you opening an LXTerminal window on the Pi desktop connected directly to monitor/keyboard, or are you logging in over SSH using some other client program, or some other else?) Is it possible whatever method you are using to access the Pi command line doesn't support "curses" (which is a way of making interactive prompts on the text-based terminal).

Angus

Re: [_curses.error nocbreak() returned err] when setup on raspberry pi3

Posted: Tue Mar 03, 2020 4:28 pm
by cry_viem
Hi Angus,
Thanks for your great support,
Please check info below:

OS: Raspbian GNU/Linux 8 (jessie)
Kernel: 4.9.28-v7+

I used directly default terminal window on pi desktop (with monitor / keyboard / mouse plugged)

Re: [_curses.error nocbreak() returned err] when setup on raspberry pi3

Posted: Thu Mar 05, 2020 4:18 am
by ESP_Angus
If you're using a normal Linux terminal window then I'm afraid I can't explain why this isn't working.

The only thought I have is that Debian Jessie is no longer actively updated, maybe updating Raspbian will help?

Sorry I can't be of more assistance.

Re: [_curses.error nocbreak() returned err] when setup on raspberry pi3

Posted: Thu Mar 05, 2020 7:19 am
by ESP_Roland
The list of packages here https://docs.espressif.com/projects/esp ... requisites have been updated recently with libraries required for RPI3. According to the last known issue, rpi-update had to been run as well.

cry_viem, can you please provide the output of the following commands:

Code: Select all

echo $TERM
echo $TERMINFO
You may also try to run the following commands and see if the error goes away or not:

Code: Select all

idf.py menuconfig --style=monochrome
TERM=xterm idf.py menuconfig
TERM=xterm-256color idf.py menuconfig

Re: [_curses.error nocbreak() returned err] when setup on raspberry pi3

Posted: Thu Mar 05, 2020 7:23 am
by ESP_Roland
Additionally, you may try to install the following packages: ncurses-term, libncurses-dev. I'm not sure if this helps but it worth a try.

Re: [_curses.error nocbreak() returned err] when setup on raspberry pi3

Posted: Sun Jun 13, 2021 8:01 pm
by ScottyBoy
I had the same issue with running 'menuconfig' from a remote ssh to another computer. I run mac's and osx, but the terminal wasn't acting nicely from a remote shell.

I was going down the X11 like rabbit hole, but that wasn't needed.

Instead, the
monochrome
argument was all I needed without any environment changes, or terminal/xwindow changes.

Code: Select all

idf.py menuconfig --style=monochrome
Thanks.