Getting Started With ftrack_api
2 2

7 posts in this topic

Hello everybody, fellow ftrackers.

I am having trouble doing the simplest thing on my ftrack server: accessing the session through ftrack_api.

session = ftrack_api.Session(
    server_url='ftrack_server',
    api_key='1337-key',
    api_user='ftrack_username'
)

All my keyword arguments are correct, however, I keep getting the same bullshit:

No handlers could be found for logger "ftrack_api.session.Session"
Traceback (most recent call last):
  File "D:/Work/Python/ftrack.py", line 11, in <module>
    api_user='ftrack_username'
  File "C:\Python27\lib\site-packages\ftrack_api\session.py", line 213, in __init__
    self._server_information = self._fetch_server_information()
  File "C:\Python27\lib\site-packages\ftrack_api\session.py", line 1235, in _fetch_server_information
    result = self._call([{'action': 'query_server_information'}])
  File "C:\Python27\lib\site-packages\ftrack_api\session.py", line 1519, in _call
    raise ftrack_api.exception.ServerError(error_message)
ftrack_api.exception.ServerError: <exception str() failed>

Someone please explain to me the ServerError issue. I am doing a trial version of Ftrack to keep myself up to speed on this app, but I am doing something wrong. Thanks guys!

Share this post


Link to post
Share on other sites

Hey agaida, I'm sorry that you've hit a wall here - and the error message is certainly not helpful.

Could you just confirm that the api key/username is correct. Btw, do you have any non-ascii characters in your api username?

Share this post


Link to post
Share on other sites

The api_user, is it the same as username, right?

if it is not, where else may I get the api_user?

I have attached a file of users, since that is how I get my user info. Or is it another location?

ftrack_shot1.png

Share this post


Link to post
Share on other sites

I like to go to my personal account page to get all of the relevant information all at once.  You can copy+paste the URL, Username, and API key from this page.

Capture.JPG

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
2 2