-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Print better error, when installdeps fails due to shebang length limit #749
Comments
Another strategy would be to work around the problem. |
Hi @asottile - that's a scary idea, but if this is a proven workaround could save us a lot of trouble ... I am +1 on trying that here. |
didn't follow that PR though it looks similar to the approach taken by pre-commit and probably fixes this? |
the main difference being that pre-commit tries to make this work on windows as well :D |
The addressed restriction is Linux Kernel specific (and behaves differently in different distros). Is there a similar problem on Windows during to that path length restriction (255 chars or something)? Would be good, if we could squash that also in tox then, if you already have a working solution (although you use "tries", which does not sound very confident :)). For now, the merged PR is strictly opt-in, but I hope we can activate this then after collecting some experience with it. |
Right, the additional behaviour pre-commit adds is scripts with shebangs "just work" on windows (whereas they are usually a posix-only feature). At least for pre-commit, this approach has been the only way to run executables since 0.8.0 (2016-04-11) and hasn't seen any major fixes since then (except a minor fix for "not found" in 0.8.2 (2016-05-20)) |
that sounds like the way to go then :) |
I'll look into packaging this up over the weekend (if I have time)! |
didn't get to it this weekend :(, but I've put it on the top of my todo list |
I just tried to reproduce this with tox 3.5.3 and this is fixed now 🍾 |
We improved the error reporting already by pointing to the "spaces in paths" problem (which prevents virtualenv creation IIRC). Now that same error occurs though in installdeps and is not helping there.
I guess we should add that info in the error. Shall we just mention both scenarios and let the user figure it out which it is?
reproducable with:
The text was updated successfully, but these errors were encountered: