agaida Posted July 7, 2016 Report Share Posted July 7, 2016 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! Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted July 8, 2016 Report Share Posted July 8, 2016 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? Link to comment Share on other sites More sharing options...
agaida Posted July 8, 2016 Author Report Share Posted July 8, 2016 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? Link to comment Share on other sites More sharing options...
Mike Posted July 8, 2016 Report Share Posted July 8, 2016 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. Link to comment Share on other sites More sharing options...
agaida Posted July 8, 2016 Author Report Share Posted July 8, 2016 I have realized what I have been doing wrong. I was supposed to create an API Key: Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted July 11, 2016 Report Share Posted July 11, 2016 Mike is right, it is recommended to use the personal api key, rather than creating a global one. Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted July 11, 2016 Report Share Posted July 11, 2016 Did you get it to work? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.