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
AttributeError: module 'os' has no attribute 'geteuid' #889
Comments
Windows support in repo2docker is "low", mostly because it is hard and because none of the devs have access to a windows machine. If you have some time and spare brain cycles to look into this that would be great. |
repo2docker/repo2docker/app.py Lines 201 to 206 in 09a4cfb
A reasonable workaround for windows could be to detect the OS and return an error message requiring |
As a workaround, WSL2 can be used without problems. I might try to fix this issue for Windows in general. Are there more known possible solutions besides the one mentioned by @manics ? |
AFAIK the only reason to make the UID inside the Docker image match the user's UID is so that if you mount the user's home directory into the container it'll be writeable. Is that possible on Windows and if so, how are UIDs mapped, since that might lead to a good solution? |
Doing a cursory search I found something that might be relevant in Reproducing here the beginning of the referenced function
Perhaps a similar approach would be sufficient? |
I got to move from the original issue by forcing to run with a given GUID in the @default("user_id")
def _user_id_default(self):
"""
Default user_id to current running user.
"""
if sys.platform == "win32" or not hasattr(os, "geteuid"):
return 1001
return os.geteuid() With this change, the execution then stops working in step 31 when trying to execute
My |
In other words, repo2docker is useless on Windows. great |
Bug description
Expected behaviour
Expect to produce docker image.
Actual behaviour
How to reproduce
repo2docker https://github.com/matthewolckers/fbr2020
The text was updated successfully, but these errors were encountered: