Re: [sword-devel] failing to install LXX with installmgr

2023-01-29 Thread Hermes Huguet
Try
installmgr->setTimeoutMillis(6);
___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Possibility to install arbitrary module versions with InstallMgr

2022-09-28 Thread Hermes Huguet
Does libsword assume that a module install or update is successful
because there was no interruption in connection?

On Tue, Sep 27, 2022 at 4:51 PM Tobias Klein  wrote:
>
> Thank you, Troy!
>
> Well, it's probably just my developer's mind ... thinking that something 
> could go wrong with a module update and one may want to revert back to a 
> previous version.
>
> Best regards,
> Tobias
___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Sword::InstallMgr: Linux issues.

2022-09-11 Thread Hermes Huguet
Am I missing something? Here is the issue.

Upon trying to install the EarlyFathers module, it consistently fails.
This is reproducible on Linux (even when using Xiphos 4.2.1). However,
when trying to install the same module on Windows through Xiphos 4.2.1
it installs perfectly fine. Since I have trouble compiling libsword on
Windows (and therefore Python bindings) and I have trouble compiling
Python bindings on Linux, I am unable to test if the example code
below won't result in -9 within different contexts. Nevertheless, this
suggests to me that there is something internally wrong with the
libsword library, but I don't know what the difference is. Can anyone
shed some light on this? Other modules install fine with the same code
(though there might exist more modules that won't).

Example code (Ubuntu; python3-sword 1.9.0):
---
import Sword;

if __name__ == '__main__':
mgr = Sword.SWMgr('/path/to/local/repo');

install = Sword.InstallMgr(mgr.prefixPath);
install.setUserDisclaimerConfirmed(True);

sources = install.sources.items();
source = None;

for y,x in sources:
if str(x.caption) == 'Xiphos':
source = x;
break;

if source is not None:
result = install.installModule(mgr, None, 'EarlyFathers', source);
print(result); # -9
else:
raise Exception;
---
___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page