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

ValueError: path is on mount 'C:', start on mount 'd: #3542

Closed
olonsoft opened this issue Feb 14, 2020 · 6 comments
Closed

ValueError: path is on mount 'C:', start on mount 'd: #3542

olonsoft opened this issue Feb 14, 2020 · 6 comments
Assignees
Milestone

Comments

@olonsoft
Copy link

When I click the Clean button (PlatformIO: Clean) I get the following error:

ValueError: path is on mount 'C:', start on mount 'd:':
  File "C:\users\irakl\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 133: 
    env.PioClean(env.subst("$BUILD_DIR"))
  File "C:\Users\irakl\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\users\irakl\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", line 299:
    clean_rel_path = relpath(clean_dir)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1776.0_x64__qbz5n2kfra8p0\lib\ntpath.py", line 562:
    path_drive, start_drive))

My project compiles and run normally. Only "Clean" command reports this error.

@ivankravets
Copy link
Member

Could you reproduce this issue again?

@olonsoft
Copy link
Author

olonsoft commented Jun 3, 2020

Yes, I 've just tried:

Executing task: C:\Users\irakl\.platformio\penv\Scripts\platformio.exe run --target clean <

Processing d1_mini (platform: espressif8266; board: d1_mini; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------- 
ValueError: path is on drive C:, start on drive D::
  File "C:\users\irakl\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 145:
    env.PioClean(env.subst("$BUILD_DIR"))
  File "C:\Users\irakl\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 224: 
    return self.method(*nargs, **kwargs)
  File "C:\users\irakl\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", line 332:
    clean_rel_path = relpath(clean_dir)
  File "c:\users\irakl\.platformio\penv\lib\ntpath.py", line 529:
    % (path_prefix, start_prefix))
========================================================== [FAILED] Took 2.81 seconds ==========================================================

@ivankravets
Copy link
Member

What is your platformio.ini? Do you have a custom path for build_dir?

@ivankravets ivankravets transferred this issue from platformio/platformio-vscode-ide Jun 3, 2020
@ivankravets ivankravets added this to the 4.3.5 milestone Jun 3, 2020
@ivankravets ivankravets added the bug label Jun 3, 2020
@olonsoft
Copy link
Author

olonsoft commented Jun 3, 2020

Yes
build_dir=C:\programming\pio\build

@valeros
Copy link
Member

valeros commented Jun 16, 2020

Hi @olonsoft ! Thanks for the report. Please upgrade to the latest PlatformIO from the development branch via pio upgrade --dev and try again.

@olonsoft
Copy link
Author

@valeros
It works now. Thank you !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants