Posts tagged 'packages'

ImportError: No module named BeautifulSoup

Had this issue when you’ve been trying to run something like Funnelweb, and you hit an ImportError for BeautifulSoup?  You’re definitely not alone, because I just hit the same issue.  The answer is simple — just ensure that you don’t use BeautifulSoup 4 or above (this is still beta) — it uses a different namespace, specifically bs4. Thus, whilst you might have the BeautifulSoup egg satisfying your dependencies, any imports of this package are going to fail.

For me, I’m using buildout, so I just pinned my version of BeautifulSoup thusly:

[buildout]
...
versions = versions

[versions]
BeautifulSoup = 3.2 …

Installing Python 2.4 on Ubuntu 10.04 Lucid Lynx

Whoops.  No one sent me the memo that Python 2.4 support was being removed entirely from the latest version of Ubuntu, 10.04 Lucid Lynx.  To be fair, I was presented with the message that ‘these outdated packages will be removed’ and in that list was python2.4.  I made the unfortunate assumption that this just mean the package was outdated (which it certainly is) and I’d have the ability to install it again in Lucid.  There were a number of different packages on the list and in order to save time, I let the updater remove them …