pombreda / feedparser

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

setup.py uses sgmllib, which isn't in the toplevel dir #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?

Checkout the svn codebase, run convert_to_py3.sh and then run

  python3.1 setup.py

in the top-level project directory.

What you get is:

Traceback (most recent call last):
  File "setup.py", line 6, in <module>
    feedparser = imp.load_source('feedparser', path)
  File "feedparser/feedparser.py", line 138, in <module>
    import sgmllib, re, sys, copy, urllib.parse, time, types, cgi, urllib, urllib.request, urllib.error, urllib.parse, datetime
ImportError: No module named sgmllib

After linking to the copy in the feedparser directory:

  ln -s feedparser/sgmllib.py .

I get the expected setup.py behaviour.

> What version of the product are you using? On what operating system?

A checkout of this evening's svn. On debian unstable.

Original issue reported on code.google.com by rswarbr...@gmail.com on 11 Feb 2011 at 12:55

GoogleCodeExporter commented 9 years ago
This is being caused by setup.py importing feedparser.py to use its __version__ 
variable. I'll tackle this when I explore making sgmllib an optional dependency 
for the sake of Python 3.

Original comment by kurtmckee on 14 Feb 2011 at 7:02

GoogleCodeExporter commented 9 years ago
This is fixed in r384.

Original comment by kurtmckee on 20 Apr 2011 at 6:54