question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing package on Windows fails on too long filenames

See original GitHub issue

Installing onnx fails on my Windows 10 machine due to filepaths being too long (“De bestandsnaam of -extensie is te lang” is dutch for “The filename or -extension is too long”):

ERROR: Could not install packages due to an EnvironmentError: [WinError 206] De bestandsnaam of -extensie is te lang: 'c:\\users\\korij_000\\appdata\\local\\pypoetry\\cache\\virtualenvs\\zb-hps-algo-bkp0o5gs-py3.6\\Lib\\site-packages\\onnx\\backend\\test\\data\\node\\test_negative_log_likelihood_loss_input_shape_is_NCd1d2d3_none_no_weight_negative_ignore_index_expanded\\test_data_set_0'

I am able to work around this issue by installing to a folder higher up in my filesystem, but this filename looks a bit excessive.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Korijncommented, Jun 18, 2020

If I may make a suggestion: don’t include your tests and especially your test data in your wheels. It’s not needed at runtime and makes the package much bigger.

1reaction
Korijncommented, Jul 22, 2020

Thanks for the advice.

I read that you ended up not removing the test data because people are apparently using it? Just keep in mind that more and more people will start using the test data in the package and it will become harder and harder to remove it the longer you wait.

Just like there are alternative methods to deal with long paths as you explained, there are alternative ways to distribute test data too 😃 for example, they could use git clone and use command line options to shallowly retrieve just your test data folders.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package installation fails on Windows when directory paths ...
The error may be caused by Windows not allowing long file paths by default. You can resolve this on the agent with the...
Read more >
Errors due to Windows paths too long (>256 characters)
Errors due to Windows paths too long (>256 characters). The hard facts. Windows has a really low default limit of 255/260 characters for...
Read more >
Destination Path Too Long Error When Moving/Copying a File
The file name(s) would be too long for the destination folder. You can shorten the file name and try again, or try a...
Read more >
Nuget package manager long file name error - Stack Overflow
When I install nuget packages with long file names I get following error: The specified path, file name, or both are too long....
Read more >
Fix Destination Path Too Long Error In Windows 10/8/7
Fix Destination Path Too Long Error In Windows 10/8/7.Users get the “Destination Path Too Long ” error while trying to copy, move or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found