swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: its getting better


From: Marcus G. Daniels
Subject: Re: its getting better
Date: 06 Jan 2002 18:49:39 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7

>>>>> "DK" == daniel kottow <address@hidden> writes:

DK> unfortunately, python is not doing so well. the initSwarm call
DK> produces:

DK> +++ nsGenericModule "swarmModule": unable to create factory for
DK> {cb6593e0-f9b2-11d2-bdd6-000064657374} ###!!! ASSERTION: Factory
DK> creation failed: 'NS_SUCCEEDED(rv)', file

DK> you think one has to blame pyxpcom for that ?

No, I think I found the obstacle you probably hit in Swarm. Today's snapshot 
(ftp://ftp.swarm.org/pub/swarm/src/testing/swarm-2002-01-06.tar.gz)
now executes this `hello world' for me on sparc-sun-solaris2.8.  Of
course, there are surely be other problems lurking, but at least I'm
in a position to debug them now...

import xpcom.components;

env = xpcom.components.classes["urn:swarm:SwarmEnvironmentImpl"].createInstance 
(xpcom.components.interfaces.swarmISwarmEnvironment)

env.initSwarm_version_bugAddress_argCount_args ("hello world", "0.0", 
"address@hidden", ["-v"])

env.verboseMessage ("Hello World")

Since I'm using the current CVS trunk of Mozilla, I did have to make
some accomodations in the extensions/python/xpcom code (patch
attached).  The Python/XPCOM module is a bit out of sync with the
current Mozilla development.  Perhaps you won't need the patch if your
Mozilla tree is from before the 19th of December or so.  Here's the
tracking bug:

   http://bugzilla.mozilla.org/show_bug.cgi?id=98553

Attachment: componentManagerPatch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]