First time here? Checkout the FAQ!
x
0 votes
by (220 points)
I am trying to install carputilsGUI using docker, by folloing the instructions.(https://www.youtube.com/watch?v=Hdk6MjLrRdg)

BUT ERROR OCCURS

#9 34.06 hint: See above for details.

------

executor failed running [/bin/sh -c pip install --no-cache-dir --upgrade pip     && pip install --no-cache-dir -r requirements.txt]: exit code: 1

ERROR: Service 'app' failed to build : Build failed

2 Answers

0 votes
by (19.1k points)
selected by
 
Best answer

Answer by Dolors Serra, the lead developer for carputilsGUI

The best way to install CarputilsGUI without problems is by downloading the images already built. On the installation page we already changed it the last time we spoke.
Tell him to follow the instructions in the Quick Start (https://opencarp.org/documentation/carputilsgui#quick-start). And with only two files it will download the built images, to avoid the problem he has. 
I just tried the installation on Windows 10 and Docker Desktop 4.11.1, with the Quick start instructions, and it runs the application fine.
by (220 points)
It works, even its easiest way to install. Thank you
but still need some work on few examples like (03D Conduction Velocity Restitution)

Thank you
by (19.1k points)
Good to hear!
As all openCARP activities, this project welcomes contributions.

https://opencarp.org/community/contribute
0 votes
by (19.1k points)
Please provide more details in order to reproduce the problem.
by (220 points)
sir, i just followed the every single step of instructions in official video (https://www.youtube.com/watch?v=Hdk6MjLrRdg)

during installations this error occurs.
unfortunately i have just this info, already provided in post .
by (19.1k points)
The error says "see above for details". Without these details it will be hard to help in any way.
by (220 points)
=> ERROR [5/9] RUN pip install --no-cache-dir --upgrade pip     && pip install --no-cache-dir -r requirements.t  18.5s
------
 > [5/9] RUN pip install --no-cache-dir --upgrade pip     && pip install --no-cache-dir -r requirements.txt:
#9 0.884 Requirement already satisfied: pip in /usr/local/lib/python3.8/dist-packages (22.2.2)
#9 1.517 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#9 2.625 Collecting Click==7.0
#9 3.170   Downloading Click-7.0-py2.py3-none-any.whl (81 kB)
#9 3.315      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.3/81.3 kB 525.5 kB/s eta 0:00:00
#9 3.426 Collecting cycler==0.10.0
#9 3.544   Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
#9 3.663 Collecting itsdangerous==1.1.0
#9 3.781   Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
#9 3.917 Collecting Jinja2==2.10.3
#9 4.035   Downloading Jinja2-2.10.3-py2.py3-none-any.whl (125 kB)
#9 4.150      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.3/125.3 kB 1.1 MB/s eta 0:00:00
#9 4.349 Collecting kiwisolver==1.1.0
#9 4.463   Downloading kiwisolver-1.1.0-cp38-cp38-manylinux1_x86_64.whl (91 kB)
#9 4.488      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.7/91.7 kB 3.9 MB/s eta 0:00:00
#9 4.660 Collecting MarkupSafe==1.1.1
#9 4.773   Downloading MarkupSafe-1.1.1-cp38-cp38-manylinux2010_x86_64.whl (32 kB)
#9 4.916 Collecting Werkzeug==0.16.0
#9 5.030   Downloading Werkzeug-0.16.0-py2.py3-none-any.whl (327 kB)
#9 5.161      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 327.3/327.3 kB 2.5 MB/s eta 0:00:00
#9 5.285 Collecting Flask==1.1.1
#9 5.397   Downloading Flask-1.1.1-py2.py3-none-any.whl (94 kB)
#9 5.413      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 94.5/94.5 kB 6.6 MB/s eta 0:00:00
#9 5.892 Collecting SQLAlchemy==1.2.14
#9 6.006   Downloading SQLAlchemy-1.2.14.tar.gz (5.7 MB)
#9 13.54      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 750.3 kB/s eta 0:00:00
#9 13.86   Preparing metadata (setup.py): started
#9 14.18   Preparing metadata (setup.py): finished with status 'done'
#9 14.30 Collecting flask_marshmallow==0.10.1
#9 14.41   Downloading flask_marshmallow-0.10.1-py2.py3-none-any.whl (9.7 kB)
#9 14.58 Collecting marshmallow==2.17.0
#9 14.69   Downloading marshmallow-2.17.0-py2.py3-none-any.whl (49 kB)
#9 14.73      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.8/49.8 kB 1.2 MB/s eta 0:00:00
#9 14.86 Collecting marshmallow_sqlalchemy==0.15.0
#9 14.97   Downloading marshmallow_sqlalchemy-0.15.0-py2.py3-none-any.whl (11 kB)
#9 15.10 Collecting Flask_Cors==3.0.7
#9 15.21   Downloading Flask_Cors-3.0.7-py2.py3-none-any.whl (13 kB)
#9 15.34 Collecting Flask_SQLAlchemy==2.3.2
#9 15.45   Downloading Flask_SQLAlchemy-2.3.2-py2.py3-none-any.whl (16 kB)
#9 15.58 Collecting uWSGI==2.0.17.1
#9 15.70   Downloading uwsgi-2.0.17.1.tar.gz (800 kB)
#9 16.60      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 800.2/800.2 kB 885.9 kB/s eta 0:00:00
#9 16.72   Preparing metadata (setup.py): started
#9 16.91   Preparing metadata (setup.py): finished with status 'done'
#9 17.08 Collecting psycopg2==2.7.6.1
#9 17.20   Downloading psycopg2-2.7.6.1.tar.gz (427 kB)
#9 17.74      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 427.4/427.4 kB 785.8 kB/s eta 0:00:00
#9 17.78   Preparing metadata (setup.py): started
#9 17.92   Preparing metadata (setup.py): finished with status 'error'
#9 17.93   error: subprocess-exited-with-error
#9 17.93
#9 17.93   × python setup.py egg_info did not run successfully.
#9 17.93   │ exit code: 1
#9 17.93   ╰─> [28 lines of output]
#9 17.93       /usr/local/lib/python3.8/dist-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
#9 17.93         warnings.warn(msg, warning_class)
#9 17.93       running egg_info
#9 17.93       creating /tmp/pip-pip-egg-info-6nr5zik2/psycopg2.egg-info
#9 17.93       writing /tmp/pip-pip-egg-info-6nr5zik2/psycopg2.egg-info/PKG-INFO
#9 17.93       writing dependency_links to /tmp/pip-pip-egg-info-6nr5zik2/psycopg2.egg-info/dependency_links.txt
#9 17.93       writing top-level names to /tmp/pip-pip-egg-info-6nr5zik2/psycopg2.egg-info/top_level.txt
#9 17.93       writing manifest file '/tmp/pip-pip-egg-info-6nr5zik2/psycopg2.egg-info/SOURCES.txt'
#9 17.93       /usr/local/lib/python3.8/dist-packages/setuptools/command/egg_info.py:632: SetuptoolsDeprecationWarning: Custom 'build_py' does not implement 'get_data_files_without_manifest'.
#9 17.93       Please extend command classes from setuptools instead of distutils.
#9 17.93         warnings.warn(
#9 17.93
#9 17.93       Error: pg_config executable not found.
#9 17.93
#9 17.93       pg_config is required to build psycopg2 from source.  Please add the directory
#9 17.93       containing pg_config to the $PATH or specify the full executable path with the
#9 17.93       option:
#9 17.93
#9 17.93           python setup.py build_ext --pg-config /path/to/pg_config build ...
#9 17.93
#9 17.93       or with the pg_config option in 'setup.cfg'.
#9 17.93
#9 17.93       If you prefer to avoid building psycopg2 from source, please install the PyPI
#9 17.93       'psycopg2-binary' package instead.
#9 17.93
#9 17.93       For further information please check the 'doc/src/install.rst' file (also at
#9 17.93       <http://initd.org/psycopg/docs/install.html>).
#9 17.93
#9 17.93       [end of output]
#9 17.93
#9 17.93   note: This error originates from a subprocess, and is likely not a problem with pip.
#9 17.93 error: metadata-generation-failed
#9 17.93
#9 17.93 × Encountered error while generating package metadata.
#9 17.93 ╰─> See above for output.
#9 17.93
#9 17.93 note: This is an issue with the package mentioned above, not pip.
#9 17.93 hint: See above for details.
------
executor failed running [/bin/sh -c pip install --no-cache-dir --upgrade pip     && pip install --no-cache-dir -r requirements.txt]: exit code: 1
ERROR: Service 'app' failed to build : Build failed
by (19.1k points)
It seems psycopg2 cannot be installed properly.
We'll have to see if we find someone who can spend time on investigating this issue if you cannot solve it yourself.
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
...