Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In [3]: run array3d.py
- numpy:
- [[[ 0 1 2 3]
- [ 4 5 6 7]
- [ 8 9 10 11]]
- [[12 13 14 15]
- [16 17 18 19]
- [20 21 22 23]]]
- Pure Inline:
- creating /tmp/peter/python27_intermediate/compiler_657c10a151fd405c0953ff167320049f
- ---------------------------------------------------------------------------
- AttributeError Traceback (most recent call last)
- /usr/lib/python2.7/site-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
- 176 else:
- 177 filename = fname
- --> 178 __builtin__.execfile(filename, *where)
- /home/peter/code/pyTools/sandbox/weave/array3d.py in <module>()
- 103
- 104 if __name__ == '__main__':
- --> 105 main()
- /home/peter/code/pyTools/sandbox/weave/array3d.py in main()
- 96
- 97 print "Pure Inline:"
- ---> 98 pure_inline(arr)
- 99
- 100 print "Blitz Inline:"
- /home/peter/code/pyTools/sandbox/weave/array3d.py in pure_inline(arr)
- 55 """
- 56
- ---> 57 weave.inline(code, ['arr'])
- 58
- 59
- /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)
- 353 type_converters = type_converters,
- 354 auto_downcast = auto_downcast,
- --> 355 **kw)
- 356
- 357 function_catalog.add_function(code,func,module_dir)
- /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)
- 480 # setting. All input keywords are passed through to distutils
- 481 mod.compile(location=storage_dir,compiler=compiler,
- --> 482 verbose=verbose, **kw)
- 483
- 484 # import the module and return the function. Make sure
- /usr/lib64/python2.7/site-packages/scipy/weave/ext_tools.pyc in compile(self, location, compiler, verbose, **kw)
- 365 success = build_tools.build_extension(file, temp_dir = temp,
- 366 compiler_name = compiler,
- --> 367 verbose = verbose, **kw)
- 368 if not success:
- 369 raise SystemError('Compilation failed')
- /usr/lib64/python2.7/site-packages/scipy/weave/build_tools.pyc in build_extension(module_path, compiler_name, build_dir, temp_dir, verbose, **kw)
- 270 environ = copy.deepcopy(os.environ)
- 271 try:
- --> 272 setup(name = module_name, ext_modules = [ext],verbose=verb)
- 273 finally:
- 274 # restore state
- /usr/lib64/python2.7/site-packages/numpy/distutils/core.pyc in setup(**attr)
- 184 new_attr['distclass'] = NumpyDistribution
- 185
- --> 186 return old_setup(**new_attr)
- 187
- 188 def _check_append_library(libraries, item):
- /usr/lib64/python2.7/distutils/core.pyc in setup(**attrs)
- 150 if ok:
- 151 try:
- --> 152 dist.run_commands()
- 153 except KeyboardInterrupt:
- 154 raise SystemExit, "interrupted"
- /usr/lib64/python2.7/distutils/dist.pyc in run_commands(self)
- 951 """
- 952 for cmd in self.commands:
- --> 953 self.run_command(cmd)
- 954
- 955 # -- Methods that operate on its Commands --------------------------
- /usr/lib64/python2.7/distutils/dist.pyc in run_command(self, command)
- 970 cmd_obj = self.get_command_obj(command)
- 971 cmd_obj.ensure_finalized()
- --> 972 cmd_obj.run()
- 973 self.have_run[command] = 1
- 974
- /usr/lib64/python2.7/site-packages/numpy/distutils/command/build_ext.pyc in run(self)
- 230
- 231 # Build extensions
- --> 232 self.build_extensions()
- 233
- 234 # Make sure that scons based extensions are complete.
- /usr/lib64/python2.7/distutils/command/build_ext.pyc in build_extensions(self)
- 446
- 447 for ext in self.extensions:
- --> 448 self.build_extension(ext)
- 449
- 450 def build_extension(self, ext):
- /usr/lib64/python2.7/site-packages/numpy/distutils/command/build_ext.pyc in build_extension(self, ext)
- 343 debug=self.debug,
- 344 extra_postargs=extra_args,
- --> 345 **kws)
- 346
- 347 extra_postargs = []
- /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)
- 201 else:
- 202 for obj, (src, ext) in build.items():
- --> 203 self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
- 204
- 205 # Return *all* object filenames, not just the ones we just built.
- /usr/lib64/python2.7/site-packages/numpy/distutils/unixccompiler.pyc in UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts)
- 33 try:
- 34 self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
- ---> 35 extra_postargs, display = display)
- 36 except DistutilsExecError:
- 37 msg = str(get_exception())
- /usr/lib64/python2.7/site-packages/numpy/distutils/ccompiler.pyc in CCompiler_spawn(self, cmd, display)
- 55 display = ' '.join(list(display))
- 56 log.info(display)
- ---> 57 s,o = exec_command(cmd)
- 58 if s:
- 59 if is_sequence(cmd):
- /usr/lib64/python2.7/site-packages/numpy/distutils/exec_command.pyc in exec_command(command, execute_in, use_shell, use_tee, _with_python, **env)
- 195 # but not on all platforms os.system will return
- 196 # a correct status.
- --> 197 if _with_python and (0 or sys.stdout.fileno()==-1):
- 198 st = _exec_command_python(command,
- 199 exec_command_dir = exec_dir,
- AttributeError: 'OutStream' object has no attribute 'fileno'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement