installing Enable on Snow Leopard fails

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

installing Enable on Snow Leopard fails

Christian K.
Hi,

I get this error traceback when trying to install Enable via easy_install:

Searching for Enable
Reading http://pypi.python.org/simple/Enable/
Reading http://code.enthought.com/projects/enable
Best match: Enable 3.3.1
Downloading http://www.enthought.com/repo/ETS/Enable-3.3.1.tar.gz
Processing Enable-3.3.1.tar.gz
Running Enable-3.3.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-2FCczs/Enable-3.3.1/egg-dist-tmp-Wr7WZO
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/system_info.py:520:
UserWarning: Specified path /usr/local/include/python2.6 is invalid.
   warnings.warn('Specified path %s is invalid.' % d)
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/system_info.py:520:
UserWarning: Specified path /opt/local/include/python2.6 is invalid.
   warnings.warn('Specified path %s is invalid.' % d)
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/system_info.py:520:
UserWarning: Specified path  is invalid.
   warnings.warn('Specified path %s is invalid.' % d)
Found executable /usr/bin/wx-config
zip_safe flag not set; analyzing archive contents...
setupdocs.setupdocs: module references __file__

Installed
/private/tmp/easy_install-2FCczs/Enable-3.3.1/SetupDocs-1.0.4-py2.6.egg
/private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/agg/src/gl/plat_support.i:83:
Warning(121): %name is deprecated.  Use %rename instead.
/private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/mac/ABCGI.pyx:189:4:
__new__ method of extension type will change semantics in a future
version of Pyrex. Use __cinit__ instead.
/private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/mac/ABCGI.pyx:1369:4:
__new__ method of extension type will change semantics in a future
version of Pyrex. Use __cinit__ instead.
/private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/mac/ABCGI.pyx:1575:4:
__new__ method of extension type will change semantics in a future
version of Pyrex. Use __cinit__ instead.
/private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/mac/ABCGI.pyx:721:28:
Warning: 'not None' will become the default in a future version of
Pyrex. Use 'or None' to allow passing None.
Traceback (most recent call last):
   File
"/Library/Frameworks/Python.framework/Versions/2.6/bin/easy_install",
line 8, in <module>
     load_entry_point('setuptools==0.6c9', 'console_scripts',
'easy_install')()
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py",
line 1671, in main
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py",
line 1659, in with_ei_usage
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py",
line 1675, in <lambda>
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py",
line 152, in setup
     dist.run_commands()
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 975, in run_commands
     self.run_command(cmd)
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 995, in run_command
     cmd_obj.run()
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py",
line 211, in run
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py",
line 446, in easy_install
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py",
line 476, in install_item
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py",
line 655, in install_eggs
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py",
line 930, in build_and_install
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py",
line 919, in run_setup
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py",
line 27, in run_setup
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py",
line 63, in run
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py",
line 29, in <lambda>
   File "setup.py", line 328, in <module>
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/core.py",
line 186, in setup
     return old_setup(**new_attr)
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py",
line 152, in setup
     dist.run_commands()
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 975, in run_commands
     self.run_command(cmd)
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 995, in run_command
     cmd_obj.run()
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/bdist_egg.py",
line 167, in run
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py",
line 333, in run_command
     self.distribution.run_command(command)
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 995, in run_command
     cmd_obj.run()
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/command/egg_info.py",
line 8, in run
     self.run_command("build_src")
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py",
line 333, in run_command
     self.distribution.run_command(command)
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 995, in run_command
     cmd_obj.run()
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/command/build_src.py",
line 152, in run
     self.build_sources()
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/command/build_src.py",
line 169, in build_sources
     self.build_extension_sources(ext)
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/command/build_src.py",
line 328, in build_extension_sources
     sources = self.generate_sources(sources, ext)
   File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/command/build_src.py",
line 385, in generate_sources
     source = func(extension, build_dir)
   File
"/private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/mac/setup.py",
line 36, in generate_c_from_pyrex
RuntimeError: 3 errors in Pyrex compile


Any ideas what is wrong here?

Thanks in advance, Christian

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: installing Enable on Snow Leopard fails

Christian K.
Am 20.07.10 20:31, schrieb Christian K.:
> /private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/mac/ABCGI.pyx:189:4:
> __new__ method of extension type will change semantics in a future
> version of Pyrex. Use __cinit__ instead.
> /private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/mac/ABCGI.pyx:1369:4:
> __new__ method of extension type will change semantics in a future
> version of Pyrex. Use __cinit__ instead.
> /private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/mac/ABCGI.pyx:1575:4:
> __new__ method of extension type will change semantics in a future
> version of Pyrex. Use __cinit__ instead.

This sounds like a future warning but is treated like an error.

 >
"/private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/mac/setup.py",
 > line 36, in generate_c_from_pyrex
 > RuntimeError: 3 errors in Pyrex compile

If I change __new__ to __cinit__ in ABCGI.pyx, the c-file is generated
and the egg will be built.


Christian




_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: installing Enable on Snow Leopard fails

Peter Wang
On Thu, Jul 22, 2010 at 4:30 AM, Christian K. <[hidden email]> wrote:
> Am 20.07.10 20:31, schrieb Christian K.:
> "/private/tmp/easy_install-2FCczs/Enable-3.3.1/enthought/kiva/mac/setup.py",
>  > line 36, in generate_c_from_pyrex
>  > RuntimeError: 3 errors in Pyrex compile
>
> If I change __new__ to __cinit__ in ABCGI.pyx, the c-file is generated
> and the egg will be built.

Great, thanks for reporting this.  I have committed a fix for this in r25681.

-Peter
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev