question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Something prepends /usr/bin to PATH (IEP-255)

See original GitHub issue

When I try to run the build I get this error:

-- Checking Python dependencies...
The following Python requirements are not satisfied:
setuptools>=21
future>=0.15.2
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
gdbgui>=0.13.2.0
pygdbmi<=0.9.0.2
reedsolo>=1.5.3,<=1.5.4
bitstring>=3.1.6
To install the missing packages, please run "/home/szabi/esp/esp-idf/install.sh"
Diagnostic information:
    IDF_PYTHON_ENV_PATH: /home/szabi/.espressif/python_env/idf4.3_py3.8_env
    Python interpreter used: /usr/bin/python
    Warning: python interpreter not running from IDF_PYTHON_ENV_PATH
    PATH: /usr/bin:/home/szabi/.espressif/python_env/idf4.3_py3.8_env/bin:/home/szabi/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin:/home/szabi/.espressif/tools/xtensa-esp32s2-elf/esp-2020r2-8.2.0/xtensa-esp32s2-elf/bin:/home/szabi/.espressif/tools/riscv-none-embed-gcc/riscv-none-embed-gcc-8.2.0/xPacks/riscv-none-embed-gcc/8.2.0-3.1/bin:/home/szabi/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin:/home/szabi/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin:/home/szabi/.espressif/tools/cmake/3.16.4/bin:/home/szabi/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin:/home/szabi/.espressif/python_env/idf4.3_py3.8_env/bin:/home/szabi/esp/esp-idf/tools:/home/szabi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

As you can see, the problem is that something prepends /usr/bin to PATH. This is not coming from my project environment settings, it starts with the second entry of the above.

Anybody seen this before? I spent hours looking through project settings and eclipse preferences, haven’t found anything. A grep -r in the project folder didn’t reveal any file containing /usr/bin apart from the project environment settings file.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kolipakakondalcommented, Oct 7, 2020

HI @szekelyisz For unresolved errors, I would request you to create a new issue with the following logs.

Before you capture the logs, please create a new project from the templates and build the project.

  1. Error log: https://github.com/espressif/idf-eclipse-plugin#error-log
  2. Parser log: Project > C/C++ Index > Create Parser Log
  3. Eclipse Environment info: https://github.com/espressif/idf-eclipse-plugin/blob/master/FAQ.md#how-do-i-provide-eclipse-envrionment-and-plugins-information
1reaction
igrrcommented, Oct 6, 2020

The cmake4eclipse project has very nice features like providers for automatic include directory discovery based on the CMakeLists.txt files and compiler built-in options. The latter will tell Eclipse about system header files that are not seen by the idf-eclipse-plugin for now.

@szekelyisz theoretically, same should be the case with this plugin, as it obtains information about include paths and preprocessor flags from compile_commands.json, generated by CMake. If for some reason indexing is not working for you, we can try to investigate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add /usr/local/sbin to the PATH of a user [duplicate]
The easiest way is to add this line to your user's ~/.bashrc file: export PATH=$PATH:/usr/local/sbin. Bear in mind that /sbin/ , /usr/sbin ...
Read more >
How to correctly add a path to PATH? - Unix StackExchange
The bottom line is that to add a new directory to the path, you must append or prepend the directory to the $PATH...
Read more >
My PATH Variable is a Mess. How to clean up your PATH in…
You always append or prepend new paths to $PATH variable in your config file, such as ~/.zshrc , ~/bashrc , etc. I recommend...
Read more >
cygwin - /usr/local/bin:/usr/bin: to the end of $PATH instead of ...
For a default installation of Cygwin, PATH is set is /etc/profile. You can modify PATH so that /usr/local/bin:/usr/bin are appended rather than prepended....
Read more >
Adding a Path to the Linux PATH Variable | Baeldung on Linux
We can add a new path to the PATH variable using the export command. To prepend a new path, such as /some/new/path, we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found