Skip to content

Following the INSTALL.rst docker-compose fails #112

Open
@jderdak

Description

I tried building the project while following the instructions in the INSTALL.rst.

When executing

$ docker-compose up -d

I get the following error:

  File "/opt/lib/python2.7/site-packages/pip/_internal/locations.py", line 107 
  assert not (user and prefix), f"user={user} prefix={prefix}"  
                                                             ^SyntaxError: invalid syntax  

....
....
....

Traceback (most recent call last):                                                                                                                                                                         │··································
  File "/opt/bin/pip", line 9, in <module>                                                                                                                                                                 │··································
    load_entry_point('pip==21.0', 'console_scripts', 'pip')()                                                                                                                                              │··································
  File "/opt/local/lib/python2.7/site-packages/pkg_resources.py", line 353, in load_entry_point                                                                                                            │··································
    return get_distribution(dist).load_entry_point(group, name)                                                                                                                                            │··································
  File "/opt/local/lib/python2.7/site-packages/pkg_resources.py", line 2321, in load_entry_point                                                                                                           │··································
    return ep.load()                                                                                                                                                                                       │··································
  File "/opt/local/lib/python2.7/site-packages/pkg_resources.py", line 2048, in load                                                                                                                       │··································
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])                                                                                                                                │··································
  File "/opt/local/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 60                                                                                                                         │··································
    sys.stderr.write(f"ERROR: {exc}")                                                                                                                                                                      │··································
                                   ^                                                                                                                                                                       │··································
SyntaxError: invalid syntax                                                                                                                                                                                │··································
The command '/bin/sh -c source /opt/bin/activate     && pip install --upgrade pip     && pip install --upgrade setuptools     && pip install pycparser==2.13     && pip install Cython==0.21.2     && pip i│··································
nstall -r requirements.txt' returned a non-zero code: 1                                                                                                                                                    │··································
ERROR: Service 'backend' failed to build                                                                                                                                                                   │··································
root@ubuntu-poliscoops:~/poliscoops/docker#       

System specs of the host system were:

Date: 25.01.21
Freshly setup Ubuntu 20.04
docker-compose 1.28.0
docker 19.03.8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions