Comments (10)
Can you please run git -C D:\esp-idf-4.0-beta2 describe --tags from the command line to verify that git works?
There is an issue reported with python3.8 with esp-idf on Windows OS, so please use python 3.7 and lower
#14
Try also with the 64-bit python version, seems to be you're using 32-bit.
from idf-eclipse-plugin.
"Install Tools" action from eclipse ideally configures the toolchain based on the IDF_PATH found.
But looking at the error - toolchain is not configured correctly due to some reason in your case.
To troubleshoot:
- Run Install Tools once again https://github.com/espressif/idf-eclipse-plugin#installing-esp-idf-tools
- Verify if all the environment variables configured correctly https://github.com/espressif/idf-eclipse-plugin#configuring-environment-variables
- Verify toolchains - https://github.com/espressif/idf-eclipse-plugin#configuring-core-build-toolchains
If you see toolchain is not configured correctly - go and configure toolchain as mentioned.
from idf-eclipse-plugin.
According to https://github.com/espressif/idf-eclipse-plugin, I am supposed to include "python_env/idf4.0_py3.7_env/bin" when I configure the "PATH" variable.
However, these are the only folders in my python_env/idf4.1_py3.8_env directory:
Should I just include these folders while configuring my "PATH" variable instead?
from idf-eclipse-plugin.
That should be fine since plugin appends /bin or /Scripts based on the operating system.
However, I would suggest you to troubleshoot why these environment variables are not auto-configured. Tools console/error log might provide some info on this.
from idf-eclipse-plugin.
"Install Tools" action from eclipse ideally configures the toolchain based on the IDF_PATH found.
But looking at the error - toolchain is not configured correctly due to some reason in your case.To troubleshoot:
- Run Install Tools once again https://github.com/espressif/idf-eclipse-plugin#installing-esp-idf-tools
- Verify if all the environment variables configured correctly https://github.com/espressif/idf-eclipse-plugin#configuring-environment-variables
- Verify toolchains - https://github.com/espressif/idf-eclipse-plugin#configuring-core-build-toolchains
If you see toolchain is not configured correctly - go and configure toolchain as mentioned.
Completed the steps as suggested.
The error:
from idf-eclipse-plugin.
While re-installing the tools (HELP->Espressif IDF Tools Manager->Install tools), the following message showed up on the console window.
What should be done in such a case?
CONSOLE OUTPUT:
Installing tools...
This can take a while. Please be patient.
Executing C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\python.exe D:\esp-idf-4.0-beta2\tools\idf_tools.py install all
Installing tools: xtensa-esp32-elf, esp32ulp-elf, cmake, openocd-esp32, mconf, ninja, idf-exe, ccache
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Executing C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\python.exe D:\esp-idf-4.0-beta2\tools\idf_tools.py install-python-env
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 1317, in
main(sys.argv[1:])
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 1313, in main
action_func(args)
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 1112, in action_install_python_env
idf_python_env_path, _, virtualenv_python = get_python_env_path()
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 813, in get_python_env_path
idf_version_str = subprocess.check_output(['git', '-C', global_idf_path, 'describe', '--tags'], cwd=global_idf_path, env=os.environ).decode()
File "C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', '-C', 'D:\esp-idf-4.0-beta2', 'describe', '--tags']' returned non-zero exit status 128.
Executing C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\python.exe D:\esp-idf-4.0-beta2\tools\idf_tools.py export --format=key-value
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 1317, in
main(sys.argv[1:])
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 1313, in main
action_func(args)
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 953, in action_export
idf_python_env_path, idf_python_export_path, virtualenv_python = get_python_env_path()
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 813, in get_python_env_path
idf_version_str = subprocess.check_output(['git', '-C', global_idf_path, 'describe', '--tags'], cwd=global_idf_path, env=os.environ).decode()
File "C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', '-C', 'D:\esp-idf-4.0-beta2', 'describe', '--tags']' returned non-zero exit status 128.
from idf-eclipse-plugin.
Make sure you set the git to the windows system environment Path
from idf-eclipse-plugin.
I have set the git to the windows system environment PATH. The error persists!
from idf-eclipse-plugin.
Hi @kolipakakondal
The git was not working for esp-idf-4.0-beta2. Cloned another esp-idf from the git and worked with that.
Also, used python3.7 (64-bit version).
Everything works fine now!
Kudos to you for helping out.
Thanks! :)
from idf-eclipse-plugin.
I tried Run>Run As> Local C/C++ Application and it works for me
from idf-eclipse-plugin.
Related Issues (20)
- Syntax coloring does not work in Editor (LSP) (IEP-1165) HOT 2
- When installing ESP IDF IDE, IDE is not selected by default (IEP-1166) HOT 1
- Rendering problem of project description when starting new ESP IDF project (IEP-1167) HOT 1
- [Debian 12, Eclipse IDF 2023-12, ESP-IDF Plugin 2.12] ESP-IDF Tools manager > Install Tools errors. (IEP-1168) HOT 5
- install error (IEP-1169) HOT 5
- Eclipse Plugin: Add ability to select ESP-Tools location (IEP-1173) HOT 2
- Add the Reset & Restart functionality (IEP-1177) HOT 7
- Abort build process in presence of errors (IEP-1180) HOT 1
- Latest version brings more unresolved warnings (IEP-1181) HOT 24
- Espressif-IDE-2.12.1-linux.gtk.x86_64 seems Scanner is broken (IEP-1182) HOT 1
- macOS 14.4 Sonoma (IEP-1185) HOT 1
- IDE installation error (IEP-1188) HOT 3
- Not able to see data in teraterm (IEP-1191)
- Unresolved inclusion. unless it was included in "app_main.c". (IEP-1206)
- Drop python in favor of out-of-the-box available java (IEP-1235) HOT 1
- Move 'ESP-IDF: ****' context menu items into 'ESP-IDF' SUBMENU instead of putting them on top level (IEP-1236) HOT 4
- Remove internet shortcut icon out of the status bar (IEP-1237) HOT 1
- com.espressif.idf.core.idfNature resource key must have matching localized string value (IEP-1238)
- Invalid (tools and dist) installation path: '${USER_HOME}/.espressif/...' instead of user-provided directory (IEP-1239) HOT 2
- Invalid 'Espressif IDF Project' project configuration (IEP-1240) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idf-eclipse-plugin.