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

Installation problems on MacOS #14

Open
jasonkaplan79 opened this issue Dec 1, 2024 · 0 comments
Open

Installation problems on MacOS #14

jasonkaplan79 opened this issue Dec 1, 2024 · 0 comments
Assignees

Comments

@jasonkaplan79
Copy link

I am trying to install this on my Mac. Here are my constraints:

  • Hardware: Macbook Pro, Apple M2 Max running MacOS Sonoma (CPU, no GPU)
  • I do not want to use Docker or any Virtual Machines

For the Frontend:

  • How do I set NEXT_PUBLIC_API_SECRET_KEY and NEXT_PUBLIC_BACKEND_URL?
  • Can I disable Recaptcha, or am I required to fill out NEXT_PUBLIC_RECAPTCHA_SITE_KEY and RECAPTCHA_SECRET_KEY

For the backend:
These are the steps I followed (which failed on my Macbook Pro, Apple M2 Max running MacOS Sonoma. I do not want to use Docker or any Virtual Machines):

$ cd backend
$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting python-dotenv (from -r requirements.txt (line 1))
Downloading python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)
Collecting pydantic (from -r requirements.txt (line 2))
Downloading pydantic-2.10.2-py3-none-any.whl.metadata (170 kB)
Collecting bcrypt (from -r requirements.txt (line 3))
Downloading bcrypt-4.2.1-cp39-abi3-macosx_10_12_universal2.whl.metadata (9.8 kB)
Collecting cryptography (from -r requirements.txt (line 4))
Downloading cryptography-44.0.0-cp39-abi3-macosx_10_9_universal2.whl.metadata (5.7 kB)
Collecting fastapi (from -r requirements.txt (line 5))
Downloading fastapi-0.115.5-py3-none-any.whl.metadata (27 kB)
Collecting python-jose (from -r requirements.txt (line 6))
Downloading python_jose-3.3.0-py2.py3-none-any.whl.metadata (5.4 kB)
Collecting python-multipart (from -r requirements.txt (line 7))
Downloading python_multipart-0.0.19-py3-none-any.whl.metadata (1.8 kB)
Collecting SQLAlchemy (from -r requirements.txt (line 8))
Downloading SQLAlchemy-2.0.36-cp39-cp39-macosx_11_0_arm64.whl.metadata (9.7 kB)
Collecting uvicorn (from -r requirements.txt (line 9))
Downloading uvicorn-0.32.1-py3-none-any.whl.metadata (6.6 kB)
Collecting passlib (from -r requirements.txt (line 10))
Downloading passlib-1.7.4-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting langchain (from -r requirements.txt (line 11))
Downloading langchain-0.3.9-py3-none-any.whl.metadata (7.1 kB)
Collecting langchain-core (from -r requirements.txt (line 12))
Downloading langchain_core-0.3.21-py3-none-any.whl.metadata (6.3 kB)
Collecting langchain-community (from -r requirements.txt (line 13))
Downloading langchain_community-0.3.8-py3-none-any.whl.metadata (2.9 kB)
Collecting langchain-experimental (from -r requirements.txt (line 14))
Downloading langchain_experimental-0.3.3-py3-none-any.whl.metadata (1.7 kB)
Collecting langchain_openai (from -r requirements.txt (line 15))
Downloading langchain_openai-0.2.10-py3-none-any.whl.metadata (2.6 kB)
Collecting langchain_ollama (from -r requirements.txt (line 16))
Downloading langchain_ollama-0.2.0-py3-none-any.whl.metadata (1.8 kB)
Collecting langchain_chroma (from -r requirements.txt (line 17))
Downloading langchain_chroma-0.1.4-py3-none-any.whl.metadata (1.6 kB)
Collecting flashrank (from -r requirements.txt (line 18))
Downloading FlashRank-0.2.9-py3-none-any.whl.metadata (12 kB)
Collecting psycopg2 (from -r requirements.txt (line 19))
Downloading psycopg2-2.9.10.tar.gz (385 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running egg_info
creating /private/var/folders/29/4v06_6lx71s9bqycx42mlkf80000gn/T/pip-pip-egg-info-cldvstza/psycopg2.egg-info
writing /private/var/folders/29/4v06_6lx71s9bqycx42mlkf80000gn/T/pip-pip-egg-info-cldvstza/psycopg2.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/29/4v06_6lx71s9bqycx42mlkf80000gn/T/pip-pip-egg-info-cldvstza/psycopg2.egg-info/dependency_links.txt
writing top-level names to /private/var/folders/29/4v06_6lx71s9bqycx42mlkf80000gn/T/pip-pip-egg-info-cldvstza/psycopg2.egg-info/top_level.txt
writing manifest file '/private/var/folders/29/4v06_6lx71s9bqycx42mlkf80000gn/T/pip-pip-egg-info-cldvstza/psycopg2.egg-info/SOURCES.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: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@MODSetter MODSetter self-assigned this Dec 2, 2024
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

2 participants