[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error while running Duali's dict2db.py on Windows 2000



On Wed, Apr 09, 2003 at 07:02:32PM +0300, Ossama Khayaat wrote:

Salam,

> I downloaded the duali-0.1a and duali-data files.
> Tried to run the dict2db.py on my Windows 2000 Advanced Server after I 
> downloaded and installed Python 2.2.2 and I got this error.
> ----------------------------------------------------
> C:\duali-data>dict2db.py
> dict2db - $Revision: 1.1 $
> 
> Writing stems...
> Traceback (most recent call last):
>  File "C:\duali-data\dict2db.py", line 102, in ?
>    main()
>  File "C:\duali-data\dict2db.py", line 95, in main
>    createDictDB("stems")
>  File "C:\duali-data\dict2db.py", line 87, in createDictDB
>    dict[w_vanilla] = "%s\t%s\t%s\t%s\t%s" % (w_full, w_cat, w_gloss, w_pos,
> bsddb.error: (0, 'Error')


That's odd.. I just reproduced the error on WinXP. Weird.. I had it working
before I packaged it. I will look further into it. In the meantime, I also
put up the ready-made dictionary db files (duali-data-db.zip) on sf.net
Running it under Cygwin seems to be fine too. 


> ----------------------------------------------------
> I tried to run it in IDLE GUI but got another error.
> ----------------------------------------------------
> dict2db - $Revision: 1.1 $
> Traceback (most recent call last):
>  File "C:\duali-data\dict2db.py", line 102, in ?
>    main()
>  File "C:\duali-data\dict2db.py", line 95, in main
>    createDictDB("stems")
>  File "C:\duali-data\dict2db.py", line 51, in createDictDB
>    lines = open(filename, 'r').readlines()
> IOError: [Errno 2] No such file or directory: 'stems'
> ---------------------------------------------------
> 
Yeah, that second error is simply because it couldn't find the files to read 
to begin with. This is a quick hack, and has little to no error checking in 
it ;)

later
-- 
-------------------------------------------------------
| Mohammed Elzubeir    | Visit us at:                 |
|                      |  http://www.arabeyes.org/    |
| Arabeyes Project     | Homepage:                    |
| Unix the 'right' way |  http://fakkir.net/~elzubeir/|
-------------------------------------------------------
---
Was I helpful? Let others know:
http://svcs.affero.net/rm.php?r=elzubeir