lynx@lynx:~/PentestGPT/pentestgpt$ pentestgpt-connection
Traceback (most recent call last):
File "/usr/local/bin/pentestgpt", line 8, in
sys.exit(main())
^^^^^^
File "/home/lynx/.local/lib/python3.11/site-packages/pentestgpt/main.py", line 54, in main
pentestGPTHandler = pentestGPT(
^^^^^^^^^^^
File "/home/lynx/.local/lib/python3.11/site-packages/pentestgpt/utils/pentest_gpt.py", line 80, in init
reasoning_model_object = dynamic_import(
^^^^^^^^^^^^^^^
File "/home/lynx/.local/lib/python3.11/site-packages/pentestgpt/utils/APIs/module_import.py", line 181, in dynamic_import
LLM_module = importlib.import_module(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/lynx/.local/lib/python3.11/site-packages/pentestgpt/utils/APIs/chatgpt_api.py", line 10, in
from langfuse.model import InitialGeneration, Usage
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/init.py", line 1, in
from .client import Langfuse
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/client.py", line 11, in
from langfuse.api.client import FintoLangfuse
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/init.py", line 3, in
from .resources import (
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/resources/init.py", line 3, in
from . import (
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/resources/commons/init.py", line 3, in
from .types import (
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/resources/commons/types/init.py", line 3, in
from .create_event_request import CreateEventRequest
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/resources/commons/types/create_event_request.py", line 6, in
from ....core.datetime_utils import serialize_datetime
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/core/init.py", line 6, in
from .jsonable_encoder import jsonable_encoder
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/core/jsonable_encoder.py", line 39, in
encoders_by_class_tuples = generate_encoders_by_class_tuples(pydantic.json.ENCODERS_BY_TYPE)
^^^^^^^^^^^^^
AttributeError: module 'pydantic.v1' has no attribute 'json'. Did you mean: 'Json'?
lynx@lynx:~/PentestGPT/pentestgpt$ pentestgpt-connection Traceback (most recent call last): File "/usr/local/bin/pentestgpt", line 8, in
sys.exit(main())
^^^^^^
File "/home/lynx/.local/lib/python3.11/site-packages/pentestgpt/main.py", line 54, in main
pentestGPTHandler = pentestGPT(
^^^^^^^^^^^
File "/home/lynx/.local/lib/python3.11/site-packages/pentestgpt/utils/pentest_gpt.py", line 80, in init
reasoning_model_object = dynamic_import(
^^^^^^^^^^^^^^^
File "/home/lynx/.local/lib/python3.11/site-packages/pentestgpt/utils/APIs/module_import.py", line 181, in dynamic_import
LLM_module = importlib.import_module(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/lynx/.local/lib/python3.11/site-packages/pentestgpt/utils/APIs/chatgpt_api.py", line 10, in
from langfuse.model import InitialGeneration, Usage
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/init.py", line 1, in
from .client import Langfuse
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/client.py", line 11, in
from langfuse.api.client import FintoLangfuse
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/init.py", line 3, in
from .resources import (
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/resources/init.py", line 3, in
from . import (
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/resources/commons/init.py", line 3, in
from .types import (
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/resources/commons/types/init.py", line 3, in
from .create_event_request import CreateEventRequest
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/resources/commons/types/create_event_request.py", line 6, in
from ....core.datetime_utils import serialize_datetime
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/core/init.py", line 6, in
from .jsonable_encoder import jsonable_encoder
File "/home/lynx/.local/lib/python3.11/site-packages/langfuse/api/core/jsonable_encoder.py", line 39, in
encoders_by_class_tuples = generate_encoders_by_class_tuples(pydantic.json.ENCODERS_BY_TYPE)
^^^^^^^^^^^^^
AttributeError: module 'pydantic.v1' has no attribute 'json'. Did you mean: 'Json'?