View Single Post
Old 04-17-2015, 07:17 AM   #109
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
It is indeed a bug in penelope, due to poor path management. The fact that the tentative output is

'new./cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/sjp-nc.dict'

suggests that you already have

'/cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/sjp-nc.dict'

(indeed, it is one of your input files!) so the script attempts to create

'new.' + '/cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/sjp-nc.dict'

instead of

'/cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/new.sjp-nc.dict'

(here is the bug).

=== === ===

A workaround should be the following:

1. cd to the directory containing the python script
2. copy your input dictionaries there
3. run penelope.py from the same directory

(Not elegant, I know...)

Code:
$ cd ~/penelope/penelope-master/src

$ cp /cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP\ 1.0\ 2006/sjp-nc* .
$ cp /cygdrive/f/Pobrania/Gotowe/_dict/moje/SF\ 1.0\ 2006/sf-nc* .
$ cp /cygdrive/f/Pobrania/Gotowe/_dict/moje/SWB\ 1.0\ 2006/slo-nc* .
$ cp /cygdrive/f/Pobrania/Gotowe/_dict/moje/SWO\ 1.0\ 2006/swo-nc* .

$ python penelope.py --sd -p sjp-nc,sf-nc,slo-nc,swo-nc -f pl -t pl --output-sd
should generate new.sjp-nc.* files with the merged contents.

Last edited by AlPe; 04-17-2015 at 07:27 AM.
AlPe is offline   Reply With Quote