Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idf.py fails if project and IDF paths are on different drives on Windows computer (IDFGH-478) #2753

Closed
j-e-f-f-williams opened this issue Nov 28, 2018 · 1 comment

Comments

@j-e-f-f-williams
Copy link

Environment

  • Development Kit: ESP32-WROOM32 board (unknown vendor)

  • Module or chip used: ESP32-WROOM-32

  • IDF version (run git describe --tags to find it): v3.3-dev-97-gfc1995437

  • Build System: CMake

  • Compiler version (run xtensa-esp32-elf-gcc --version to find it): xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 5.2.0

  • Operating System: Windows 10

  • Power Supply: USB

Problem Description

  • IDF location C:\dev\esp-idf
  • env variable setup correctly and can compile Hello World on example on C:
  • project location D:\projects\TrackDAQ
  • idf.py build completes with error

Expected Behavior

  • no errors

Actual Behavior

following python error:

Project build complete. To flash, run this command:
Traceback (most recent call last):
File "C:\dev\esp-idf\tools\idf.py", line 523, in
main()
File "C:\dev\esp-idf\tools\idf.py", line 519, in main
print_closing_message(args)
File "C:\dev\esp-idf\tools\idf.py", line 371, in print_closing_message
print_flashing_message("Project", "project")
File "C:\dev\esp-idf\tools\idf.py", line 364, in print_flashing_message
os.path.relpath("%s/components/esptool_py/esptool/esptool.py" % os.environ["IDF_PATH"]),
File "C:\Python27\lib\ntpath.py", line 529, in relpath
% (path_prefix, start_prefix))
ValueError: path is on drive C:, start on drive d:

Steps to repropduce

  1. install IDF and IDF tools on C:
  2. copy esp-idf\examples\get-started\hello_world to directory on D:
  3. execute 'idf.py build' in D: based hellow_world example directory
  4. wait for message

Code to reproduce this issue

No code - build issue

Debug Logs

[41/43] Linking C static library bootloader_support\libbootloader_support.a
[42/43] Linking C executable bootloader.elf
[43/43] Generating bootloader.bin
esptool.py v2.6-beta1
[734/734] Generating hello-world.bin
esptool.py v2.6-beta1

Project build complete. To flash, run this command:
Traceback (most recent call last):
File "C:\dev\esp-idf\tools\idf.py", line 523, in
main()
File "C:\dev\esp-idf\tools\idf.py", line 519, in main
print_closing_message(args)
File "C:\dev\esp-idf\tools\idf.py", line 371, in print_closing_message
print_flashing_message("Project", "project")
File "C:\dev\esp-idf\tools\idf.py", line 364, in print_flashing_message
os.path.relpath("%s/components/esptool_py/esptool/esptool.py" % os.environ["IDF_PATH"]),
File "C:\Python27\lib\ntpath.py", line 529, in relpath
% (path_prefix, start_prefix))
ValueError: path is on drive C:, start on drive d:

Other items if possible

@Alvin1Zhang Alvin1Zhang changed the title idf.py fails if project and IDF paths are on different drives on Windows computer [TW#27650] idf.py fails if project and IDF paths are on different drives on Windows computer Nov 28, 2018
@projectgus
Copy link
Contributor

Hi @j-e-f-f-williams ,

Thanks for being patient while someone got back to you about this. A fix has been merged for this issue and should be pushed to GitHub soon.

Angus

@projectgus projectgus changed the title [TW#27650] idf.py fails if project and IDF paths are on different drives on Windows computer idf.py fails if project and IDF paths are on different drives on Windows computer (IDFGH-478) Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants