From: garyr <ga...@fi...> - 2009-11-07 16:24:36
|
----- Original Message ----- From: "Thomas Heller" <th...@ct...> To: <py2...@li...> Sent: Saturday, November 07, 2009 4:56 AM Subject: Re: [Py2exe-users] anydbm problem > garyr schrieb: >> I've created an executable for a small program that uses anydbm. >> The executable runs OK on my computer but fails when run on other >> computers >> that do not have Python installed. When setup.py is run a warning message >> is generated: >> The following modules appear to be missing >> ['_pybsddb'] > > You should ignore this warning. It comes from these lines, in Lib\db.py: > > """ > if __name__[:len('bsddb3.')] == 'bsddb3.': > # import _pybsddb binary as it should be the more recent version from > # a standalone pybsddb addon package than the version included with > # python as bsddb._bsddb. > from _pybsddb import * > from _pybsddb import __version__ > else: > from _bsddb import * > from _bsddb import __version__ > """ > >> and the text in the log file generated when the executable is run on >> non-Python compters ends with: >> File "sol.py", line 184, in __init__ >> File "Utils\gdb.pyo", line 36, in __init__ >> File "anydbm.pyo", line 83, in open >> File "dbhash.pyo", line 16, in open >> File "bsddb\__init__.pyo", line 299, in hashopen >> bsddb._db.DBNoSuchFileError: (2, 'No such file or directory') > > This is an error message from the bsddb.hashopen() function. > Does it try to open a database and does not find one? Yes, that was the problem. Thanks for your help. |