Skip to content

Cannot instantiate Client #15

Description

@stanmoon

Description

When trying to instantiate a client:

`from ccapi import Client

client = Client()`

I got the following error:

`---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in <cell line: 2>()
1 from ccapi import Client
----> 2 client = Client()

/usr/local/lib/python3.10/dist-packages/ccapi/api/client.py in init(self, base_url, proxies, test, cache_timeout)
100 "following format { protocol: ip }."))
101
--> 102 if isinstance(proxies, collections.Mapping):
103 proxies = [proxies]
104

AttributeError: module 'collections' has no attribute 'Mapping'`

I'm using Python 3.10.12 on a google colab environment.

Screenshot

screenshot

Console errors

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions