mikhailklassen / Mining-the-Social-Web-3rd-Edition

The official online compendium for Mining the Social Web, 3rd Edition (O'Reilly, 2018)
Other
919 stars 487 forks source link

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

Open SwitzerChees opened 4 years ago

SwitzerChees commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

Same issue here, any solution?

lhnitz commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

I abandoned both docker and the notebook. I can load the chapters individually and copy/paste segments to test.

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, Nov 12, 2021 at 4:56 PM fredboulanger @.***> wrote:

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?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mikhailklassen/Mining-the-Social-Web-3rd-Edition/issues/33#issuecomment-967767920, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGOFSMYEAEAOVEEORYAKU33ULXHWDANCNFSM4IML27VA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Lawrence H. NItz, Ph.D. Professor, Department of Political Science Director, Manoa Political Internship Program The University of Hawaii at Manoa @.***

holdenmad commented 2 years ago

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 commented 7 months ago

No solution yet?