ankeshanand / py-gfycat

A Python client for the Gfycat API.
MIT License
21 stars 9 forks source link

Cannot make instance from Class #10

Closed qrx closed 5 years ago

qrx commented 5 years ago
Exception has occurred: TypeError
__init__() takes 1 positional argument but 3 were given
line 8, in main
    client = GfycatClient(my_id, my_secret)

Code:

from gfycat.client import GfycatClient

def main():
    my_id = 'some_id'
    my_secret = 'some_secret'
    client = GfycatClient(my_id, my_secret)

main()
sporez commented 5 years ago

The pip version of this project seems to be out of date, I had the same issue. If you download the source directly from GitHub and include it in your project that way, it works as expected.

benslv commented 5 years ago

I think you could probably also install it using pip like this:

pip install gfycat==0.1.4

ankeshanand commented 5 years ago

I have updated the pip package which should fix this! You can run

pip install --upgrade gfycat to update the package