Sorry for taking so long to reply.

I've been trying to reproduce this, but I can't even install the package.
When I try to install apertium-python using pipenv, it fails.

It seems that this fix [1] never got to be published into Pypi

Tino, Sushain, would it be possible to push a new version to Pypi?

I'm happy to do some maintenance to the repo first, to merge some of the
merge requests opened (like the dependabot ones).

Xavi

[1] https://github.com/apertium/apertium-python/issues/83

Missatge de Mikel L. Forcada <[email protected]> del dia ds., 30 de jul. 2022
a les 13:41:

> Dear apertiumers:
>
> I may have sent this message to the wrong list, or twice.  Apologies if
> you receive it more than once.
>
> Following up on Adam Bittlingmayer's Telegram message and this comment on
> StackOverflow,
>
>
> https://stackoverflow.com/questions/73151814/apertium-package-in-python-returns-module-not-installed-error-after-installing-m
>
>  I tried installing apertium on a python virtual environment:
>
> conda create -m apertium python=3
>
> conda activate apertium
>
> pip install apertium
>
> I wonder why it asked me for root permissions I would expect this to be
> different in a virtual environment (where it would have to install all of
> apertium!). I went on, and then, in a python shell, I executed his sequence
> of commands
>
> import apertium
> apertium.installer.install_module("eng")
> apertium.installer.install_module("deu")
> apertium.installer.install_module("eng-deu")
>
> I was surprised to see that the system asked me again for my root
> password, probably for monolingual or bilingual modules not installed.
>
> Then I ran
>
> r = apertium.Translator('eng', 'deu')print(r.translate('cats'))
>
> and sure, the first time it failed, saying something about the module not
> installed, but restarting the shell it worked!
>
> But then it segfaulted and dumped the core on a longer sentence (did not
> with other).
>
> >>> print(r.translate('Cats are beautiful.'))
> Violació de segment (s'ha bolcat la memòria)
>
> Any idea what may be going on?
>
> (1) why does it need to install apertium things with root privileges when
> ran from a virtual env?
>
> (2) why does it say the module is not installed unless I restart the shell?
>
> Thanks a million!
>
> Mikel
>
> --
> Mikel L. Forcada
> Dept. de Llenguatges i Sistemes Informàtics
> Edifici Politècnica IV,
> Universitat d'Alacant
> E-03690 Sant Vicent del Raspeig (Spain)
>
> Phone: +34 96 590 [email protected]
>
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>


-- 
< Xavi Ivars >
< http://xavi.ivars.me >
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to