Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import gives ApiError, ApiThrottledError, ApiBadRequestError #6

Closed
zuhaagha opened this issue Jul 6, 2015 · 2 comments
Closed

Import gives ApiError, ApiThrottledError, ApiBadRequestError #6

zuhaagha opened this issue Jul 6, 2015 · 2 comments

Comments

@zuhaagha
Copy link

zuhaagha commented Jul 6, 2015

Hi

I am trying to use the ClarifaiApi to tag images using the Python client and I receive the following error when I try to import ClarifaiApi.

Traceback (most recent call last):
from clarifai.client import ClarifaiApi
File "C:\Python34\lib\site-packages\clarifai\client__init__.py", line 3, in
from .client import ClarifaiApi, ApiError, ApiThrottledError, ApiBadRequestError
File "C:\Python34\lib\site-packages\clarifai\client\client.py", line 5
except Exception, e:
^
SyntaxError: invalid syntax

I can't seem to find any documentation related to this error. Any help would be appreciated.

@robertwenquan
Copy link
Contributor

This error is due to the syntax error of exception handling in written in Python2 grammar running in Python3.
If you switch to Python2.7 you could be able to play with the API as documented.

@zuhaagha
Copy link
Author

zuhaagha commented Jul 6, 2015

Yeah I just figured that out after some googling. Thank you! I will switch to Python 2.7.

Sent from my iPhone

On Jul 5, 2015, at 11:27 PM, Robert Wen <notifications@github.commailto:notifications@github.com> wrote:

This error is due to the syntax error of exception handling in written in Python2 grammar running in Python3.
If you switch to Python2.7 you could be able to play with the API as documented.

Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-118703587.

josh-tepper pushed a commit that referenced this issue Aug 11, 2023
* making a branch

* fixed

* added pre-commit hook

* added test and workflow

* renmae file

* remove one criteria

* older pytest

* older pytest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants