tweak-wtf

Members
  • Content Count

    6
  • Joined

  • Last visited

About tweak-wtf

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey @Lorenzo Angeli the output of sys.executable is: /prod/softprod/apps/maya/2018/linux/bin/maya.bin I've also printed the used python version if that's of any any use: 2.7.11 (default, Dec 21 2015, 14:39:44) [GCC 4.4.7 20120313 (Red Hat 4.4.7-11) I have already shortly touched base with the pyblish developers on gitter. They pointed out to me that the actual key gets quoted. So if you have a look at my first stacktrace in this thread you see the KeyError is on '"storage_scenario"' but i guess it should rather be 'storage_scenario'. So that KeyError is actually raised when I want to print the ServerError which is handled in the __str__ method of exception.py. I think that is also the reason why I get ServerError: <unprintable ServerError object> in my last stacktrace. I don't know for sure but I think if I would manage to print the actual ServerError that would already be really helpful.
  2. Update: I just wrapped my connection call in try/catch block and printed the stacktrace... maybe that is also helping?! Call to connect to API: session = None try: session = ftrack_api.Session( server_url = FTRACK_SERVER, api_key = FTRACK_API_KEY, api_user = getpass.getuser(), ) except Exception as e: self.log.debug("Session: {}".format(session)) self.log.debug(traceback.format_exc(e)) Stacktrace: // pyblish.CollectFTrackInfo : Traceback (most recent call last): File "<string>", line 35, in process File "/prod/softprod/libs/ftrack_api/session.py", line 224, in __init__ self._server_information = self._fetch_server_information() File "/prod/softprod/libs/ftrack_api/session.py", line 1317, in _fetch_server_information result = self._call([{'action': 'query_server_information'}]) File "/prod/softprod/libs/ftrack_api/session.py", line 1619, in _call raise ftrack_api.exception.ServerError(error_message) ServerError: <unprintable ServerError object> //
  3. Hi @Lorenzo Angeli thanks for responding. Sure... I also sent an eMail with some insights to support so I'll just summarize what I wrote in that eMail. Currently I'm trying to build a 3D pipeline based on pyblish also integrating the published files with ftrack. For that I need to connect to ftrack API from a pyblish plugin. The error was popping up 2 days ago. Before that everything was working as normal. I talked to our SysAdmin and he told me that he didn't change anything about the network settings. The error only happens when trying to establish a connection from that pyblish plugin... Trying to connect from just a standard python interpreter ran from the terminal works. I went ahead and added some lines that log some variables to a file to the session.py in the ftrack_api python package in order to see what's going on. The output that I'm getting is the following: Trying to connect from terminal... ############# DATA ########## [{"action": "query_server_information"}] ############# RESULT ########## [{u'storage_scenario': {u'data': {}, u'scenario': u'ftrack.automatic'}, u'version': u'4.1.5.4750', u'is_timezone_support_enabled': False, u'schema_hash': u'450f452f8addcd23370a8a90f8156c4a'}] Trying to connect from pyblish plugin... ############# DATA ########## [{"action": "query_server_information"}] ############# RESULT ########## [{u'storage_scenario': {u'data': {}, u'scenario': u'ftrack.automatic'}, u'version': u'4.1.5.4750', u'is_timezone_support_enabled': False, u'schema_hash': u'450f452f8addcd23370a8a90f8156c4a'}] Trying to connect from Maya Script Editor... ############# DATA ########## [{"action": "query_server_information"}] ############# RESULT ########## [{u'storage_scenario': {u'data': {}, u'scenario': u'ftrack.automatic'}, u'version': u'4.1.5.4750', u'is_timezone_support_enabled': False, u'schema_hash': u'450f452f8addcd23370a8a90f8156c4a'}] Note that DATA logs the data being POSTed to the api server and RESULT logs the result returned from that POST. From that log I can't see any difference between the 3 different contexts from which I try to connect to the API. I think the problem has something to do with the execution from within the pyblish plugin but I don't understand why the error just appeared basically out of nowhere. I'm afraid that this is also something that is quite hard to reproduce for you?! Thanks for your answer!
  4. Hey folks, since yesterday I get the following error when trying to connect to the ftrack_api. // ftrack_api.session.Session : Calling server https://[OUR_FTRACK_SITE]/api with '[{"action": "query_server_information"}]' // // ftrack_api.session.Session : Call took: 0.113607 // // ftrack_api.session.Session : Response: u'[{"storage_scenario": {"data": {}, "scenario": "ftrack.automatic"}, "schema_hash": "450f452f8addcd23370a8a90f8156c4a", "version": "4.1.5.4750", "is_timezone_support_enabled": false}]' // // Error: ftrack_api.session.Session : Server reported error in unexpected format. Raw error was: [{"storage_scenario": {"data": {}, "scenario": "ftrack.automatic"}, "schema_hash": "450f452f8addcd23370a8a90f8156c4a", "version": "4.1.5.4750", "is_timezone_support_enabled": false}] // # Traceback (most recent call last): # File "/prod/softprod/apps/maya/2018/linux/lib/python27.zip/logging/__init__.py", line 853, in emit # msg = self.format(record) # File "/prod/softprod/apps/maya/2018/linux/lib/python27.zip/logging/__init__.py", line 726, in format # return fmt.format(record) # File "/users_roaming/tdorfmeister/devel/ppStudio/common/libs/filmmore/logger.py", line 48, in format # logline = super(self.__class__, self).format(record) # File "/prod/softprod/apps/maya/2018/linux/lib/python27.zip/logging/__init__.py", line 465, in format # record.message = record.getMessage() # File "/prod/softprod/apps/maya/2018/linux/lib/python27.zip/logging/__init__.py", line 325, in getMessage # msg = str(self.msg) # File "/prod/softprod/libs/ftrack_api/exception.py", line 42, in __str__ # return str(self.message.format(**keys)) # KeyError: '"storage_scenario"' I'm just trying to connect using `ftrack_api.Session()` with my credentials and `auto_connect_event_hub=True`. Any help is much appreciated, since I really have no clue how to figure this one out on my own. Thanks PS: I should note that my api is on v1.3.3. I know... 😕
  5. Nevermind... figuered it out. Wasn't aware that ftrack_api is storing some querying in a local cache
  6. Hey folks, I just started out working with ftrack so please don't judge for my probably noobish question. I'm trying to set a thumbnail and ftrackreview-mp4 on a task. I already managed to upload an .mp4 and thumbnail to my assetversions but now I want to apply these files to the linked task aswell. I was trying to create a new component on a task but I will receive an error telling me that I can't create components on a Task. Also I have read about setting the Asset Types in the Workflow section of the ftrack settings but I'm kinda lost in that overview since I can't really understand what this Asset Type section is actually doing. Oh and I have to tell you that unfortunately I'm on ftrack_api v1.3.3 and probably not allowed to bump up the version 😕 Any help is much appreciated!