Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
praveen9354 opened this issue Nov 26, 2024 · 1 comment
Open

Comments

@praveen9354
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant