Immutable solution version
AttributeError: 'NoneType' object has no attribute 'get'
Complete solution
This is almost always a client/server version mismatch. (Chroma; via gh:chroma-core/chroma#2510)
AttributeError: 'NoneType' object has no attribute 'get'
What happened
Issue chroma-core/chroma#2510 (closed, 19 comments): ### What happened? I have installed latest version of chroma 0.5.4 using pip in python language I am connecting to my chroma set up in an AWS EC2 instance through docker installation method. After creating a connection through chroma HttpClient using the host address and port name I tried to get list of all my connections using the below code: collections= chromaclient.listcollections() and it is throwing the following error AttributeError: 'NoneType' object has no attribute 'get' I downgraded my chroma to version 0.5.3 and it was working fine Seems like an issue with newer version of 0.5.
What works
This is almost always a client/server version mismatch. Check which Chroma server you are talking to and install the matching client version, or upgrade both together. Mixing a new client with an old server (or vice versa) is what produces the NoneType error.
Caveats
This comes from one real issue thread (gh:chroma-core/chroma#2510); it is the verified fix or approach from that thread, not a general manual. Check your version of Chroma first , maintainers often fix the underlying bug in a later release, and the thread may predate it.
Evidence
Issue gh:chroma-core/chroma#2510 asked: Issue chroma-core/chroma#2510 (closed, 19 comments): ### What happened? I have installed latest version of chroma 0.5.4 using pip in python language I am connecting to my chroma set up in an AWS EC2 instance through docker installation method. After creating a connection through chroma HttpClient using the host address and port name I tried to get list of all my connections using the below code: collections= chromaclient.listcollections() and it is throwing the following error AttributeError: 'NoneType' object has no attribute 'get' I downgraded my chroma to version 0.5.3 and it was working fine Seems like an issue with newer version of 0.5. The verified answer from the thread: This is almost always a client/server version mismatch. Check which Chroma server you are talking to and install the matching client version, or upgrade both together. Mixing a new client with an old server (or vice versa) is what produces the NoneType error. Source: https://github.com/chroma-core/chroma/issues/2510
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_i1qXe1X6Gn-H6GVHj7SbXQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">AttributeError: 'NoneType' object has no attribute 'get' <span>— Vectle</span></a>