-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
deep research docker install error #1190
Comments
Welcome @Fangziyang0910 We merged 2 fixes - can you pull master, try again and let me know if the issue persists? |
I've tried many times, and the problem still exists. |
k, digging in now. |
In master@863c4b6, there is an error when start the docker (by docker compose): next.js report error: Failed to compile: https://nextjs.org/docs/messages/module-not-found related to file below:
|
Hey @galenyip, That dependency is in the package.json, so I assume it should work when you run Try to stop and remove your gptr-nextjs container and then run the docker compose command again |
You can pull this branch and visit localhost:3000 P.S. the PR is pending merging into master Here's how the pip package runs the deep research flow: researcher = GPTResearcher(
query="your query",
report_type="deep"
) |
localhost:3000 doesn't work for me....and the 8000 one is still not working @ElishaKay With 3000, I see |
I found the entrance to deep research, but a new problem has emerged。 i set here is the terminal output log gpt-researcher-1 | 2025-02-24 15:39:24,497 - gpt_researcher.skills.deep_research - ERROR - Error processing query '"Hybrid LLM and Traditional Optimization: Automated Problem Formulation and Adaptive Dual-Role Strategies Across Diverse Domains"': Cannot call "send" once a close message has been sent. |
Just do a My Environment:
|
Describe the bug
docker install error
To Reproduce
gpt-researcher-1 | File "/usr/src/app/multi_agents/agents/researcher.py", line 1, in
gpt-researcher-1 | from gpt_researcher import GPTResearcher
gpt-researcher-1 | File "/usr/src/app/gpt_researcher/init.py", line 1, in
gpt-researcher-1 | from .agent import GPTResearcher
gpt-researcher-1 | File "/usr/src/app/gpt_researcher/agent.py", line 16, in
gpt-researcher-1 | from .skills.deep_research import DeepResearchSkill
gpt-researcher-1 | File "/usr/src/app/gpt_researcher/skills/deep_research.py", line 301
gpt-researcher-1 | """
gpt-researcher-1 | ^
gpt-researcher-1 | SyntaxError: f-string expression part cannot include a backslash
gpt-researcher-1 | Traceback (most recent call last):
gpt-researcher-1 | File "/usr/local/bin/uvicorn", line 8, in
gpt-researcher-1 | sys.exit(main())
gpt-researcher-1 | ^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1161, in call
gpt-researcher-1 | return self.main(*args, **kwargs)
gpt-researcher-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
gpt-researcher-1 | rv = self.invoke(ctx)
gpt-researcher-1 | ^^^^^^^^^^^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
gpt-researcher-1 | return ctx.invoke(self.callback, **ctx.params)
gpt-researcher-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
gpt-researcher-1 | return __callback(*args, **kwargs)
gpt-researcher-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
gpt-researcher-1 | run(
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
gpt-researcher-1 | server.run()
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
gpt-researcher-1 | return asyncio.run(self.serve(sockets=sockets))
gpt-researcher-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
gpt-researcher-1 | return runner.run(main)
gpt-researcher-1 | ^^^^^^^^^^^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
gpt-researcher-1 | return self._loop.run_until_complete(task)
gpt-researcher-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
gpt-researcher-1 | return future.result()
gpt-researcher-1 | ^^^^^^^^^^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 70, in serve
gpt-researcher-1 | await self._serve(sockets)
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 77, in _serve
gpt-researcher-1 | config.load()
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 435, in load
gpt-researcher-1 | self.loaded_app = import_from_string(self.app)
gpt-researcher-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string
gpt-researcher-1 | module = importlib.import_module(module_str)
gpt-researcher-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gpt-researcher-1 | File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
gpt-researcher-1 | return _bootstrap._gcd_import(name[level:], package, level)
gpt-researcher-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gpt-researcher-1 | File "", line 1204, in _gcd_import
gpt-researcher-1 | File "", line 1176, in _find_and_load
gpt-researcher-1 | File "", line 1147, in _find_and_load_unlocked
gpt-researcher-1 | File "", line 690, in _load_unlocked
gpt-researcher-1 | File "", line 940, in exec_module
gpt-researcher-1 | File "", line 241, in _call_with_frames_removed
gpt-researcher-1 | File "/usr/src/app/main.py", line 31, in
gpt-researcher-1 | from backend.server.server import app
gpt-researcher-1 | File "/usr/src/app/backend/init.py", line 1, in
gpt-researcher-1 | from multi_agents import agents
gpt-researcher-1 | File "/usr/src/app/multi_agents/init.py", line 3, in
gpt-researcher-1 | from .agents import (
gpt-researcher-1 | File "/usr/src/app/multi_agents/agents/init.py", line 1, in
gpt-researcher-1 | from .researcher import ResearchAgent
gpt-researcher-1 | File "/usr/src/app/multi_agents/agents/researcher.py", line 1, in
gpt-researcher-1 | from gpt_researcher import GPTResearcher
gpt-researcher-1 | File "/usr/src/app/gpt_researcher/init.py", line 1, in
gpt-researcher-1 | from .agent import GPTResearcher
gpt-researcher-1 | File "/usr/src/app/gpt_researcher/agent.py", line 16, in
gpt-researcher-1 | from .skills.deep_research import DeepResearchSkill
gpt-researcher-1 | File "/usr/src/app/gpt_researcher/skills/deep_research.py", line 301
gpt-researcher-1 | """
gpt-researcher-1 | ^
gpt-researcher-1 | SyntaxError: f-string expression part cannot include a backslash
gpt-researcher-1 exited with code 1
The text was updated successfully, but these errors were encountered: