Skip to content
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

bug: TypeError: unsupported operand type(s) for |: 'google._upb._message.MessageMeta' and 'type'. #384

Open
lin-roger opened this issue Apr 16, 2024 · 0 comments

Comments

@lin-roger
Copy link

python ver: python 3.8
SDK ver: hatchet-sdk-0.22.0

run this

from hatchet_sdk import Hatchet
hatchet = Hatchet()

I get

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[2], line 1
----> 1 from hatchet_sdk import Hatchet
      2 hatchet = Hatchet()

File /usr/local/lib/python3.8/dist-packages/hatchet_sdk/__init__.py:1
----> 1 from .hatchet import Hatchet
      2 from .clients.listener import StepRunEventType
      3 from .worker import Worker

File /usr/local/lib/python3.8/dist-packages/hatchet_sdk/hatchet.py:2
      1 from hatchet_sdk.rate_limit import RateLimit
----> 2 from .client import ClientImpl, new_client 
      3 from typing import List
      4 import asyncio

File /usr/local/lib/python3.8/dist-packages/hatchet_sdk/client.py:6
      3 from typing import Any
      5 from hatchet_sdk.connection import new_conn
----> 6 from .clients.admin import AdminClientImpl, new_admin
      7 from .clients.events import EventClientImpl, new_event
      8 from .clients.dispatcher import DispatcherClientImpl, new_dispatcher

File /usr/local/lib/python3.8/dist-packages/hatchet_sdk/clients/admin.py:25
     22     child_index: Optional[int]
     23     child_key: Optional[str]
---> 25 class AdminClientImpl:
     26     def __init__(self, client: WorkflowServiceStub, token):
     27         self.client = client

File /usr/local/lib/python3.8/dist-packages/hatchet_sdk/clients/admin.py:30, in AdminClientImpl()
     27     self.client = client
     28     self.token = token
---> 30 def put_workflow(self, name: str, workflow: CreateWorkflowVersionOpts | WorkflowMeta, overrides: CreateWorkflowVersionOpts | None = None) -> WorkflowVersion:
     31     try:
     32         opts : CreateWorkflowVersionOpts

TypeError: unsupported operand type(s) for |: 'google._upb._message.MessageMeta' and 'type'"

I think whether to revise the minimum requirement of python version from >=3.8 to >=3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant