[email protected], 2009-02-25T20:36:05.000Z
What steps will reproduce the problem?
1. easy_install -U "rdflib>=2.4, <=3.0a"
2.
3.
What is the expected output? What do you see instead?
Should be installed
What version of the product are you using? On what operating system?
Latest OS X, python --version => "Python 2.5.1"
Please provide any additional information below.
Here's the output;
oki:~ wjhuie$ easy_install -U "rdflib>=2.4, <=3.0a"
Searching for rdflib>=2.4,<=3.0a
Reading http://pypi.python.org/simple/rdflib/
Reading http://rdflib.net/
Best match: rdflib 2.4.0
Downloading http://rdflib.net/rdflib-2.4.0.tar.gz
Processing rdflib-2.4.0.tar.gz
Running rdflib-2.4.0/setup.py -q bdist_egg --dist-dir
/var/folders/Ss/SsOhY420GSC3XLYfkXrvL++++TI/-Tmp-/easy_install-dXycHP/rdflib-2.4.0/egg-dist-tmp-BNHEav
warning: no files found matching 'example.py'
Traceback (most recent call last):
File "/usr/bin/easy_install", line 8, in
load_entry_point('setuptools==0.6c7', 'console_scripts', 'easy_install')()
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.py",
line 1670, in main
with_ei_usage(lambda:
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.py",
line 1659, in with_ei_usage
return f()
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.py",
line 1674, in
distclass=DistributionWithoutHelpCommands, **kw
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py",
line 151, in setup
dist.run_commands()
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 974, in run_commands
self.run_command(cmd)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.py",
line 211, in run
self.easy_install(spec, not self.no_deps)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.py",
line 446, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.py",
line 471, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.py",
line 655, in install_eggs
return self.build_and_install(setup_script, setup_base)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.py",
line 930, in build_and_install
self.run_setup(setup_script, setup_base, args)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.py",
line 919, in run_setup
run_setup(setup_script, args)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/sandbox.py",
line 27, in run_setup
lambda: execfile(
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/sandbox.py",
line 63, in run
return func()
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/sandbox.py",
line 29, in
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 56, in
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py",
line 151, in setup
dist.run_commands()
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 974, in run_commands
self.run_command(cmd)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/bdist_egg.py",
line 174, in run
cmd = self.call_command('install_lib', warn_dir=0)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/bdist_egg.py",
line 161, in call_command
self.run_command(cmdname)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install_lib.py",
line 20, in run
self.build()
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/install_lib.py",
line 112, in build
self.run_command('build_ext')
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_ext.py",
line 46, in run
_build_ext.run(self)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build_ext.py",
line 290, in run
self.build_extensions()
File
"/Users/wjhuie/Library/Python/2.5/site-packages/Pyrex-0.9.8.5-py2.5.egg/Pyrex/Distutils/build_ext.py",
line 82, in build_extensions
self.build_extension(ext)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_ext.py",
line 175, in build_extension
_build_ext.build_extension(self,ext)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build_ext.py",
line 453, in build_extension
sources = self.swig_sources(sources, ext)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_ext.py",
line 77, in swig_sources
sources = _build_ext.swig_sources(self, sources) or sources
TypeError: swig_sources() takes exactly 3 arguments (2 given)
Comment 1 by [email protected]
Which version of Py are you running?
Comment 2 by [email protected]
Latest OS X, python --version => "Python 2.5.1"
Comment 3 by [email protected]
Looks like it might be Pyrex causing the issue. Noticed this in the stack trace:
/Users/wjhuie/Library/Python/2.5/site-packages/Pyrex-0.9.8.5-py2.5.egg/Pyrex/Distutils/build_ext.py
Am not able to reproduce the issue here. I'll try installing Pyrex and see if that does it.
dsl092-168-195:~ eikeon$ sudo easy_install -U "rdflib>=2.4, <=3.0a"Searching for rdflib>=2.4,<=3.0a
Reading http://pypi.python.org/simple/rdflib/
Reading http://rdflib.net/
Best match: rdflib 2.4.0
Downloading http://rdflib.net/rdflib-2.4.0.tar.gz
Processing rdflib-2.4.0.tar.gz
Running rdflib-2.4.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-qcsvDJ/rdflib-2.4.0/egg-dist-
tmp-OWyuQU
warning: no files found matching 'example.py'
zip_safe flag not set; analyzing archive contents...
Adding rdflib 2.4.0 to easy-install.pth file
Installing rdfpipe script to /usr/local/bin
Installed /Library/Python/2.5/site-packages/rdflib-2.4.0-py2.5-macosx-10.5-i386.egg
Processing dependencies for rdflib>=2.4,<=3.0a
Finished processing dependencies for rdflib>=2.4,<=3.0a
dsl092-168-195:~ eikeon$ uname -a
Darwin dsl092-168-195.wdc2.dsl.speakeasy.net 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00
PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386
dsl092-168-195:~ eikeon$
Comment 4 by [email protected]
Bingo. Pyrex is causing the problem:
[...]
File "/Library/Python/2.5/site-packages/Pyrex-0.9.8.5-py2.5.egg/Pyrex/Distutils/build_ext.py", line 82, in
build_extensions
[...]
Comment 5 by [email protected]
Ahh, yep you're right!
I removed Pyrex from my site-packages directory and it installed fine.
Thanks!
Comment 6 by [email protected]
It was found that Pyrex was causing the issue.