Total Pageviews

Friday, 1 June 2012

Revisor on Fedora 17 fails with error "Cannot find anaconda-runtime in /usr/lib/anaconda-runtime"


Issue

When trying to run revisor on fedora 17 revisor fails to start.

[root@fedora-17-tester jbustos]# revisor &

Cannot find anaconda-runtime in /usr/lib/anaconda-runtime

Root Cause

Execution script points to the wrong path of anaconda runtime

[root@fedora-17-tester jbustos]# cat /sbin/revisor

if os.access("/usr/lib/anaconda-runtime/", os.R_OK):
sys.path.append("/usr/lib/anaconda-runtime/")
else:
print >> sys.stderr, _("Cannot find anaconda-runtime in /usr/lib/anaconda-runtime")
sys.exit(1)

Package version

[root@fedora-17-tester jbustos]# rpm -qa revisor
revisor-2.2-4.fc17.noarch

Solution "workaround"

[root@fedora-17-tester jbustos]# ln -s /usr/libexec/anaconda /usr/lib/anaconda-runtime
ln -s /usr/lib/revisor/scripts/DEVEL-buildinstall /usr/lib/anaconda-runtime/buildinstall