I'm trying to write a pre task script for deadline and its failing when importing tank - specifically:
pre task script "/studio/prelaunch.py": ImportError : cannot import name constants (FranticX.Scripting.PythonNetException)
File "none", line 21, in <module>
File "/path_to_tank/install/core/python/tank/__init__.py", line 31, in <module>
from .platform import constants
(Deadline.Plugins.RenderPluginException)
anyone else come across this? can't work out why - its finding the tank library fine...some sort of namespace clash?
I am sys.appending the tank path before doing import tank as currently our deadline isn't setup with tank in its python path - would that potentially cause some sort of issue?
code:
tankPath = '/path_to_tank/install/core/python'
sys.path.append(tankPath)
import tank
anyone done any coding for deadline using sgtk?