h2oai / h2ogpt

Private chat with local GPT with document, images, video, etc. 100% private, Apache 2.0. Supports oLLaMa, Mixtral, llama.cpp, and more. Demo: https://gpt.h2o.ai/ https://codellama.h2o.ai/

Home Page:http://h2o.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mac OS automatic installation runs errors

antoninadert opened this issue · comments

I tried to install but ran certificate errors and plenty other errors :

h2ogpt-osx-m1-gpu ; exit;
__file__: /var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/mac_run_app.py
PYTHONPATH:  /var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF
Path_1:  /var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF
NLTK_DATA:  /var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/nltk_data
PATH:  /miniconda3/bin:/miniconda3/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/poppler/bin/:/var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/poppler/lib/:/var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/Tesseract-OCR
Path_3:  /var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/h2ogpt/src
Path_3:  /var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/h2ogpt/iterators
Path_3:  /var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/h2ogpt/gradio_utils
Path_3:  /var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/h2ogpt/metrics
Path_3:  /var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/h2ogpt/models
Path_3:  /var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/h2ogpt/.

-----

WeasyPrint could not import some external libraries. Please carefully follow the installation steps before reporting an issue:
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#installation
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#troubleshooting 

-----


-----

WeasyPrint could not import some external libraries. Please carefully follow the installation steps before reporting an issue:
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#installation
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#troubleshooting 

-----

fatal: not a git repository (or any of the parent directories): .git
Must install DocTR and LangChain installed if enabled DocTR, disabling
Traceback (most recent call last):
  File "urllib3/connectionpool.py", line 468, in _make_request
  File "urllib3/connectionpool.py", line 1097, in _validate_conn
  File "urllib3/connection.py", line 642, in connect
  File "urllib3/connection.py", line 783, in _ssl_wrap_socket_and_match_hostname
  File "urllib3/util/ssl_.py", line 471, in ssl_wrap_socket
  File "urllib3/util/ssl_.py", line 515, in _ssl_wrap_socket_impl
  File "ssl.py", line 513, in wrap_socket
  File "ssl.py", line 1104, in _create
  File "ssl.py", line 1375, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "urllib3/connectionpool.py", line 791, in urlopen
  File "urllib3/connectionpool.py", line 492, in _make_request
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "requests/adapters.py", line 486, in send
  File "urllib3/connectionpool.py", line 845, in urlopen
  File "urllib3/util/retry.py", line 515, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /openai/whisper-base.en/resolve/main/config.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "mac_run_app.py", line 47, in <module>
  File "mac_run_app.py", line 34, in main
  File "/var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/h2ogpt/./generate.py", line 16, in entrypoint_main
    H2O_Fire(main)
  File "/var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/h2ogpt/./src/utils.py", line 69, in H2O_Fire
    fire.Fire(component=component, command=args)
  File "fire/core.py", line 141, in Fire
  File "fire/core.py", line 475, in _Fire
  File "fire/core.py", line 691, in _CallAndUpdateTrace
  File "/var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/h2ogpt/./src/gen.py", line 1837, in main
    transcriber = get_transcriber(model=stt_model,
  File "/var/folders/lw/ygk6p9h16x1_2h3ch6f7_rmw0000gp/T/_MEIcH52BF/h2ogpt/./src/stt.py", line 17, in get_transcriber
    transcriber = pipeline("automatic-speech-recognition", model=model, device_map=device_map)
  File "transformers/pipelines/__init__.py", line 779, in pipeline
    resolved_config_file = cached_file(
  File "transformers/utils/hub.py", line 398, in cached_file
    resolved_file = hf_hub_download(
  File "huggingface_hub/utils/_validators.py", line 118, in _inner_fn
  File "huggingface_hub/file_download.py", line 1247, in hf_hub_download
  File "huggingface_hub/utils/_validators.py", line 118, in _inner_fn
  File "huggingface_hub/file_download.py", line 1624, in get_hf_file_metadata
  File "huggingface_hub/file_download.py", line 402, in _request_wrapper
  File "huggingface_hub/file_download.py", line 425, in _request_wrapper
  File "requests/sessions.py", line 589, in request
  File "requests/sessions.py", line 703, in send
  File "huggingface_hub/utils/_http.py", line 63, in send
  File "requests/adapters.py", line 517, in send
requests.exceptions.SSLError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /openai/whisper-base.en/resolve/main/config.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)')))"), '(Request ID: 36f49778-9375-4409-9eed-0b659d5d5aef)')
[27174] Failed to execute script 'mac_run_app' due to unhandled exception!

On a Mac OS with M2 pro, running on Sonoma 14.4.1

@Mathanraj-Sharma Please take a look at the mac specific issues.

I think on MAC on has to setup SSL properly, I've seen people discuss before?

It is due to SSL interception of netskope agent as per my enterprise's security policy. Solution should not be on H2ogpt side, so we can close this issue I guess.