Skip to content
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

Can't create the docker image with repository2docker on mac #33

Open
SwitzerChees opened this issue Aug 16, 2019 · 10 comments
Open

Can't create the docker image with repository2docker on mac #33

SwitzerChees opened this issue Aug 16, 2019 · 10 comments

Comments

@SwitzerChees
Copy link

SwitzerChees commented Aug 16, 2019

I had some problems with the following command:

repo2docker https://github.com/mikhailklassen/Mining-the-Social-Web-3rd-Edition

It stuck at step 18 (copy some files) in the image build job and filled the docker harddisk.
The workaround is to create the image directly in the official repo2docker image:

docker run -v /var/run/docker.sock:/var/run/docker.sock jupyter/repo2docker:master repo2docker --user-id 88 --user-name jupyter https://github.com/mikhailklassen/Mining-the-Social-Web-3rd-Edition

Then you can start the image with docker run <container-id> on your mac.

Is it possible to update the instructions to build the image directly in the repo2docker container? So you don't need to install pip or jupyter-repo2docker anymore

@mikhailklassen
Copy link
Owner

Hi @SwitzerChees! I am working on a way to run it with needing repo2docker. I thought repo2docker could make things easier, but some users are running into problems and the support on Windows 10 isn't great. Stay tuned.

@Lightblash
Copy link

Any update? I have the same issue on Windows 10. I can't create docker image using repo2docker.

Traceback (most recent call last):
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\traitlets\traitlets.py", line 528, in get
    value = obj._trait_values[self.name]
KeyError: 'user_id'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\Scripts\repo2docker-script.py", line 9, in <module>
    sys.exit(main())
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\repo2docker\__main__.py", line 351, in main
    r2d = make_r2d()
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\repo2docker\__main__.py", line 306, in make_r2d
    if r2d.user_id == 0 and not r2d.dry_run:
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\traitlets\traitlets.py", line 556, in __get__
    return self.get(obj, cls)
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\traitlets\traitlets.py", line 535, in get
    value = self._validate(obj, dynamic_default())
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\repo2docker\app.py", line 199, in _user_id_default
    return os.geteuid()
AttributeError: module 'os' has no attribute 'geteuid'

@kikiiiiii
Copy link

I had some problems with the following command:

repo2docker https://github.com/mikhailklassen/Mining-the-Social-Web-3rd-Edition

It stuck at step 18 (copy some files) in the image build job and filled the docker harddisk.
The workaround is to create the image directly in the official repo2docker image:

docker run -v /var/run/docker.sock:/var/run/docker.sock jupyter/repo2docker:master repo2docker --user-id 88 --user-name jupyter https://github.com/mikhailklassen/Mining-the-Social-Web-3rd-Edition

Then you can start the image with docker run <container-id> on your mac.

Is it possible to update the instructions to build the image directly in the repo2docker container? So you don't need to install pip or jupyter-repo2docker anymore

I have the exact same issue when using a MAC. any updates?

@courtlin-holt-nguyen
Copy link

Any update? I have the same issue on Windows 10. I can't create docker image using repo2docker.

Traceback (most recent call last):
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\traitlets\traitlets.py", line 528, in get
    value = obj._trait_values[self.name]
KeyError: 'user_id'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\Scripts\repo2docker-script.py", line 9, in <module>
    sys.exit(main())
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\repo2docker\__main__.py", line 351, in main
    r2d = make_r2d()
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\repo2docker\__main__.py", line 306, in make_r2d
    if r2d.user_id == 0 and not r2d.dry_run:
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\traitlets\traitlets.py", line 556, in __get__
    return self.get(obj, cls)
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\traitlets\traitlets.py", line 535, in get
    value = self._validate(obj, dynamic_default())
  File "C:\Users\artem_osadchiy\AppData\Local\Continuum\anaconda3\lib\site-packages\repo2docker\app.py", line 199, in _user_id_default
    return os.geteuid()
AttributeError: module 'os' has no attribute 'geteuid'

I have the same issue when trying to use rep2docker on Windows 10. The error, Key Error: user id

@Pavulonik
Copy link

Same issue here, any solution?

@lhnitz
Copy link

lhnitz commented Oct 26, 2021

I have exactly the same problem trying to install on a new Lenovo Win 10 machine. The install fails because it appears to expect some kind of user id. If I cannot do this, how do I start the Jupyter books for the chapters? Using the longer procedure, running repo2docker repo-link produces the same user id error.

@fredboulanger
Copy link

I have exactly the same problem trying to install on a new Lenovo Win 10 machine. The install fails because it appears to expect some kind of user id. If I cannot do this, how do I start the Jupyter books for the chapters? Using the longer procedure, running repo2docker repo-link produces the same user id error.

I have the same issue on Windows 11. Anyone?

@lhnitz
Copy link

lhnitz commented Nov 13, 2021 via email

@holdenmad
Copy link

It's failing at step 32 for me where it seems there is an error finding miniforge. I've installed miniforge/conda but it didn't help. I'm using an M1 Macbook.

 ---> Running in c455d234fcd1
++ dirname /tmp/install-miniforge.bash
+ cd /tmp
+ MINIFORGE_VERSION=4.9.2-2
+ MAMBA_VERSION=0.7.4
+ SHA256SUM=7a7bfaff87680298304a97ba69bcf92f66c810995a7155a2918b99fafb8ca1dc
+ URL=https://github.com/conda-forge/miniforge/releases/download/4.9.2-2/Mambaforge-4.9.2-2-Linux-x86_64.sh
+ INSTALLER_PATH=/tmp/miniforge-installer.sh
+ unset HOME
+ wget --quiet https://github.com/conda-forge/miniforge/releases/download/4.9.2-2/Mambaforge-4.9.2-2-Linux-x86_64.sh -O /tmp/miniforge-installer.sh
time: 14.601
+ chmod +x /tmp/miniforge-installer.sh
+ echo '7a7bfaff87680298304a97ba69bcf92f66c810995a7155a2918b99fafb8ca1dc  /tmp/miniforge-installer.sh'
+ sha256sum --quiet -c -
+ bash /tmp/miniforge-installer.sh -b -p /srv/conda
PREFIX=/srv/conda
Unpacking payload ...
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
time: 0.270
time: 15.200
Removing intermediate container c455d234fcd1
The command '/bin/sh -c TIMEFORMAT='time: %3R' bash -c 'time /tmp/install-miniforge.bash' && rm -rf /tmp/install-miniforge.bash /tmp/env' returned a non-zero code: 1%     ```

@Enis2Society
Copy link

No solution yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants