[Pyrex] Still a problem in callback demo

Robin Becker robin at reportlab.com
Mon Jun 30 09:55:02 CEST 2003


I'm getting a different error in the callback & other demos after
upgrading to 0.8.1




C:\Python\devel\Pyrex-0.8.1\Demos\callback>Setup.py build
running build
running build_ext
building 'cheese' extension
Traceback (most recent call last):
  File "C:\Python\devel\Pyrex-0.8.1\Demos\callback\Setup.py", line 10,
in ?
    cmdclass = {'build_ext': build_ext}
  File "c:\python\lib\distutils\core.py", line 138, in setup
    dist.run_commands()
  File "c:\python\lib\distutils\dist.py", line 902, in run_commands
    self.run_command(cmd)
  File "c:\python\lib\distutils\dist.py", line 922, in run_command
    cmd_obj.run()
  File "c:\python\lib\distutils\command\build.py", line 107, in run
    self.run_command(cmd_name)
  File "c:\python\lib\distutils\cmd.py", line 330, in run_command
    self.distribution.run_command(command)
  File "c:\python\lib\distutils\dist.py", line 922, in run_command
    cmd_obj.run()
  File "c:\python\lib\distutils\command\build_ext.py", line 256, in run
    self.build_extensions()
  File "c:\python\lib\distutils\command\build_ext.py", line 383, in
build_extensions
    self.build_extension(ext)
  File "c:\python\lib\distutils\command\build_ext.py", line 422, in
build_extension
    sources = self.swig_sources(sources)
  File "C:\Python\Lib\site-packages\Pyrex\Distutils\build_ext.py", line
52, in swig_sources
    self.pyrex_compile(source)
  File "C:\Python\Lib\site-packages\Pyrex\Distutils\build_ext.py", line
75, in pyrex_compile
    if result.num_errors <> 0:
NameError: global name 'result' is not defined


in demos itself I didn't get any errors in 0.8. I guess the changes to
the distutils extension broke this.
running build
running build_ext
building 'primes' extension
Traceback (most recent call last):
  File "C:\Python\devel\Pyrex-0.8.1\Demos\Setup.py", line 12, in ?
    cmdclass = {'build_ext': build_ext}
  File "c:\python\lib\distutils\core.py", line 138, in setup
    dist.run_commands()
  File "c:\python\lib\distutils\dist.py", line 902, in run_commands
    self.run_command(cmd)
  File "c:\python\lib\distutils\dist.py", line 922, in run_command
    cmd_obj.run()
  File "c:\python\lib\distutils\command\build.py", line 107, in run
    self.run_command(cmd_name)
  File "c:\python\lib\distutils\cmd.py", line 330, in run_command
    self.distribution.run_command(command)
  File "c:\python\lib\distutils\dist.py", line 922, in run_command
    cmd_obj.run()
  File "c:\python\lib\distutils\command\build_ext.py", line 256, in run
    self.build_extensions()
  File "c:\python\lib\distutils\command\build_ext.py", line 383, in
build_extensions
    self.build_extension(ext)
  File "c:\python\lib\distutils\command\build_ext.py", line 422, in
build_extension
    sources = self.swig_sources(sources)
  File "C:\Python\Lib\site-packages\Pyrex\Distutils\build_ext.py", line
52, in swig_sources
    self.pyrex_compile(source)
  File "C:\Python\Lib\site-packages\Pyrex\Distutils\build_ext.py", line
75, in pyrex_compile
    if result.num_errors <> 0:
NameError: global name 'result' is not defined
-- 
Robin Becker




More information about the Pyrex mailing list