unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54238: Fw: missing files from aspell-dict package
       [not found] ` <1024116177.96993.1646232556252@mail.yahoo.com>
@ 2022-03-03 11:30   ` vapnik spaknik via Bug reports for GNU Guix
  2022-03-16 13:52     ` Ludovic Courtès
  2023-07-15 19:39     ` bug#54238: File is searched on incorrect path francismb
  0 siblings, 2 replies; 3+ messages in thread
From: vapnik spaknik via Bug reports for GNU Guix @ 2022-03-03 11:30 UTC (permalink / raw)
  To: 54238

I have installed the latest versions of aspell & aspell-dict-en via guix on a foreign distro:

> guix package --list-installed=aspell\*
aspell                0.60.8               out    /gnu/store/xyz0ljdw4m25k8vhnl8261ywq7dvmr49-aspell-0.60.8
aspell-dict-en    2020.12.07-0    out    /gnu/store/v90ifhzvln0p61i6xpadjj6qvjqvr4sb-aspell-dict-en-2020.12.07-0 

However, when recollindex tries to run this aspell command it emits an error:

> aspell --lang=en --encoding=utf-8 create master ~/recoll/aspdict.en.rws
Error: The language "en" is not known. This is probably because: the file "/gnu/store/xyz0ljdw4m25k8vhnl8261ywq7dvmr49-aspell-0.60.8/lib/aspell-0.60/en.dat" can not be opened for reading.

If I add a --data-dir option to point to the aspell-dict-en dir which contains en.dat I get a different error:
> aspell --data-dir=~/.guix-profile/lib/aspell --lang=en --encoding=utf-8 create master ~/recoll/aspdict.en.rws
Error: The file "~/.guix-profile/lib/aspell/iso-8859-1.cset" can not be opened for reading. 

The aspell installation contains cset & cmap files in its lib/aspell-0.60/ subdir, but no dat files, whereas the aspell-dict-en contains dat files but not cset or cmap files. However, aspell expects them to be in the same directory, as they are in the debian aspell package (in /usr/lib/aspell).

Joe 

p.s. "vapnik spaknik" is a randomly chosen email name for the sake of anonymity, not a shady Russian cracker. I prefer to (try to) stay anonymous online because I took heed of Richard Stallmans warnings about the internet, not because I'm doing anything dodgy. I say these things because I worry that the current political situation may invoke a negative reaction to the name in the From field of this message, and reduce its chances of being answered.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#54238: Fw: missing files from aspell-dict package
  2022-03-03 11:30   ` bug#54238: Fw: missing files from aspell-dict package vapnik spaknik via Bug reports for GNU Guix
@ 2022-03-16 13:52     ` Ludovic Courtès
  2023-07-15 19:39     ` bug#54238: File is searched on incorrect path francismb
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2022-03-16 13:52 UTC (permalink / raw)
  To: vapnik spaknik; +Cc: 54238

Hello,

vapnik spaknik <vapniks@yahoo.com> skribis:

> I have installed the latest versions of aspell & aspell-dict-en via guix on a foreign distro:
>
>> guix package --list-installed=aspell\*
> aspell                0.60.8               out    /gnu/store/xyz0ljdw4m25k8vhnl8261ywq7dvmr49-aspell-0.60.8
> aspell-dict-en    2020.12.07-0    out    /gnu/store/v90ifhzvln0p61i6xpadjj6qvjqvr4sb-aspell-dict-en-2020.12.07-0 
>
> However, when recollindex tries to run this aspell command it emits an error:
>
>> aspell --lang=en --encoding=utf-8 create master ~/recoll/aspdict.en.rws
> Error: The language "en" is not known. This is probably because: the file "/gnu/store/xyz0ljdw4m25k8vhnl8261ywq7dvmr49-aspell-0.60.8/lib/aspell-0.60/en.dat" can not be opened for reading.
>
> If I add a --data-dir option to point to the aspell-dict-en dir which contains en.dat I get a different error:
>> aspell --data-dir=~/.guix-profile/lib/aspell --lang=en --encoding=utf-8 create master ~/recoll/aspdict.en.rws
> Error: The file "~/.guix-profile/lib/aspell/iso-8859-1.cset" can not be opened for reading. 
>
> The aspell installation contains cset & cmap files in its lib/aspell-0.60/ subdir, but no dat files, whereas the aspell-dict-en contains dat files but not cset or cmap files. However, aspell expects them to be in the same directory, as they are in the debian aspell package (in /usr/lib/aspell).

I replied before seeing this bug report at
<https://lists.gnu.org/archive/html/help-guix/2022-03/msg00045.html>,
and asked the following questions:

> Normally ~/.guix-profile/etc/profile does:
> 
>   export ASPELL_DICT_DIR="$HOME/lib/aspell“
> 
> Can you confirm that’s the case?

and:

> I’m not familiar enough with Aspell.  Do you think this is a
> misconfiguration of the ‘aspell-dict-en’ package and possibly other
> ‘aspell-dict-’ packages?
> 
> --8<---------------cut here---------------start------------->8---
> $ find $(guix build aspell-dict-fr ) -name \*cset
> $ find $(guix build aspell-dict-fr ) -name \*cmap
> $ find $(guix build aspell-dict-en ) -name \*cmap
> --8<---------------cut here---------------end--------------->8---
> 
> Let us know if you have clues on how to fix it.

Thanks in advance for your help,
Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#54238: File is searched on incorrect path
  2022-03-03 11:30   ` bug#54238: Fw: missing files from aspell-dict package vapnik spaknik via Bug reports for GNU Guix
  2022-03-16 13:52     ` Ludovic Courtès
@ 2023-07-15 19:39     ` francismb
  1 sibling, 0 replies; 3+ messages in thread
