Monday, August 3, 2009

mozrunner on Fedora x86_64

If you try to use the mozrunner python library on Fedora or Red Hat x86_64, you'll get:
$ mozrunner
Traceback (most recent call last):
File "/home/scottt/work/itrs_test/env/bin/mozrunner", line 8, in
load_entry_point('mozrunner==1.3.5', 'console_scripts', 'mozrunner')()
File "/home/scottt/work/itrs_test/env/lib/python2.6/site-packages/mozrunner/__init__.py", line 86, in main
moz = get_moz_from_settings(settings)
File "/home/scottt/work/itrs_test/env/lib/python2.6/site-packages/mozrunner/__init__.py", line 165, in get_moz_from_settings
cmd_args=settings['MOZILLA_CMD_ARGS'])
File "/home/scottt/work/itrs_test/env/lib/python2.6/site-packages/mozrunner/__init__.py", line 131, in get_moz
raise Exception ('No default or local profile has been set.')
Exception: No default or local profile has been set.
the solution: see mozrunner issue 10 for a trivial patch to ask mozrunner to look under /usr/lib64 instead of just /usr/lib.

If you're trying to use the windmill web testing framework, you'll need mozrunner-1.x-fedora-x86_64.patch instead until someone ports windmill to mozrunner-2.

Don't you just love 64 bit userspace packaging differences (multilib) between Linux distributions?