matrix-org / synapse-s3-storage-provider

Synapse storage provider to fetch and store media in Amazon S3
Apache License 2.0
132 stars 36 forks source link

pip install synapse-s3-storage-provider failing on psycopg2-binary #119

Open praveen9354 opened 3 days ago

praveen9354 commented 3 days ago

pip install psycopg2-binary synapse-s3-storage-provider Requirement already satisfied: psycopg2-binary in ./env/lib/python3.12/site-packages (2.9.10) Collecting synapse-s3-storage-provider Using cached synapse_s3_storage_provider-1.5.0-py3-none-any.whl.metadata (4.3 kB) Requirement already satisfied: boto3<2.0,>=1.9.23 in ./env/lib/python3.12/site-packages (from synapse-s3-storage-provider) (1.35.68) Requirement already satisfied: botocore<2.0,>=1.31.62 in ./env/lib/python3.12/site-packages (from synapse-s3-storage-provider) (1.35.68) Requirement already satisfied: humanize<5.0,>=4.0 in ./env/lib/python3.12/site-packages (from synapse-s3-storage-provider) (4.11.0) Collecting psycopg2<3.0,>=2.7.5 (from synapse-s3-storage-provider) Using cached psycopg2-2.9.10.tar.gz (385 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [21 lines of output] running egg_info writing psycopg2.egg-info/PKG-INFO writing dependency_links to psycopg2.egg-info/dependency_links.txt writing top-level names to psycopg2.egg-info/top_level.txt

  Error: pg_config executable not found.

  pg_config is required to build psycopg2 from source.  Please add the directory
  containing pg_config to the $PATH or specify the full executable path with the
  option:

      python setup.py build_ext --pg-config /path/to/pg_config build ...

  or with the pg_config option in 'setup.cfg'.

  If you prefer to avoid building psycopg2 from source, please install the PyPI
  'psycopg2-binary' package instead.

  For further information please check the 'doc/src/install.rst' file (also at
  <https://www.psycopg.org/docs/install.html>).

  [end of output]

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.

praveen9354 commented 3 days ago

pip install --no-deps synapse-s3-storage-provider