tmandry / lavender

Generate Visual Studio projects for Bazel (experimental)
MIT License
75 stars 17 forks source link

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

Open NuncObdurat opened 3 years ago

NuncObdurat commented 3 years ago

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:

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!