r2e runs python from $PATH
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rss2email (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: rss2email
hi there --
after apt-get installing rss2email on Gutsy, when I run /usr/bin/r2e, I get this:
: jm 151...; r2e new <email address hidden>
Traceback (most recent call last):
File "/usr/share/
import feedparser
ImportError: No module named feedparser
This is because I have a custom build of python in /usr/local/bin, $PATH
contains /usr/local/bin before /usr/bin, and my custom build doesn't have
feedparser installed.
To fix:
--- r2e.bak 2008-02-14 12:57:03.000000000 +0000
+++ /usr/bin/r2e 2008-02-14 12:57:52.000000000 +0000
@@ -13,4 +13,7 @@
mkdir -p "$dir"
fi
cd "$dir"
+# use /usr/bin/python if possible, so that apt dependency on feedparser will work
+PATH=/
+export PATH
exec python /usr/share/
Changed in rss2email (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in rss2email (Ubuntu): | |
status: | Confirmed → Fix Released |
Is this symptom still reproducible in 8.10 or 9.04?