View Single Post
Old 05-12-2013, 06:42 PM   #272
thoreau
Enthusiast
thoreau solves Fermat’s last theorem while doing the crossword.thoreau solves Fermat’s last theorem while doing the crossword.thoreau solves Fermat’s last theorem while doing the crossword.thoreau solves Fermat’s last theorem while doing the crossword.thoreau solves Fermat’s last theorem while doing the crossword.thoreau solves Fermat’s last theorem while doing the crossword.thoreau solves Fermat’s last theorem while doing the crossword.thoreau solves Fermat’s last theorem while doing the crossword.thoreau solves Fermat’s last theorem while doing the crossword.thoreau solves Fermat’s last theorem while doing the crossword.thoreau solves Fermat’s last theorem while doing the crossword.
 
Posts: 47
Karma: 28546
Join Date: Oct 2011
Device: KOA
I had good luck converting stardict to csv to look at a file in excel, but when I try to convert that .csv to anything else except sd (I want a kobo dict) I get an error:

Spoiler:
Quote:
Traceback (most recent call last):
File "penelope.py", line 2092, in <module>
main()
File "penelope.py", line 2068, in main
write_to_kobo_format(config, parsed_data, debug)
File "penelope.py", line 1217, in write_to_kobo_format
p = subprocess.Popen([MARISA_BUILD_PATH, "-l", "-o", index_filename], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1228, in _execute_child
OSError: [Errno 2] No such file or directory


So I tried updating to python 3.3, but even after calling the new version of python from /usr/local/bin/python3, and the penelope3.py script, I still receive this error:

Spoiler:
Quote:
[INFO] Creating compressed index file words...
Traceback (most recent call last):
File "penelope3.py", line 2094, in <module>
main()
File "penelope3.py", line 2072, in main
write_to_kobo_format(config, parsed_data, debug)
File "penelope3.py", line 1221, in write_to_kobo_format
p = subprocess.Popen([MARISA_BUILD_PATH, "-l", "-o", index_filename], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 820, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 1438, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/home/alberto/.bin/marisa-0.2.0/tools/marisa-build'


Any ideas? The two errors seem closely related, but I'm afraid I've troubleshooted to my knowledge. Thanks.

edit: this is running on Mac OSX 10.8.2

Last edited by thoreau; 05-12-2013 at 06:44 PM.
thoreau is offline   Reply With Quote