Installing Canto, the command line rss feed reader, I get this error,
$ ./canto
Traceback (most recent call last):
File "./canto", line 3, in <module>
import canto.main
File "/usr/lib/python2.7/site-packages/canto/main.py", line 36, in <module>
import canto_fetch
File "/usr/lib/python2.7/site-packages/canto/canto_fetch.py", line 26, in <module>
import feedparser
**ImportError: No module named feedparser**
Feedparser 5.1, the latest, supports Python 3.2. Adding feedparser into /usr/lib/python3.2/site-packages, Canto can not find this package.
I have no knowledge of sorting out library dependencies if the application isn’t configured to do so. Do I need to set a path variable for Canto to the newly installed feedparser in python3.2 or should I install an older version of Feedparser (presumably where Canto is looking in Python2.7, and where the Chardet encoding detection package is also located)?
For whatever reason, the install of Canto was not correct, and you needed to uninstall it and reinstall. (When you wrote ‘Adding feedparser into /usr/lib/python3.2/site-packages’, it sounded like you might have actually copied it directly (wrong) instead of installing it per the instructions with:
$ python setup.py installAnyway you redid 1. (delete and reinstall), restart python and
import feedparser, so that fixed it.(I was skeptical of your theory that the install was correct but wrong version, since you got
ImportError: No module named feedparser, instead of some other import-time error indicating feedparser was present, but the wrong version)