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

cry_viem
Posts: 2
Joined: Mon Mar 02, 2020 4:35 pm

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

Postby cry_viem » Mon Mar 02, 2020 5:37 pm

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.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

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

Postby ESP_Angus » Tue Mar 03, 2020 12:12 am

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

cry_viem
Posts: 2
Joined: Mon Mar 02, 2020 4:35 pm

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

Postby cry_viem » Tue Mar 03, 2020 4:28 pm

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)

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

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

Postby ESP_Angus » Thu Mar 05, 2020 4:18 am

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.

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

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

Postby ESP_Roland » Thu Mar 05, 2020 7:19 am

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

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

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

Postby ESP_Roland » Thu Mar 05, 2020 7:23 am

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.

ScottyBoy
Posts: 3
Joined: Fri Jun 11, 2021 3:22 pm

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

Postby ScottyBoy » Sun Jun 13, 2021 8:01 pm

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.

Who is online

Users browsing this forum: Google [Bot] and 165 guests