Guest User

IOError

a guest
Jun 10th, 2011
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 8.34 KB | None | 0 0
  1. IronPython 2.7 (2.7.0.40) on .NET 4.0.30319.225
  2. Type "help", "copyright", "credits" or "license" for more information.
  3. >>> import sys
  4. >>> sys.path
  5. ['.', 'C:\\duber\\IronPython27', 'C:\\duber\\IronPython27\\Lib', 'C:\\duber\\Iro
  6. nPython27\\DLLs', 'C:\\duber\\IronPython27\\lib\\site-packages']
  7. >>> sys.path.append(r'C:\duber\Python27')
  8. >>> sys.path.append(r'C:\duber\Python27\Lib')
  9. >>> sys.path.append(r'C:\duber\Python27\Lib\site-packages')
  10. >>> sys.path
  11. ['.', 'C:\\duber\\IronPython27', 'C:\\duber\\IronPython27\\Lib', 'C:\\duber\\Iro
  12. nPython27\\DLLs', 'C:\\duber\\IronPython27\\lib\\site-packages', 'C:\\duber\\Pyt
  13. hon27', 'C:\\duber\\Python27\\Lib', 'C:\\duber\\Python27\\Lib\\site-packages']
  14. >>> sys.path.append(r'C:\duber\Shotgun')
  15. >>> from shotgun_api3 import Shotgun
  16. >>> sg = Shotgun('https://duber.shotgunstudio.com', 'xxx', 'xxx')
  17. C:\duber\IronPython27\Lib\xmllib.py:1: DeprecationWarning: The xmllib module is
  18. obsolete.  Use xml.sax instead.
  19.   """A parser for XML, using the derived class as static DTD."""
  20. >>> sg
  21. <Shotgun object at 0x000000000000002B>
  22. >>> project = sg.find_one('Project', [["name", "is", "Test"]])
  23. Traceback (most recent call last):
  24.   File "C:\duber\Shotgun\shotgun_api3.py", line 424, in find
  25.   File "C:\duber\Shotgun\shotgun_api3.py", line 730, in meta_caller
  26.   File "C:\duber\Shotgun\shotgun_api3.py", line 2056, in request
  27.   File "C:\duber\Shotgun\shotgun_api3.py", line 2083, in single_request
  28.   File "C:\duber\IronPython27\Lib\httplib.py", line 940, in endheaders
  29.   File "C:\duber\IronPython27\Lib\httplib.py", line 803, in _send_output
  30.   File "C:\duber\IronPython27\Lib\httplib.py", line 775, in send
  31.   File "<stdin>", line 1, in <module>
  32.   File "C:\duber\Shotgun\shotgun_api3.py", line 452, in find_one
  33.   File "C:\duber\Shotgun\shotgun_api3.py", line 717, in callable
  34.   File "C:\duber\Shotgun\shotgun_api3.py", line 2022, in __call__
  35.   File "C:\duber\Shotgun\shotgun_api3.py", line 2401, in _ServerProxy__request
  36.   File "C:\duber\Shotgun\shotgun_api3.py", line 2217, in send_content
  37.   File "C:\duber\IronPython27\Lib\ssl.py", line 204, in sendall
  38.   File "C:\duber\IronPython27\Lib\ssl.py", line 175, in send
  39. IOError: System.IO.IOException: Unable to write data to the transport connection
  40. : Cannot access a disposed object.
  41. Object name: 'System.Net.Sockets.Socket'.. ---> System.ObjectDisposedException:
  42. Cannot access a disposed object.
  43. Object name: 'System.Net.Sockets.Socket'.
  44.    at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, So
  45. cketFlags socketFlags, SocketError& errorCode)
  46.    at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, So
  47. cketFlags socketFlags)
  48.    at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32
  49. size)
  50.    --- End of inner exception stack trace ---
  51.    at Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow(Object value)
  52.    at Microsoft.Scripting.Interpreter.FuncCallInstruction`2.Run(InterpretedFrame
  53.  frame)
  54.    at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFra
  55. me frame, Exception exception)
  56.    at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
  57.    at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 a
  58. rg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
  59.    at IronPython.Compiler.PythonCallTargets.OriginalCallTarget4(PythonFunction f
  60. unction, Object arg0, Object arg1, Object arg2, Object arg3)
  61.    at Microsoft.Scripting.Interpreter.FuncCallInstruction`7.Run(InterpretedFrame
  62.  frame)
  63.    at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
  64.    at Microsoft.Scripting.Interpreter.LightLambda.Run7[T0,T1,T2,T3,T4,T5,T6,TRet
  65. ](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
  66.    at System.Dynamic.UpdateDelegates.UpdateAndExecute6[T0,T1,T2,T3,T4,T5,TRet](C
  67. allSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
  68.    at Microsoft.Scripting.Interpreter.DynamicInstruction`7.Run(InterpretedFrame
  69. frame)
  70.    at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
  71.    at Microsoft.Scripting.Interpreter.LightLambda.Run6[T0,T1,T2,T3,T4,T5,TRet](T
  72. 0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
  73.    at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](Call
  74. Site site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
  75.    at Microsoft.Scripting.Interpreter.DynamicInstruction`6.Run(InterpretedFrame
  76. frame)
  77.    at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
  78.    at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T
  79. 1 arg1, T2 arg2)
  80.    at IronPython.Compiler.PythonCallTargets.OriginalCallTarget2(PythonFunction f
  81. unction, Object arg0, Object arg1)
  82.    at Microsoft.Scripting.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame
  83.  frame)
  84.    at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
  85.    at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0
  86. , T1 arg1, T2 arg2, T3 arg3)
  87.    at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite s
  88. ite, T0 arg0, T1 arg1, T2 arg2)
  89.    at IronPython.Runtime.Method.MethodBinding`1.SelfTarget(CallSite site, CodeCo
  90. ntext context, Object target, T0 arg0)
  91.    at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedF
  92. rame frame)
  93.    at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
  94.    at Microsoft.Scripting.Interpreter.LightLambda.Run10[T0,T1,T2,T3,T4,T5,T6,T7,
  95. T8,T9,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 ar
  96. g7, T8 arg8, T9 arg9)
  97.    at IronPython.Compiler.PythonCallTargets.OriginalCallTarget9(PythonFunction f
  98. unction, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object
  99.  arg5, Object arg6, Object arg7, Object arg8)
  100.    at IronPython.Runtime.PythonFunction.FunctionCaller`8.Default1Call8(CallSite
  101. site, CodeContext context, Object func, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 a
  102. rg4, T5 arg5, T6 arg6, T7 arg7)
  103.    at System.Dynamic.UpdateDelegates.UpdateAndExecute10[T0,T1,T2,T3,T4,T5,T6,T7,
  104. T8,T9,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5,
  105.  T6 arg6, T7 arg7, T8 arg8, T9 arg9)
  106.    at IronPython.Runtime.Method.MethodBinding`7.SelfTarget(CallSite site, CodeCo
  107. ntext context, Object target, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 ar
  108. g5, T6 arg6)
  109.    at System.Dynamic.UpdateDelegates.UpdateAndExecute9[T0,T1,T2,T3,T4,T5,T6,T7,T
  110. 8,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6
  111. arg6, T7 arg7, T8 arg8)
  112.    at Microsoft.Scripting.Interpreter.DynamicInstruction`10.Run(InterpretedFrame
  113.  frame)
  114.    at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
  115.    at Microsoft.Scripting.Interpreter.LightLambda.Run8[T0,T1,T2,T3,T4,T5,T6,T7,T
  116. Ret](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
  117.    at IronPython.Compiler.PythonCallTargets.OriginalCallTarget7(PythonFunction f
  118. unction, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object
  119.  arg5, Object arg6)
  120.    at IronPython.Runtime.PythonFunction.FunctionCaller`3.Default4Call3(CallSite
  121. site, CodeContext context, Object func, T0 arg0, T1 arg1, T2 arg2)
  122.    at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](Call
  123. Site site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
  124.    at IronPython.Runtime.PythonFunction.FunctionCaller`3.Call3(CallSite site, Co
  125. deContext context, Object func, T0 arg0, T1 arg1, T2 arg2)
  126.    at IronPython.Runtime.Method.MethodBinding`2.SelfTarget(CallSite site, CodeCo
  127. ntext context, Object target, T0 arg0, T1 arg1)
  128.    at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSit
  129. e site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
  130.    at IronPython.Runtime.PythonFunction.FunctionCaller`2.Call2(CallSite site, Co
  131. deContext context, Object func, T0 arg0, T1 arg1)
  132.    at IronPython.Compiler.Ast.CallExpression.Invoke2Instruction.Run(InterpretedF
  133. rame frame)
  134.    at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
  135.    at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 a
  136. rg1)
  137.    at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
  138.    at IronPython.Compiler.PythonScriptCode.Run(Scope scope)
  139.    at IronPython.Hosting.PythonCommandLine.<>c__DisplayClass1.<RunOneInteraction
  140. >b__0()
  141. >>> project = sg.find_one('Project', [["name", "is", "Test"]])
  142. >>> project
  143. {'type': 'Project', 'id': 65}
  144. >>>
Advertisement
Add Comment
Please, Sign In to add comment