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

[WinError 206] The filename or extension is too long #17

Open
NuncObdurat opened this issue Nov 8, 2021 · 0 comments
Open

[WinError 206] The filename or extension is too long #17

NuncObdurat opened this issue Nov 8, 2021 · 0 comments

Comments

@NuncObdurat
Copy link

Hello, thanks for creating this tool! I'm having an issue with long file paths when trying to build a Visual Studio solution for tensor flow. The error is below.

DEBUG: C:/tmp/vkiilvyk/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'pybind11' because it already exists.
Loading: 169 packages loaded
Traceback (most recent call last):
File "C:\Storage\lavender-master\generate.py", line 470, in
main(sys.argv)
File "C:\Storage\lavender-master\generate.py", line 465, in main
run_aspect(cfg)
File "C:\Storage\lavender-master\generate.py", line 209, in run_aspect
subprocess.check_call([
File "C:\Python38\lib\subprocess.py", line 359, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Python38\lib\subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Python38\lib\subprocess.py", line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 206] The filename or extension is too long

What I have tried/verified:

  • Removed Win10 long path restrictions using [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
    "LongPathsEnabled"=dword:00000001
  • added the following to my bazel.rc file:
    startup --output_user_root=C:/tmp
    startup --windows_enable_symlinks
    build --enable_runfiles
  • Enabled 8.3 filename support via "fsutil 8dot3name set 0"
  • Ensured that BAZEL_SH is set systemwide

I'm not sure what else it could be, other than maybe that the maximum path length limitation is still being applied within Python or some other tool. Any ideas or support would be greatly appreciated!

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

1 participant