I am trying to run this gpt-researcher in my local but facing some issue #611
Replies: 3 comments 2 replies
-
Welcome @YamunaShivani, You might have an easier path via Docker Desktop: Step 1: Install Docker Desktop Step 2: Walk through this Tutorial Another requirement I should have mentioned: the path to your files should be within the code of this project. That will enable you to skip the complexity of mounting stuff into Docker |
Beta Was this translation helpful? Give feedback.
-
Hi, This --> export DOC_PATH=./my_docs ,was doing from terminal and uploaded accepted file formats only still getting this ERROR: Exception in ASGI application The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
AI is telling me this error is "due to missing or improperly configured SSL certificates on your machine" - what kind of OS are you using? You'll need to research how to properly configure SSL on your specific OS (full error below) Regarding your requirement of "making changes if needed" - you can still do so if you run the Python server via Docker - you can start and restart the Docker service every time you make changes to the Python code by closing the CLI & then re-running Full AI answer below if you'd like to explore how to run without Docker:
|
Beta Was this translation helpful? Give feedback.
-
RROR: Exception in ASGI application
Traceback (most recent call last):
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/openai/_base_client.py", line 1522, in _request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpx/_client.py", line 1661, in send
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpx/_client.py", line 1689, in _send_handling_auth
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpx/_client.py", line 1763, in _send_single_request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpx/_transports/default.py", line 373, in handle_async_request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 99, in handle_async_request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 76, in handle_async_request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 154, in _connect
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 80, in start_tls
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 71, in start_tls
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/anyio/streams/tls.py", line 132, in wrap
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/anyio/streams/tls.py", line 140, in _call_sslobject_method
File /opt/homebrew/Cellar/[email protected]/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py, line 979, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 244, in run_asgi
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in call
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in call
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/applications.py", line 123, in call
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 151, in call
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in call
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/routing.py", line 756, in call
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/routing.py", line 373, in handle
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/routing.py", line 96, in app
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/starlette/routing.py", line 94, in app
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/fastapi/routing.py", line 348, in app
File "/Users/a/Desktop/New/gpt-researcher/backend/server.py", line 53, in websocket_endpoint
File "/Users/a/Desktop/New/gpt-researcher/backend/websocket_manager.py", line 57, in start_streaming
File "/Users/a/Desktop/New/gpt-researcher/backend/websocket_manager.py", line 75, in run_agent
File "/Users/a/Desktop/New/gpt-researcher/backend/report_type/basic_report/basic_report.py", line 18, in run
File "/Users/a/Desktop/New/gpt-researcher/gpt_researcher/master/agent.py", line 93, in conduct_research
File "/Users/a/Desktop/New/gpt-researcher/gpt_researcher/master/agent.py", line 174, in __get_context_by_search
File "/Users/a/Desktop/New/gpt-researcher/gpt_researcher/master/actions.py", line 104, in get_sub_queries
File "/Users/a/Desktop/New/gpt-researcher/gpt_researcher/utils/llm.py", line 93, in create_chat_completion
File "/Users/a/Desktop/New/gpt-researcher/gpt_researcher/llm_provider/openai/openai.py", line 63, in get_chat_response
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 191, in ainvoke
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 609, in agenerate_prompt
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 569, in agenerate
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 754, in _agenerate_with_cache
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/langchain_openai/chat_models/base.py", line 657, in _agenerate
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 1214, in create
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/openai/_base_client.py", line 1790, in post
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/openai/_base_client.py", line 1493, in request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/openai/_base_client.py", line 1546, in _request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/openai/_base_client.py", line 1615, in _retry_request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/openai/_base_client.py", line 1546, in _request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/openai/_base_client.py", line 1615, in _retry_request
File "/Users/a/Desktop/New/gpt-researcher/myenv/lib/python3.11/site-packages/openai/_base_client.py", line 1556, in _request
openai.APIConnectionError: Connection error.
INFO: connection closed
zsh: killed python -m uvicorn main:app --reload
Beta Was this translation helpful? Give feedback.
All reactions