Advertisement
Guest User

Untitled

a guest
Mar 13th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.28 KB | None | 0 0
  1. In [3]: run array3d.py
  2. numpy:
  3. [[[ 0 1 2 3]
  4. [ 4 5 6 7]
  5. [ 8 9 10 11]]
  6.  
  7. [[12 13 14 15]
  8. [16 17 18 19]
  9. [20 21 22 23]]]
  10. Pure Inline:
  11. creating /tmp/peter/python27_intermediate/compiler_657c10a151fd405c0953ff167320049f
  12. ---------------------------------------------------------------------------
  13. AttributeError Traceback (most recent call last)
  14. /usr/lib/python2.7/site-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
  15. 176 else:
  16. 177 filename = fname
  17. --> 178 __builtin__.execfile(filename, *where)
  18.  
  19. /home/peter/code/pyTools/sandbox/weave/array3d.py in <module>()
  20. 103
  21. 104 if __name__ == '__main__':
  22. --> 105 main()
  23.  
  24. /home/peter/code/pyTools/sandbox/weave/array3d.py in main()
  25. 96
  26. 97 print "Pure Inline:"
  27. ---> 98 pure_inline(arr)
  28. 99
  29. 100 print "Blitz Inline:"
  30.  
  31. /home/peter/code/pyTools/sandbox/weave/array3d.py in pure_inline(arr)
  32. 55 """
  33. 56
  34. ---> 57 weave.inline(code, ['arr'])
  35. 58
  36. 59
  37.  
  38. /usr/lib64/python2.7/site-packages/scipy/weave/inline_tools.pyc in inline(code, arg_names, local_dict, global_dict, force, compiler, verbose, support_code, headers, customize, type_converters, auto_downcast, newarr_converter, **kw)
  39. 353 type_converters = type_converters,
  40. 354 auto_downcast = auto_downcast,
  41. --> 355 **kw)
  42. 356
  43. 357 function_catalog.add_function(code,func,module_dir)
  44.  
  45. /usr/lib64/python2.7/site-packages/scipy/weave/inline_tools.pyc in compile_function(code, arg_names, local_dict, global_dict, module_dir, compiler, verbose, support_code, headers, customize, type_converters, auto_downcast, **kw)
  46. 480 # setting. All input keywords are passed through to distutils
  47. 481 mod.compile(location=storage_dir,compiler=compiler,
  48. --> 482 verbose=verbose, **kw)
  49. 483
  50. 484 # import the module and return the function. Make sure
  51.  
  52. /usr/lib64/python2.7/site-packages/scipy/weave/ext_tools.pyc in compile(self, location, compiler, verbose, **kw)
  53. 365 success = build_tools.build_extension(file, temp_dir = temp,
  54. 366 compiler_name = compiler,
  55. --> 367 verbose = verbose, **kw)
  56. 368 if not success:
  57. 369 raise SystemError('Compilation failed')
  58.  
  59. /usr/lib64/python2.7/site-packages/scipy/weave/build_tools.pyc in build_extension(module_path, compiler_name, build_dir, temp_dir, verbose, **kw)
  60. 270 environ = copy.deepcopy(os.environ)
  61. 271 try:
  62. --> 272 setup(name = module_name, ext_modules = [ext],verbose=verb)
  63. 273 finally:
  64. 274 # restore state
  65.  
  66. /usr/lib64/python2.7/site-packages/numpy/distutils/core.pyc in setup(**attr)
  67. 184 new_attr['distclass'] = NumpyDistribution
  68. 185
  69. --> 186 return old_setup(**new_attr)
  70. 187
  71. 188 def _check_append_library(libraries, item):
  72.  
  73. /usr/lib64/python2.7/distutils/core.pyc in setup(**attrs)
  74. 150 if ok:
  75. 151 try:
  76. --> 152 dist.run_commands()
  77. 153 except KeyboardInterrupt:
  78. 154 raise SystemExit, "interrupted"
  79.  
  80. /usr/lib64/python2.7/distutils/dist.pyc in run_commands(self)
  81. 951 """
  82. 952 for cmd in self.commands:
  83. --> 953 self.run_command(cmd)
  84. 954
  85. 955 # -- Methods that operate on its Commands --------------------------
  86.  
  87. /usr/lib64/python2.7/distutils/dist.pyc in run_command(self, command)
  88. 970 cmd_obj = self.get_command_obj(command)
  89. 971 cmd_obj.ensure_finalized()
  90. --> 972 cmd_obj.run()
  91. 973 self.have_run[command] = 1
  92. 974
  93.  
  94. /usr/lib64/python2.7/site-packages/numpy/distutils/command/build_ext.pyc in run(self)
  95. 230
  96. 231 # Build extensions
  97. --> 232 self.build_extensions()
  98. 233
  99. 234 # Make sure that scons based extensions are complete.
  100.  
  101. /usr/lib64/python2.7/distutils/command/build_ext.pyc in build_extensions(self)
  102. 446
  103. 447 for ext in self.extensions:
  104. --> 448 self.build_extension(ext)
  105. 449
  106. 450 def build_extension(self, ext):
  107.  
  108. /usr/lib64/python2.7/site-packages/numpy/distutils/command/build_ext.pyc in build_extension(self, ext)
  109. 343 debug=self.debug,
  110. 344 extra_postargs=extra_args,
  111. --> 345 **kws)
  112. 346
  113. 347 extra_postargs = []
  114.  
  115. /usr/lib64/python2.7/site-packages/numpy/distutils/ccompiler.pyc in CCompiler_compile(self, sources, output_dir, macros, include_dirs, debug, extra_preargs, extra_postargs, depends)
  116. 201 else:
  117. 202 for obj, (src, ext) in build.items():
  118. --> 203 self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  119. 204
  120. 205 # Return *all* object filenames, not just the ones we just built.
  121.  
  122. /usr/lib64/python2.7/site-packages/numpy/distutils/unixccompiler.pyc in UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts)
  123. 33 try:
  124. 34 self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
  125. ---> 35 extra_postargs, display = display)
  126. 36 except DistutilsExecError:
  127. 37 msg = str(get_exception())
  128.  
  129. /usr/lib64/python2.7/site-packages/numpy/distutils/ccompiler.pyc in CCompiler_spawn(self, cmd, display)
  130. 55 display = ' '.join(list(display))
  131. 56 log.info(display)
  132. ---> 57 s,o = exec_command(cmd)
  133. 58 if s:
  134. 59 if is_sequence(cmd):
  135.  
  136. /usr/lib64/python2.7/site-packages/numpy/distutils/exec_command.pyc in exec_command(command, execute_in, use_shell, use_tee, _with_python, **env)
  137. 195 # but not on all platforms os.system will return
  138. 196 # a correct status.
  139. --> 197 if _with_python and (0 or sys.stdout.fileno()==-1):
  140. 198 st = _exec_command_python(command,
  141. 199 exec_command_dir = exec_dir,
  142.  
  143. AttributeError: 'OutStream' object has no attribute 'fileno'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement