southwood/project-oxford-python

No Client.py in projectoxford and doesn't work with previous version

Opened this issue · 1 comments

Hello!
I can't make project oxford work fine.
I'm just trying to get emotion status from picture.

OS - Windows
Python - 3.5

Here are my steps:

  1. Install python 3.5
  2. pip install projectoxford

Then I crate new .py file and put this code:

from projectoxford import Client
client = Client('111')
result = client.face.detect({'url': 'https://st.kp.yandex.net/images/actor_iphone/iphone360_37859.jpg'})
print (result['faceId'])
print (result['attributes']['age'])

And I get this error:
from projectoxford import Client
ImportError: cannot import name 'Client'

I checked - there are really no Client.py in C:\Python35\Lib\site-packages\projectoxford and it's even absent at latest version of Project Oxford modules:
https://pypi.python.org/pypi/projectoxford/0.3.1

I've tried to copy Client.py, Emotion.py ...etc from projectoxford-0.2.0 (downloaded it from https://pypi.python.org/pypi/projectoxford/0.2.0) into C:\Python35\Lib\site-packages\projectoxford and now my code returns this error:
client = Client('XXX')
TypeError: 'module' object is not callable (there is my API instead of XXX).

I have been fighting with it all day and I can't find the solution. Could you help me?
I apologize, my English is too bad.

Thank you!

same problem bump