libo26 / feedparser

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

`python3 setup.py install` fails #277

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. sudo easy_install3 feedparser 

What is the expected output? 
feedparser installed

What do you see instead?
yossi@ubuntu1:~$ sudo easy_install3 feedparser
Searching for feedparser
Reading http://pypi.python.org/simple/feedparser/
Reading https://code.google.com/p/feedparser/
Best match: feedparser 5.0.1
Downloading http://feedparser.googlecode.com/files/feedparser-5.0.1.zip
Processing feedparser-5.0.1.zip
Running feedparser-5.0.1/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-7MUjNA/feedparser-5.0.1/egg-dist-tmp-sXKc6M
Traceback (most recent call last):
  File "/usr/bin/easy_install3", line 9, in <module>
    load_entry_point('distribute==0.6.10', 'console_scripts', 'easy_install')()
  File "/usr/lib/python3.1/dist-packages/setuptools/command/easy_install.py", line 1760, in main
    with_ei_usage(lambda:
  File "/usr/lib/python3.1/dist-packages/setuptools/command/easy_install.py", line 1741, in with_ei_usage
    return f()
  File "/usr/lib/python3.1/dist-packages/setuptools/command/easy_install.py", line 1764, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python3.1/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib/python3.1/distutils/dist.py", line 919, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.1/distutils/dist.py", line 938, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.1/dist-packages/setuptools/command/easy_install.py", line 254, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python3.1/dist-packages/setuptools/command/easy_install.py", line 489, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python3.1/dist-packages/setuptools/command/easy_install.py", line 519, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python3.1/dist-packages/setuptools/command/easy_install.py", line 698, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python3.1/dist-packages/setuptools/command/easy_install.py", line 975, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python3.1/dist-packages/setuptools/command/easy_install.py", line 964, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python3.1/dist-packages/setuptools/sandbox.py", line 30, in run_setup
    lambda: exec(compile(open(
  File "/usr/lib/python3.1/dist-packages/setuptools/sandbox.py", line 71, in run
    return func()
  File "/usr/lib/python3.1/dist-packages/setuptools/sandbox.py", line 33, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'})
  File "setup.py", line 6, in <module>
  File "feedparser/feedparser.py", line 356
    raise AttributeError, "object has no attribute '%s'" % key
                        ^
SyntaxError: invalid syntax

What version of the product are you using? On what operating system?
feedparser 5.0.1  ubuntu 10.04

Original issue reported on code.google.com by Yossi.Ra...@gmail.com on 20 May 2011 at 7:15

GoogleCodeExporter commented 9 years ago

Original comment by kurtmckee on 22 May 2011 at 5:59

GoogleCodeExporter commented 9 years ago
This should be fixed in r571 (at least I've tested it on Python 2.4 through 
3.2, and I've installed the distribute module v0.6.21 on Python 3.0 and up). 
Please let me know if this doesn't fix the issue!

Original comment by kurtmckee on 29 Aug 2011 at 3:40