ankeshanand / py-gfycat

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

Can't import client #4

Closed mvinoba closed 8 years ago

mvinoba commented 8 years ago

Hello, I am trying to use the module and as soon as I import GfycatClient from gfycat.client I get the following error:

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    from gfycat.client import GfycatClient
  File "C:\Users\Vinicius\AppData\Local\Programs\Python\Python35-32\lib\site-packages\gfycat\client.py", line 4, in <module>
    from constants import (FETCH_URL_ENDPOINT, FETCH_URL_LAZY_ENDPOINT,
ImportError: No module named 'constants'

What am I doing wrong? Code is exactly that: from gfycat.client import GfycatClient

ankeshanand commented 8 years ago

Hi @mvinoba, there was an issue with imports for some users. I have updated the package on pypi to fix the error. Please reinstall the package, and it should work fine.