Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IronPython 2.7 (2.7.0.40) on .NET 4.0.30319.225
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import sys
- >>> sys.path
- ['.', 'C:\\duber\\IronPython27', 'C:\\duber\\IronPython27\\Lib', 'C:\\duber\\Iro
- nPython27\\DLLs', 'C:\\duber\\IronPython27\\lib\\site-packages']
- >>> sys.path.append(r'C:\duber\Python27')
- >>> sys.path.append(r'C:\duber\Python27\Lib')
- >>> sys.path.append(r'C:\duber\Python27\Lib\site-packages')
- >>> sys.path
- ['.', 'C:\\duber\\IronPython27', 'C:\\duber\\IronPython27\\Lib', 'C:\\duber\\Iro
- nPython27\\DLLs', 'C:\\duber\\IronPython27\\lib\\site-packages', 'C:\\duber\\Pyt
- hon27', 'C:\\duber\\Python27\\Lib', 'C:\\duber\\Python27\\Lib\\site-packages']
- >>> sys.path.append(r'C:\duber\Shotgun')
- >>> from shotgun_api3 import Shotgun
- >>> sg = Shotgun('https://duber.shotgunstudio.com', 'xxx', 'xxx')
- C:\duber\IronPython27\Lib\xmllib.py:1: DeprecationWarning: The xmllib module is
- obsolete. Use xml.sax instead.
- """A parser for XML, using the derived class as static DTD."""
- >>> sg
- <Shotgun object at 0x000000000000002B>
- >>> project = sg.find_one('Project', [["name", "is", "Test"]])
- Traceback (most recent call last):
- File "C:\duber\Shotgun\shotgun_api3.py", line 424, in find
- File "C:\duber\Shotgun\shotgun_api3.py", line 730, in meta_caller
- File "C:\duber\Shotgun\shotgun_api3.py", line 2056, in request
- File "C:\duber\Shotgun\shotgun_api3.py", line 2083, in single_request
- File "C:\duber\IronPython27\Lib\httplib.py", line 940, in endheaders
- File "C:\duber\IronPython27\Lib\httplib.py", line 803, in _send_output
- File "C:\duber\IronPython27\Lib\httplib.py", line 775, in send
- File "<stdin>", line 1, in <module>
- File "C:\duber\Shotgun\shotgun_api3.py", line 452, in find_one
- File "C:\duber\Shotgun\shotgun_api3.py", line 717, in callable
- File "C:\duber\Shotgun\shotgun_api3.py", line 2022, in __call__
- File "C:\duber\Shotgun\shotgun_api3.py", line 2401, in _ServerProxy__request
- File "C:\duber\Shotgun\shotgun_api3.py", line 2217, in send_content
- File "C:\duber\IronPython27\Lib\ssl.py", line 204, in sendall
- File "C:\duber\IronPython27\Lib\ssl.py", line 175, in send
- IOError: System.IO.IOException: Unable to write data to the transport connection
- : Cannot access a disposed object.
- Object name: 'System.Net.Sockets.Socket'.. ---> System.ObjectDisposedException:
- Cannot access a disposed object.
- Object name: 'System.Net.Sockets.Socket'.
- at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, So
- cketFlags socketFlags, SocketError& errorCode)
- at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, So
- cketFlags socketFlags)
- at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32
- size)
- --- End of inner exception stack trace ---
- at Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow(Object value)
- at Microsoft.Scripting.Interpreter.FuncCallInstruction`2.Run(InterpretedFrame
- frame)
- at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFra
- me frame, Exception exception)
- at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
- at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 a
- rg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
- at IronPython.Compiler.PythonCallTargets.OriginalCallTarget4(PythonFunction f
- unction, Object arg0, Object arg1, Object arg2, Object arg3)
- at Microsoft.Scripting.Interpreter.FuncCallInstruction`7.Run(InterpretedFrame
- frame)
- at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
- at Microsoft.Scripting.Interpreter.LightLambda.Run7[T0,T1,T2,T3,T4,T5,T6,TRet
- ](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
- at System.Dynamic.UpdateDelegates.UpdateAndExecute6[T0,T1,T2,T3,T4,T5,TRet](C
- allSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
- at Microsoft.Scripting.Interpreter.DynamicInstruction`7.Run(InterpretedFrame
- frame)
- at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
- at Microsoft.Scripting.Interpreter.LightLambda.Run6[T0,T1,T2,T3,T4,T5,TRet](T
- 0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
- at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](Call
- Site site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
- at Microsoft.Scripting.Interpreter.DynamicInstruction`6.Run(InterpretedFrame
- frame)
- at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
- at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T
- 1 arg1, T2 arg2)
- at IronPython.Compiler.PythonCallTargets.OriginalCallTarget2(PythonFunction f
- unction, Object arg0, Object arg1)
- at Microsoft.Scripting.Interpreter.FuncCallInstruction`5.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 s
- ite, T0 arg0, T1 arg1, T2 arg2)
- at IronPython.Runtime.Method.MethodBinding`1.SelfTarget(CallSite site, CodeCo
- ntext context, Object target, T0 arg0)
- at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedF
- rame frame)
- at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
- at Microsoft.Scripting.Interpreter.LightLambda.Run10[T0,T1,T2,T3,T4,T5,T6,T7,
- T8,T9,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 ar
- g7, T8 arg8, T9 arg9)
- at IronPython.Compiler.PythonCallTargets.OriginalCallTarget9(PythonFunction f
- unction, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object
- arg5, Object arg6, Object arg7, Object arg8)
- at IronPython.Runtime.PythonFunction.FunctionCaller`8.Default1Call8(CallSite
- site, CodeContext context, Object func, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 a
- rg4, T5 arg5, T6 arg6, T7 arg7)
- at System.Dynamic.UpdateDelegates.UpdateAndExecute10[T0,T1,T2,T3,T4,T5,T6,T7,
- T8,T9,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5,
- T6 arg6, T7 arg7, T8 arg8, T9 arg9)
- at IronPython.Runtime.Method.MethodBinding`7.SelfTarget(CallSite site, CodeCo
- ntext context, Object target, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 ar
- g5, T6 arg6)
- at System.Dynamic.UpdateDelegates.UpdateAndExecute9[T0,T1,T2,T3,T4,T5,T6,T7,T
- 8,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6
- arg6, T7 arg7, T8 arg8)
- at Microsoft.Scripting.Interpreter.DynamicInstruction`10.Run(InterpretedFrame
- frame)
- at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
- at Microsoft.Scripting.Interpreter.LightLambda.Run8[T0,T1,T2,T3,T4,T5,T6,T7,T
- Ret](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
- at IronPython.Compiler.PythonCallTargets.OriginalCallTarget7(PythonFunction f
- unction, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object
- arg5, Object arg6)
- at IronPython.Runtime.PythonFunction.FunctionCaller`3.Default4Call3(CallSite
- site, CodeContext context, Object func, T0 arg0, T1 arg1, T2 arg2)
- at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](Call
- Site site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
- at IronPython.Runtime.PythonFunction.FunctionCaller`3.Call3(CallSite site, Co
- deContext context, Object func, T0 arg0, T1 arg1, T2 arg2)
- at IronPython.Runtime.Method.MethodBinding`2.SelfTarget(CallSite site, CodeCo
- ntext context, Object target, T0 arg0, T1 arg1)
- at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSit
- e site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
- at IronPython.Runtime.PythonFunction.FunctionCaller`2.Call2(CallSite site, Co
- deContext context, Object func, T0 arg0, T1 arg1)
- at IronPython.Compiler.Ast.CallExpression.Invoke2Instruction.Run(InterpretedF
- rame frame)
- at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
- at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 a
- rg1)
- at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
- at IronPython.Compiler.PythonScriptCode.Run(Scope scope)
- at IronPython.Hosting.PythonCommandLine.<>c__DisplayClass1.<RunOneInteraction
- >b__0()
- >>> project = sg.find_one('Project', [["name", "is", "Test"]])
- >>> project
- {'type': 'Project', 'id': 65}
- >>>
Advertisement
Add Comment
Please, Sign In to add comment