Skip to content

"import weave" has an issue #632

@WYJGR

Description

@WYJGR

import uuid
import weave
from langchain_core.messages import HumanMessage, SystemMessage
from langchain_core.tools import tool
from langgraph.prebuilt import create_react_agent
from art.langgraph import init_chat_model
import art

if os.getenv("WANDB_API_KEY", ""):
weave.init(model.project, settings={"print_call_link": False})


Using Python 3.12.13 environment at: /usr
Resolved 53 packages in 42ms
Installed 2 packages in 11ms

  • gql==3.4.1
  • weave==0.52.35

ImportError Traceback (most recent call last)
/tmp/ipykernel_1264/537737206.py in <cell line: 0>()
1 import uuid
----> 2 import weave
3 from langchain_core.messages import HumanMessage, SystemMessage
4 from langchain_core.tools import tool
5 from langgraph.prebuilt import create_react_agent

4 frames
/usr/local/lib/python3.12/dist-packages/weave/wandb_interface/project_creator.py in
8
9 import httpx
---> 10 from gql.transport.exceptions import (
11 TransportClosed,
12 TransportConnectionFailed,

ImportError: cannot import name 'TransportConnectionFailed' from 'gql.transport.exceptions' (/usr/local/lib/python3.12/dist-packages/gql/transport/exceptions.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions