assafelovic / gpt-researcher

LLM based autonomous agent that conducts local and web research on any topic and generates a comprehensive report with citations.
https://gptr.dev
Apache License 2.0
15.04k stars 2.02k forks source link

need to import logging into bing.py #947

Closed sdisaacson closed 4 weeks ago

sdisaacson commented 1 month ago

hola!

Just noticed that bing.py needed an "import logging" statement.

This is what I was getting:

python main.py Traceback (most recent call last): File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/main.py", line 5, in from backend.server.server import app File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/backend/init.py", line 1, in from multi_agents import agents File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/multi_agents/init.py", line 3, in from .agents import ( File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/multi_agents/agents/init.py", line 1, in from .researcher import ResearchAgent File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/multi_agents/agents/researcher.py", line 1, in from gpt_researcher import GPTResearcher File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/gpt_researcher/init.py", line 1, in from .agent import GPTResearcher File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/gpt_researcher/agent.py", line 4, in from .config import Config File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/gpt_researcher/config/init.py", line 1, in from .config import Config File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/gpt_researcher/config/config.py", line 7, in from ..retrievers.utils import get_all_retriever_names File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/gpt_researcher/retrievers/init.py", line 2, in from .bing.bing import BingSearch File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/gpt_researcher/retrievers/bing/bing.py", line 9, in class BingSearch(): File "/Users/isaacson/Projects/gpt-researcher/gpt-researcher/gpt_researcher/retrievers/bing/bing.py", line 13, in BingSearch logger = logging.getLogger(name) ^^^^^^^ NameError: name 'logging' is not defined

assafelovic commented 4 weeks ago

Hey @sdisaacson thanks, you have a lot of other changes here. Fixed the bing issue and closing this