wim.w

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Hello, I would like to contribute to which I think is the same error. I sometimes get this error in the python-interactive window in visual studio 2010 I've imported ftrack succesfully, and I execute the following commands. The first succeeds, then I wait about 20 seconds, and then the second one fails. If I execute the third one it completes succesfully again. This is IronPython 2.7, but I get the same results in Python x64 2.7 and IronPython x64 2.7 >>> prj = ftrack.getProject('Misc') >>> prj = ftrack.getProject('Misc') Traceback (most recent call last): File "<string>", line 1, in <module> File "Y:\CC_Tools\FTrack\ftrackplugins-win64-1b17\ftrackplugins\libdir\FTrackCore.egg\FTrackCore\api\client.py", line 667, in getProject return getFromPath(path) File "Y:\CC_Tools\FTrack\ftrackplugins-win64-1b17\ftrackplugins\libdir\FTrackCore.egg\FTrackCore\api\client.py", line 691, in getFromPath data = _getFromPath(path) File "Y:\CC_Tools\FTrack\ftrackplugins-win64-1b17\ftrackplugins\libdir\FTrackCore.egg\FTrackCore\api\client.py", line 656, in _getFromPath return xmlServer.action('get',data) File "Y:\CC_Tools\FTrack\ftrackplugins-win64-1b17\ftrackplugins\libdir\FTrackCore.egg\FTrackCore\api\xmlserver.py", line 225, in action response = function(data) File "C:\Program Files (x86)\IronPython 2.7\Lib\xmlrpclib.py", line 1224, in __call__ return self.__send(self.__name, args) File "C:\Program Files (x86)\IronPython 2.7\Lib\xmlrpclib.py", line 1571, in _ServerProxy__request response = self.__transport.request( File "C:\Program Files (x86)\IronPython 2.7\Lib\xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "C:\Program Files (x86)\IronPython 2.7\Lib\xmlrpclib.py", line 1292, in single_request self.send_content(h, request_body) File "Y:\CC_Tools\FTrack\ftrackplugins-win64-1b17\ftrackplugins\libdir\FTrackCore.egg\FTrackCore\api\xmlserver.py", line 108, in send_content xmlrpclib.SafeTransport.send_content(self,connection, request_body) File "C:\Program Files (x86)\IronPython 2.7\Lib\xmlrpclib.py", line 1439, in send_content connection.endheaders(request_body) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 951, in endheaders self._send_output(message_body) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 811, in _send_output self.send(msg) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 787, in send self.sock.sendall(data) File "C:\Program Files (x86)\IronPython 2.7\Lib\ssl.py", line 219, in sendall while (count < amount): File "C:\Program Files (x86)\IronPython 2.7\Lib\ssl.py", line 188, in send try: IOError: System.IO.IOException: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception) at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) at IronPython.Runtime.PythonFunction.FunctionCaller`3.Call3(CallSite site, CodeContext context, Object func, T0 arg0, T1 arg1, T2 arg2) at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) at CallSite.Target(Closure , CallSite , CodeContext , Object , Object , Object , Object ) at IronPython.Runtime.Method.MethodBinding`2.SelfTarget(CallSite site, CodeContext context, Object target, T0 arg0, T1 arg1) at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) at IronPython.Runtime.PythonFunction.FunctionCaller`2.Call2(CallSite site, CodeContext context, Object func, T0 arg0, T1 arg1) at IronPython.Compiler.Ast.CallExpression.Invoke2Instruction.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite site, CodeContext context, Object func, T0 arg0) at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite site, CodeContext context, Object func, T0 arg0) at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite site, CodeContext context, Object func, T0 arg0) at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) at Microsoft.Scripting.SourceUnit.Execute(Scope scope) at Microsoft.Scripting.Interpreter.FuncCallInstruction`3.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite site, CodeContext context, Object func, T0 arg0) at IronPython.Runtime.Method.MethodBinding.SelfTarget(CallSite site, CodeContext context, Object target) at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) >>> prj = ftrack.getProject('Misc')
  2. Hello, I'm testing the use of ftrackplugins in visual studio 2010. Since this is my first time using python in VS, I was wondering if you have any idea how I can enable VS to recognize the ftrack API I've extracted the ftrackplugins-win64-1b17 archive into all three paths: C:\Python27\Lib\site-packages\ftrackplugins-win64-1b17\ C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\ftrackplugins-win64-1b17\ C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\ftrackplugins-win64-1b17\ and "ftrackplugins" shows up under all 3 environments in visual studio Solution Explorer (see attached image) I tried running the follwing script (our private information is replaced by # for security purposes) ---------- import os; import sys; ftLibPath = '#####/ftrackplugins-win64-1b17/ftrackplugins/libdir' ftApiKey = '##### ftLogName = '#####' if not ftLibPath in sys.path: sys.path.append(ftLibPath); print '>> Added to sys.path : '+ftLibPath; os.environ['FTRACK_SERVER'] = ftServer os.environ['FTRACK_APIKEY'] = ftApiKey os.environ['LOGNAME'] = ftLogName import ftrack; projects ftrack.getProjects(True) for proj in projects: print proj --------------- I get a printed output of all projects but the problem is "ftrack" is not recognized by the compiler while editing. If I open the interactive window and execute the script (line-by-line) "ftrack" is fully operational with intellisense enabled. Any idea how I can fix this? Kind regards, Wim Wouters