Hi I'm having some trouble installing datahub. Whe...
# troubleshoot
c
Hi I'm having some trouble installing datahub. When I try to run
python3 -m datahub version
, I get the following error:
Copy code
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/datahub/__main__.py", line 1, in <module>
    from datahub.entrypoints import main
  File "/home/ubuntu/.local/lib/python3.8/site-packages/datahub/entrypoints.py", line 13, in <module>
    from datahub.cli.delete_cli import delete
  File "/home/ubuntu/.local/lib/python3.8/site-packages/datahub/cli/delete_cli.py", line 123, in <module>
    type=click.DateTime(),
AttributeError: module 'click' has no attribute 'DateTime'
q
Try updating your python version as well as your pip version and then reinstall the CLI and see what happens
c
@quiet-wolf-56299 Thanks Tyler, I upgraded to Python3.9 and I"m still getting the same problem:
Copy code
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/ubuntu/.local/lib/python3.9/site-packages/datahub/__main__.py", line 1, in <module>
    from datahub.entrypoints import main
  File "/home/ubuntu/.local/lib/python3.9/site-packages/datahub/entrypoints.py", line 13, in <module>
    from datahub.cli.delete_cli import delete
  File "/home/ubuntu/.local/lib/python3.9/site-packages/datahub/cli/delete_cli.py", line 123, in <module>
    type=click.DateTime(),
AttributeError: module 'click' has no attribute 'DateTime'
g
could you try running
pip install --upgrade click
- I believe we require 7.1.2, and the acryl-datahub dependency list is incorrect
c
Ok, that seemed to have fixed it, but it's not detecting docker for some reason:
Copy code
ubuntu@ip-192-170-9-44:~$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendo
   Active: active (running) since Wed 2022-10-26 00:15:36 UTC; 6s ago
     Docs: <https://docs.docker.com>
 Main PID: 13364 (dockerd)
    Tasks: 9
   CGroup: /system.slice/docker.service
           └─13364 /usr/bin/dockerd -H fd:// --containerd=/run/contai

Oct 26 00:15:36 ip-192-170-9-44 dockerd[13364]: time="2022-10-26T00:
Oct 26 00:15:36 ip-192-170-9-44 dockerd[13364]: time="2022-10-26T00:
Oct 26 00:15:36 ip-192-170-9-44 dockerd[13364]: time="2022-10-26T00:
Oct 26 00:15:36 ip-192-170-9-44 dockerd[13364]: time="2022-10-26T00:
Oct 26 00:15:36 ip-192-170-9-44 dockerd[13364]: time="2022-10-26T00:
Oct 26 00:15:36 ip-192-170-9-44 dockerd[13364]: time="2022-10-26T00:
Oct 26 00:15:36 ip-192-170-9-44 dockerd[13364]: time="2022-10-26T00:
Oct 26 00:15:36 ip-192-170-9-44 dockerd[13364]: time="2022-10-26T00:
Oct 26 00:15:36 ip-192-170-9-44 systemd[1]: Started Docker Applicati
Oct 26 00:15:36 ip-192-170-9-44 dockerd[13364]: time="2022-10-26T00:
lines 1-19/19 (END)
ubuntu@ip-192-170-9-44:~$ python3.9 -m datahub docker quickstart
Unable to run quickstart:
- Docker doesn't seem to be running. Did you start it?
q
I ran into that myself. I’ll see if I can remember what I did
c
Thanks that would be helpful
q
Did you follow all the docker install steps? https://docs.docker.com/engine/install/ubuntu/ not adding your user to the docker group is a potential cause
c
I did
q
Are you able to start a docker container normally?
c
yes, it does start
It gives me: Hello from Docker! This message shows that your installation appears to be working correctly.
g
it looks like you’re running on ubuntu - is that right? also, do you see
/var/run/docker.sock
on your filesystem?