probcomp / gen-quickstart

Gen learning material as Jupyter notebooks
127 stars 50 forks source link

Docker file build failures #53

Closed desmond-dsouza closed 3 years ago

desmond-dsouza commented 4 years ago

EDIT: it built successfully on Ubuntu 18 after increasing VM memory. Please close this issue.

===== Are there known issues with the Docker files in this repo? I have tried all 3 (Ubuntu 16, 18, 20, on corresponding Digital Ocean machines) without success. Here is the failure on Ubuntu 18, after following the instructions in scripts/Readme.md/Extras:

...
Step 7/17 : RUN             virtualenv -p /usr/bin/python3 /venv
 ---> Running in 6d2c08ae5a6b
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /venv/bin/python3
Also creating executable in /venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
Removing intermediate container 6d2c08ae5a6b
 ---> 77b754085c22
Step 8/17 : RUN             . /venv/bin/activate && pip install jupyter jupytext matplotlib tensorflow
 ---> Running in 2c357512f665
Collecting jupyter
  Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting jupytext
  Downloading jupytext-1.5.0.tar.gz (1.1 MB)
Collecting matplotlib
  Downloading matplotlib-3.2.1-cp36-cp36m-manylinux1_x86_64.whl (12.4 MB)
Collecting tensorflow
  Downloading tensorflow-2.2.0-cp36-cp36m-manylinux2010_x86_64.whl (516.2 MB)
ERROR: Exception:
Traceback (most recent call last):
  File "/venv/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 188, in _main
    status = self.run(options, args)
  File "/venv/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 185, in wrapper
    return func(self, options, args)
  File "/venv/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 333, in run
    reqs, check_supported_wheels=not options.target_dir
  File "/venv/lib/python3.6/site-packages/pip/_internal/resolution/legacy/resolver.py", line 179, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/venv/lib/python3.6/site-packages/pip/_internal/resolution/legacy/resolver.py", line 362, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/venv/lib/python3.6/site-packages/pip/_internal/resolution/legacy/resolver.py", line 314, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
  File "/venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 469, in prepare_linked_requirement
    hashes=hashes,
  File "/venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 259, in unpack_url
    hashes=hashes,
  File "/venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 130, in get_http_url
    link, downloader, temp_dir.path, hashes
  File "/venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 281, in _download_http_url
    for chunk in download.chunks:
  File "/venv/lib/python3.6/site-packages/pip/_internal/cli/progress_bars.py", line 166, in iter
    for x in it:
  File "/venv/lib/python3.6/site-packages/pip/_internal/network/utils.py", line 39, in response_chunks
    decode_content=False,
  File "/venv/lib/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 564, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/venv/lib/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 507, in read
    data = self._fp.read(amt) if not fp_closed else b""
  File "/venv/lib/python3.6/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 65, in read
    self._close()
  File "/venv/lib/python3.6/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 52, in _close
    self.__callback(self.__buf.getvalue())
  File "/venv/lib/python3.6/site-packages/pip/_vendor/cachecontrol/controller.py", line 309, in cache_response
    cache_url, self.serializer.dumps(request, response, body=body)
  File "/venv/lib/python3.6/site-packages/pip/_vendor/cachecontrol/serialize.py", line 72, in dumps
    return b",".join([b"cc=4", msgpack.dumps(data, use_bin_type=True)])
  File "/venv/lib/python3.6/site-packages/pip/_vendor/msgpack/__init__.py", line 35, in packb
    return Packer(**kwargs).pack(o)
  File "/venv/lib/python3.6/site-packages/pip/_vendor/msgpack/fallback.py", line 936, in pack
    self._pack(obj)
  File "/venv/lib/python3.6/site-packages/pip/_vendor/msgpack/fallback.py", line 920, in _pack
    len(obj), dict_iteritems(obj), nest_limit - 1
  File "/venv/lib/python3.6/site-packages/pip/_vendor/msgpack/fallback.py", line 1021, in _pack_map_pairs
    self._pack(v, nest_limit - 1)
  File "/venv/lib/python3.6/site-packages/pip/_vendor/msgpack/fallback.py", line 920, in _pack
    len(obj), dict_iteritems(obj), nest_limit - 1
  File "/venv/lib/python3.6/site-packages/pip/_vendor/msgpack/fallback.py", line 1021, in _pack_map_pairs
    self._pack(v, nest_limit - 1)
  File "/venv/lib/python3.6/site-packages/pip/_vendor/msgpack/fallback.py", line 865, in _pack
    return self._buffer.write(obj)
MemoryError
The command '/bin/sh -c . /venv/bin/activate && pip install jupyter jupytext matplotlib tensorflow' returned a non-zero code: 2