[Windmill-dev] KeyError: 'MOZILLA_DEFAULT_PROFILE'
Mikeal Rogers
mikeal at mozilla.com
Mon Jun 23 12:20:17 PDT 2008
Windmill tries very hard to find your local firefox install and the
default profile location (a clean profile that firefox uses to create
new profiles).
When we can't find it, we don't fail gracefully, this is an issue I
actually have code to deal with but haven't merged yet.
Ubuntu loves to tweak it's firefox install, so I'm not surprised a new
issue is surfacing. On linux, this is where we currently look for the
default profile;
('/usr/lib/iceweasel/defaults/profile',
'/usr/share/firefox/defaults/profile',
'/usr/lib/mozilla-firefox/defaults/profile',)
This is the current list in trunk, not the latest release. Could you
please look around for this profile and tell us where it is and we can
add it to the list.
In the meantime, you can set the profile location by hand. Edit
~/.windmill/prefs.py and add a line for;
MOZILLA_DEFAULT_PROFILE = "/path/to/profile"
-Mikeal
On Jun 22, 2008, at June 22, 200812:24 AM, Eugene Van den Bulke wrote:
> Hi,
>
> I would like to take Windmill for a test ride but I am struggling :P I
> installed it without a problem on Ubuntu 8.04 using easy_install but
> when I try to launch the IDE using
>
> windmill firefox http://localhost:8000
>
> I get ...
>
> Traceback (most recent call last):
> File "/usr/bin/windmill", line 8, in <module>
> load_entry_point('windmill==0.4.2', 'console_scripts', 'windmill')()
> File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/
> windmill/bin/windmill_bin.py",
> line 52, in main
> admin_lib.command_line_startup()
> File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/
> windmill/bin/admin_lib.py",
> line 322, in command_line_startup
> shell_objects = setup()
> File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/
> windmill/bin/admin_lib.py",
> line 163, in setup
> shell_objects_dict['browser'] = getattr(shell_objects,
> browser[0].lower())()
> File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/
> windmill/bin/shell_objects.py",
> line 40, in start_firefox
> controller = windmill.browser.get_firefox_controller()
> File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/
> windmill/browser/__init__.py",
> line 23, in get_firefox_controller
> profile = firefox.MozillaProfile()
> File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/
> windmill/browser/firefox.py",
> line 61, in __init__
> shutil.copytree(windmill.settings['MOZILLA_DEFAULT_PROFILE'],
> self.profile_path)
> KeyError: 'MOZILLA_DEFAULT_PROFILE'
>
> Help would be greatly appreciated, regards,
>
> EuGeNe -- http://www.3kwa.com
> _______________________________________________
> Windmill-dev mailing list
> Windmill-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/windmill-dev
More information about the Windmill-dev
mailing list