-
Notifications
You must be signed in to change notification settings - Fork 14
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
Writing a dotslash file for a python toolchain #22
Comments
Out of curiosity, how are you getting/building DotSlash itself? I just filed #23 and I'm curious if it could be related. |
Hey @bolinfest. I'm definitely not using homebrew in this case. I think I downloaded it directly from the most recent release. I just ensured that I am using the macOS binary listed there and it still fails in the same way:
FWIW it also still fails with the first release of dotslash:
|
@jazzdan Hmm, while we do rewrite arg0 on both Mac and Linux: Lines 110 to 111 in 92fe071
I wonder if Python is looking for some resource relative to the executable and we're not convincing it sufficiently? Also, do you still get this error if you try to use it to run a Python file? Or is it just the REPL case? |
In particular, I'm curious how it is producing that |
@bolinfest good question! So
But
And again, running python from the dotslash cache works fine
The file type looks correct for my system (darwin arm64) so I think my dotslash file is set up correctly:
Thanks for taking a look! |
If this were Linux, I would say we could use |
I hear ya. :) I will try to reproduce this on Linux later and, if that doesn't work, I will disable my System Integrity Protection and see what I can find. |
This also reproduces on Linux. Here's an strace of executing the dotslash file, and it failing: https://gist.github.com/jazzdan/f4dd9eb4231a9fd983f85b5056e498b3 Here is an strace of executing the file in the dotslash cache directly, and it succeeding: https://gist.github.com/jazzdan/71dbd744d680bd14f7e26a434d36fad2 |
It looks like I might be running in to this issue here indygreg/python-build-standalone#57 (comment)
But I'll admit to being a bit over my head here! |
In this case running the dotslash file like this seems to fix it:
|
Given this dotslash file:
I would expect executing it with no arguments to drop me in to a Python REPL. Instead I get this error:
I think this means that python can't find the various libraries that it wants to link against.
If I run this same binary directly from the dotslash cache it works:
For toolchains like this is it necessary to modify them to work with dotslash? I read through #6 but as far as I can tell this python archive should be the first, straightforward case described there. Curious to learn how to handle this. :)
Thanks for open sourcing dotslash! It has made my life a lot easier recently.
The text was updated successfully, but these errors were encountered: