[sword-devel] trouble finding modules?

Joachim Ansorg junkmail at joachim.ansorgs.de
Thu May 13 04:07:38 MST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Where are your modules installed? Your Sword is configured to search 
in /usr/local/share/sword.
You may want to call ./usrinst.sh to configure it to use /usr/share/sword/

GnomeSword may be linked statically to the lib so it may have a differen 
default path.

Joachim

On Donnerstag, 13. Mai 2004 11:30, Timothy Stebbing wrote:
> Hi All,
>
> Some of you might know me from irc.freenode.net #sword, I'm tjs there, and
> I'm new to the SWORD project.
>
> A friend and I are interested in using SWORD via its python SWIG api, but
> I'm having some issues.
>
> I've got a recent version from CVS and built/installed it with the python
> bindings. However, it doesn't seem to be able to find its modules, even
> though gnomesword is also installed and it has access to the 'WEB' text.
>
> here is an example of what I mean:
>
> Python 2.3.3 (#2, Feb 24 2004, 09:29:20)
> [GCC 3.3.3 (Debian)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> from Sword import SWMgr
>
> Checking working directory for mods.conf...
> Checking working directory for mods.d...
> Checking SWORD_PATH...
> Parsing /usr/local/etc/sword.conf...
> Checking for /usr/local/etc/sword.conf...found
> DataPath in /usr/local/etc/sword.conf is set to: /usr/local/share/sword/
> Checking for mods.conf in DataPath
> Checking for mods.d in DataPath found
> created default StringMgr
> LocaleMgr::loadConfigDir loading
> /usr/local/share/sword/locales.dLocaleMgr::getLocale failed to find en_US
>
> >>> m = SWMgr()
>
> Checking working directory for mods.conf...
> Checking working directory for mods.d...
> Checking SWORD_PATH...
> Parsing /usr/local/etc/sword.conf...
> Checking for /usr/local/etc/sword.conf...found
> DataPath in /usr/local/etc/sword.conf is set to: /usr/local/share/sword/
> Checking for mods.conf in DataPath
> Checking for mods.d in DataPath found
>
> >>> m.moduleCount()
>
> 0
>
> It seemed to have an issue with en_US, so on a hunch I did:
> >>> l = Sword.LocaleMgr()
>
> Checking working directory for mods.conf...
> Checking working directory for mods.d...found
> LocaleMgr::loadConfigDir loading ./locales.d
>
> >>> l.getAvailableLocales()
>
> '_b8922408_p_std__listTSWBuf_t'
>
> >>> l.getDefaultLocaleName()
>
> 'en_US'
>
> >>> l.setDefaultLocaleName('en_GB')
> >>> m.moduleCount()
>
> 0
>
>
> What am I missing?
>
> -tjs
> _______________________________________________
> sword-devel mailing list
> sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel

- -- 
<>< Re: deemed!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAo1b6EyRIb2AZBB0RAl6xAJ442I0PB1QHniKDHlafVa5tXafoTQCfZAY8
o3HeZ+++wueCLedX1sTI+7o=
=JBWw
-----END PGP SIGNATURE-----


More information about the sword-devel mailing list