Letractively / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

install via easy_install seems broken #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. easy_install -U "rdflib>=2.4, <=3.0a"
2. <sit back and watch>
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 <module>
    load_entry_point('setuptools==0.6c7', 'console_scripts', 'easy_install')()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setu
ptools/command/easy_install.py",
line 1670, in main
    with_ei_usage(lambda:
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setu
ptools/command/easy_install.py",
line 1659, in with_ei_usage
    return f()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setu
ptools/command/easy_install.py",
line 1674, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutil
s/core.py",
line 151, in setup
    dist.run_commands()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutil
s/dist.py",
line 974, in run_commands
    self.run_command(cmd)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutil
s/dist.py",
line 994, in run_command
    cmd_obj.run()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setu
ptools/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/setu
ptools/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/setu
ptools/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/setu
ptools/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/setu
ptools/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/setu
ptools/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/setu
ptools/sandbox.py",
line 27, in run_setup
    lambda: execfile(
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setu
ptools/sandbox.py",
line 63, in run
    return func()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setu
ptools/sandbox.py",
line 29, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 56, in <module>
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutil
s/core.py",
line 151, in setup
    dist.run_commands()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutil
s/dist.py",
line 974, in run_commands
    self.run_command(cmd)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutil
s/dist.py",
line 994, in run_command
    cmd_obj.run()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setu
ptools/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/setu
ptools/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/distutil
s/cmd.py",
line 333, in run_command
    self.distribution.run_command(command)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutil
s/dist.py",
line 994, in run_command
    cmd_obj.run()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setu
ptools/command/install_lib.py",
line 20, in run
    self.build()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutil
s/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/distutil
s/cmd.py",
line 333, in run_command
    self.distribution.run_command(command)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutil
s/dist.py",
line 994, in run_command
    cmd_obj.run()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setu
ptools/command/build_ext.py",
line 46, in run
    _build_ext.run(self)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutil
s/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/Di
stutils/build_ext.py",
line 82, in build_extensions
    self.build_extension(ext)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setu
ptools/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/distutil
s/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/setu
ptools/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)

Original issue reported on code.google.com by wjh...@gmail.com on 25 Feb 2009 at 8:36

GoogleCodeExporter commented 9 years ago
Which version of Py are you running?

Original comment by kalyanku...@gmail.com on 20 Mar 2009 at 6:22

GoogleCodeExporter commented 9 years ago
Latest OS X, python --version => "Python 2.5.1"

Original comment by wjh...@gmail.com on 20 Mar 2009 at 2:20

GoogleCodeExporter commented 9 years ago
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$ 

Original comment by eik...@gmail.com on 24 Mar 2009 at 11:45

GoogleCodeExporter commented 9 years ago
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
[...]

Original comment by eik...@gmail.com on 24 Mar 2009 at 11:47

GoogleCodeExporter commented 9 years ago
Ahh, yep you're right! 
I removed Pyrex from my site-packages directory and it installed fine.

Thanks!

Original comment by wjh...@gmail.com on 25 Mar 2009 at 3:28

GoogleCodeExporter commented 9 years ago
It was found that Pyrex was causing the issue.

Original comment by eik...@gmail.com on 31 Mar 2009 at 7:02