-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Failure to build/grab dependencies when building from network share #4099
Comments
Same problem here |
Same problem |
I fixed the problem on my PIO installation. It was easier than I thought. |
adrianomazotti, It works, thanks |
I have a similar issue.... it doesn't like my github lib_dep. This is on a VM that I built today and with the code on a network drive. Why does it work on one VM and not the other? And should I create my own issue for this? |
@jbuszkie could you share your |
There's not much too it...
|
No, triple backticks for code formatting. |
Tried this and it made no difference, still having the same issue |
Figured out the issue and created pull request #4106 |
I downgraded python to 3.7.9 and it compiles fine! so something with the UNC path. |
@bizzehdee |
I manually patched my official install by opening up C:\Users\myusername.platformio\penv\Lib\site-packages\platformio\package\manager\base.py and making the changes to that |
I can confirm that @bizzehdee's patch fixes my issue as well. Now why it works on my other VM with 3.9.8 python installed, I'll never know! |
Resolved in 4687665 Please re-test with Does it work now? |
how do I downgrade? I want to check that it's broken with 5.2.3 and then fixed again with 5.2.4a3 |
Please remove |
Nevermind.. I just uninstalled pio and deleted everything on my .platformio directory in my home directory. Then installed pio and 5.2.3 installed. |
I can confirm 5.2.3 fails. Thanks for the quick fix in the repo! |
lol.. I figured it out just as your message came across! :-) |
I have the same issue, trying to compile Marlin for one of my printers and the files are located on a network share. |
I'm certainly no expert... But is the error the same as mine? |
Yes. |
after an hard disk failure and a new fresh install, i had this UNC path error. thanls, regards |
I am trying to have my projects hosted on network shared SSD using VSCode 1.61.2 and PlatformIO (Core 5.2.2 and Home 3.3.4) on Windows 10.
I have already tried the DisableUNCCheck reg patch and it has made no difference.
Error Log
Processing LPC1768 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip; board: nxp_lpc1768; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Error: Traceback (most recent call last):
File "C:\Program Files\Python39\lib\ntpath.py", line 647, in realpath
path = _getfinalpathname(path)
FileNotFoundError: [WinError 161] The specified path is invalid: '\\VAULT\Work_Darren\Marlin\https:\github.com\p3p\pio-nxplpc-arduino-lpc176x\archive\0.1.3.zip'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\darren.platformio\penv\lib\site-packages\platformio_main_.py", line 129, in main
cli() # pylint: disable=no-value-for-parameter
File "C:\Users\darren.platformio\penv\lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "C:\Users\darren.platformio\penv\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\darren.platformio\penv\lib\site-packages\platformio\commands_init_.py", line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "C:\Users\darren.platformio\penv\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\darren.platformio\penv\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\darren.platformio\penv\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "C:\Users\darren.platformio\penv\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\darren.platformio\penv\lib\site-packages\platformio\commands\run\command.py", line 134, in cli
process_env(
File "C:\Users\darren.platformio\penv\lib\site-packages\platformio\commands\run\command.py", line 176, in process_env
result = {"env": name, "duration": time(), "succeeded": ep.process()}
File "C:\Users\darren.platformio\penv\lib\site-packages\platformio\commands\run\processor.py", line 67, in process
result = init_platform(self.options["platform"]).run(
File "C:\Users\darren.platformio\penv\lib\site-packages\platformio\commands\platform.py", line 322, in init_platform
return PlatformFactory.new(name)
File "C:\Users\darren.platformio\penv\lib\site-packages\platformio\platform\factory.py", line 52, in new
pkg = PlatformPackageManager().get_package(pkg_or_spec)
File "C:\Users\darren.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 237, in get_package
if not self.test_pkg_spec(pkg, spec):
File "C:\Users\darren.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 255, in test_pkg_spec
if os.path.realpath(spec.url) == os.path.realpath(pkg.path) or (
File "C:\Program Files\Python39\lib\ntpath.py", line 651, in realpath
path = _getfinalpathname_nonstrict(path)
File "C:\Program Files\Python39\lib\ntpath.py", line 601, in _getfinalpathname_nonstrict
path = _getfinalpathname(path)
FileNotFoundError: [WinError 161] The specified path is invalid: '\\VAULT\Work_Darren\Marlin\https:\github.com\p3p\pio-nxplpc-arduino-lpc176x\archive\0.1.3.zip'
============================================================
An unexpected error occurred. Further steps:
Verify that you have the latest version of PlatformIO using
pip install -U platformio
commandTry to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq.html
Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================
The terminal process "C:\Users\darren.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'LPC1768'" terminated with exit code: 1.
The text was updated successfully, but these errors were encountered: