AshwinPathi / claude-api-py

Unofficial Python API for Anthropic's Claude LLM
https://pypi.org/project/claude-api-py/
MIT License
108 stars 11 forks source link

TypeError: 'NoneType' object is not subscriptable #27

Closed xanthexu closed 4 months ago

xanthexu commented 4 months ago

I am repeating the process in example.py. But it report with the error like this :

TypeError                                 Traceback (most recent call last)
Cell In[3], line 117
    112     time.sleep(1)
    116 if __name__ == '__main__':
--> 117     main()

Cell In[3], line 32, in main()
     29 print(organizations)
     31 # Wraps the client api and organization into a single organization.
---> 32 claude_obj = claude_wrapper.ClaudeWrapper(client, organizations[0]['uuid']) # type: ignore
     34 # We can list our existing conversations here.
     35 conversations = claude_obj.get_conversations()

TypeError: 'NoneType' object is not subscriptable

I checked organization object . It is None.

image