Open jugpoi1 opened 1 year ago
I'm not sure but it seems like platform issue (arm64).
But, watching this https://github.com/opencve/opencve-docker/pull/38 ... did you try building with --no-cache and pulling the latest base image?
FWIW, I had this problem and can confirm that I experience the error on my M1 mac.
When I
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker compose build
As suggested by this comment on 37, everything works fine.
Might be nice to drop this in the docker docs to prevent additional issues being opened? (Us apple silicon users are pretty used to docker arch fails and I begin to expect them as the cause whenever I have a problem, but always nice to have it called out)
Expected Behavior
Go to the next step docker-compose up -d postgres redis webserver celery_worker
Actual Behavior
docker compose was unsuccessful due to Error: pg_config executable not found.
Despite psycopg2 was installed and version 2.9.6.
Steps to Reproduce the Problem
following Docker installation, reach and type below command $docker-compose build
Build will cease when it reaches Downloading psycopg2-binary-2.8.4.tar.gz. There will be an error as shown below
Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [35 lines of output] running egg_info writing psycopg2_binary.egg-info/PKG-INFO writing dependency_links to psycopg2_binary.egg-info/dependency_links.txt writing top-level names to psycopg2_binary.egg-info/top_level.txt /tmp/pip-build-env-5dzbzw8b/overlay/lib/python3.8/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in
setup.cfg
!!note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR:
Specifications
Screenshots (optional)