Python requrements --- esp-windows-curses and sys_platform == 'win32'
Posted: Fri Nov 22, 2019 8:06 pm
Hello,
I am fairly new to the ESP-IDF, and I am trying to set up a Visual Studio Code environment for the ESP-IDF on Windows 10.
I have found very few sources on how to do this, and very few examples on a complete working environment.
The setup is using MSYS, with the traditional setup for windows, and the esp-idf and xtensa-esp32-elf seem to be installed and ready.
The current project looks is attached:
This is work in progress, but I have encountered a quite strange problem.
Firstly ... the following output is causing me some problems:
I tried to fix this with the following command:
pip install -r C:\msys32\esp\esp-idf\requirements.txt ---- and esp-windows-curses version 0.1 is installed in Python, but the problem persist, and the message is not going away.
I tried to delete the line
file://${IDF_PATH}/tools/kconfig_new/esp-windows-curses; sys_platform == 'win32', from the requirements.txt, but this does not seem to be a good alternative.
An attitional problem is the mesage :
And I just assume that this have something to do with the Python requirements.
When I try to run the make process, I get the following output:
I am fairly new to the ESP-IDF, and I am trying to set up a Visual Studio Code environment for the ESP-IDF on Windows 10.
I have found very few sources on how to do this, and very few examples on a complete working environment.
The setup is using MSYS, with the traditional setup for windows, and the esp-idf and xtensa-esp32-elf seem to be installed and ready.
The current project looks is attached:
This is work in progress, but I have encountered a quite strange problem.
Firstly ... the following output is causing me some problems:
- C:/msys32/esp/esp-idf\requirements.txt
- Namespace(requirements='C:/msys32/esp/esp-idf\\requirements.txt')
- The following Python requirements are not satisfied:
- esp-windows-curses; sys_platform == 'win32'
pip install -r C:\msys32\esp\esp-idf\requirements.txt ---- and esp-windows-curses version 0.1 is installed in Python, but the problem persist, and the message is not going away.
I tried to delete the line
file://${IDF_PATH}/tools/kconfig_new/esp-windows-curses; sys_platform == 'win32', from the requirements.txt, but this does not seem to be a good alternative.
An attitional problem is the mesage :
- <command-line>: fatal error: curses.h: No such file or directory
And I just assume that this have something to do with the Python requirements.
When I try to run the make process, I get the following output:
- > Executing task: make -j8 V=1 <
- Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
- cygpath [-c HANDLE]
- cygpath [-ADHOPSW]
- cygpath [-F ID]
- Convert Unix and Windows format paths, or output system path information
- Output type options:
- -d, --dos print DOS (short) form of NAMEs (C:\PROGRA~1\)
- -m, --mixed like --windows, but with regular slashes (C:/WINNT)
- -M, --mode report on mode of file (binmode or textmode)
- -u, --unix (default) print Unix form of NAMEs (/cygdrive/c/winnt)
- -w, --windows print Windows form of NAMEs (C:\WINNT)
- -t, --type TYPE print TYPE form: 'dos', 'mixed', 'unix', or 'windows'
- Path conversion options:
- -a, --absolute output absolute path
- -l, --long-name print Windows long form of NAMEs (with -w, -m only)
- -p, --path NAME is a PATH list (i.e., '/bin:/usr/bin')
- -U, --proc-cygdrive Emit /proc/cygdrive path instead of cygdrive prefix
- when converting Windows path to UNIX path.
- -s, --short-name print DOS (short) form of NAMEs (with -w, -m only)
- -C, --codepage CP print DOS, Windows, or mixed pathname in Windows
- codepage CP. CP can be a numeric codepage identifier,
- or one of the reserved words ANSI, OEM, or UTF8.
- If this option is missing, cygpath defaults to the
- character set defined by the current locale.
- System information:
- -A, --allusers use `All Users' instead of current user for -D, -O, -P
- -D, --desktop output `Desktop' directory and exit
- -H, --homeroot output `Profiles' directory (home root) and exit
- -O, --mydocs output `My Documents' directory and exit
- -P, --smprograms output Start Menu `Programs' directory and exit
- -S, --sysdir output system directory and exit
- -W, --windir output `Windows' directory and exit
- -F, --folder ID output special folder with numeric ID and exit
- Try `cygpath --help' for more information.
- # mconf-idf is used only in MSYS
- python /esp/esp-idf/tools/check_python_dependencies.py
- MAKEFLAGS="" CC=cc LD=ld \
- make -C /esp/esp-idf/tools/kconfig
- make[1]: Entering directory '/esp/esp-idf/tools/kconfig'
- cc -c -DCURSES_LOC="<curses.h>" -DLOCALE -MMD -MP -I "." -I "/esp/esp-idf/tools/kconfig" /esp/esp-idf/tools/kconfig/mconf.c -o mconf.o
- <command-line>: fatal error: curses.h: No such file or directory
- compilation terminated.
- make[1]: *** [Makefile:173: mconf.o] Error 1
- make[1]: Leaving directory '/esp/esp-idf/tools/kconfig'
- C:/msys32/esp/esp-idf\requirements.txt
- Namespace(requirements='C:/msys32/esp/esp-idf\\requirements.txt')
- The following Python requirements are not satisfied:
- esp-windows-curses; sys_platform == 'win32'
- Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide
- make: *** No rule to make target 'check_python_dependencies', needed by 'all'. Stop.
- The terminal process terminated with exit code: 2
- Terminal will be reused by tasks, press any key to close it.