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

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

The Quick-start didn't work for me. Lots of errors which may have been written in ancient Greek for all I could understand of them. #90

Open Nick268 opened 2 years ago

Nick268 commented 2 years ago

Not so much an issue, more a scream of frustration into the abyss…

Followed the Quickstart "Getting started on your own machine using Docker" instructions.

All sorts of stuff happened, including lots of stuff in red, none of which made any sense to me.

The final line before it kicked me back to the command prompt was.

Removing intermediate container 56874fb120c2 The command '/bin/sh -c ${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache-dir -r "binder/requirements.txt"' returned a non-zero code: 1 No idea what that means. I never saw a URL to launch the docker. Guess I won't be using the docker for the book. Which is a shame as I have no idea about the Git instructions either...

Nick268 commented 2 years ago

Further. Not a fix, just a number of other issues.

Having read up on the Git installation, I successfully cloned the repository to a directory on my local machine.

Having eventually found the requirements.txt file in the binders directory, I ran pip3 install -r requirements.txt in that directory. Again, lots of activity that ended with multiple error lines in red in the terminal. For example. ` Getting requirements to build wheel ... done Preparing wheel metadata ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /tmp/tmp46oo4b0e prepare_metadata_for_build_wheel /tmp/tmpfmnl2z_5 cwd: /tmp/pip-install-m5_2nn2o/scipy Complete output (150 lines): lapack_opt_info: lapack_mkl_info: customize UnixCCompiler libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE

openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
  libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
  libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_3_10_threads_info:

` and so on for many lines.

Stepping into the notebooks directory and running jupyter notebook did launch a server and open a webpage in my browser that had the relevant notebook directory structure. But with all the errors I have no idea if some or all, or even just enough, of the requirements have been installed to make the code work.

It's probably something to do with my local machine's setup. For example pip commands try to use python 2.7 rather than the 3.8 I have installed, I used pip3 in its place. Was that wrong? Who knows...