From: francismb @ 2023-07-15 19:39 UTC (permalink / raw)
  To: 54238

Hi,
here on the same track, trying to use recoll on guix foreign distro:

1) recoll log.txt
[...]
:2:index/indexer.cpp:405::ConfIndexer::createAspellDict: aspell
buildDict failed: aspell dictionary creation command failed:
/gnu/store/mgcicm6phq4971195znrrv804r89sb0b-aspell-0.60.8/bin/aspell
--lang=en --encoding=utf-8 create master /home/ci/.recoll/aspdict.en.rws
One possible reason might be missing language data files for lang = en.
Maybe try to execute the command by hand for a better diag.
[...]


2) ~$ guix package --list-installed=aspell\*
aspell-dict-es	1.11-2      	out
/gnu/store/0jzq0qb1ljq973h403japslq5kvsr13g-aspell-dict-es-1.11-2
aspell        	0.60.8      	out
/gnu/store/mgcicm6phq4971195znrrv804r89sb0b-aspell-0.60.8
aspell-dict-uk	1.4.0-0     	out
/gnu/store/7b4925ih5xgfkscd5zd0bp57ms62d6j6-aspell-dict-uk-1.4.0-0
aspell-dict-de	20161207-7-0	out
/gnu/store/r4gmz8ff5z26kswk435rg47pl9kpx59x-aspell-dict-de-20161207-7-0
aspell-dict-en	2020.12.07-0	out
/gnu/store/bssgajl900xbki758ainw9kimza9jxmi-aspell-dict-en-2020.12.07-0
aspell-dict-ca	2.5.0       	out
/gnu/store/ln7c0ibs6li92r12yraqcwwn3l29psa6-aspell-dict-ca-2.5.0


Trying to run the aspell, as the recoll log.txt:
3) ~$ aspell --lang=en --encoding=utf-8 create master
$HOME/.recoll/aspict.en.rws
Error: The language "en" is not known. This is probably because: the
file
"/gnu/store/mgcicm6phq4971195znrrv804r89sb0b-aspell-0.60.8/lib/aspell-0.60/en.dat"
can not be opened for reading.


Find does not seem to find anything:

4) ~$ find $(guix build aspell-dict-en) -name \*cset

5) ~$ find $(guix build aspell-dict-en) -name \*cmap


as vapnik spaknik stated, there seems to be no "file
"/gnu/store/mgcicm6phq4971195znrrv804r89sb0b-aspell-0.60.8/lib/aspell-0.60/en.dat"
but those are on the language package itself:

6) ~$ find $(guix build aspell-dict-en) -name \*.dat
/gnu/store/bssgajl900xbki758ainw9kimza9jxmi-aspell-dict-en-2020.12.07-0/lib/aspell/en_phonet.dat
/gnu/store/bssgajl900xbki758ainw9kimza9jxmi-aspell-dict-en-2020.12.07-0/lib/aspell/en_affix.dat
/gnu/store/bssgajl900xbki758ainw9kimza9jxmi-aspell-dict-en-2020.12.07-0/lib/aspell/en.dat

(that last is not
"/gnu/store/mgcicm6phq4971195znrrv804r89sb0b-aspell-0.60.8/lib/aspell-0.60/en.dat"
(see 3)

I hope it helps!
francisMB





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-15 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1024116177.96993.1646232556252.ref@mail.yahoo.com>
     [not found] ` <1024116177.96993.1646232556252@mail.yahoo.com>
2022-03-03 11:30   ` bug#54238: Fw: missing files from aspell-dict package vapnik spaknik via Bug reports for GNU Guix
2022-03-16 13:52     ` Ludovic Courtès
2023-07-15 19:39     ` bug#54238: File is searched on incorrect path francismb

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).