[ZODB-Dev] ZODB.config and py2exe

Michael Bernstein webmaven at cox.net
Thu Jun 24 16:52:02 EDT 2004


Dieter Maurer wrote:
 >
> Michael Bernstein wrote at 2004-6-21 16:55 -0700:
>> 
>> db = ZODB.config.databaseFromURL('bookdb.conf') ... 
>> ZConfig.ConfigurationError: error opening resource C:\Documents and
>> Settings\Michael
>> Bernstein\Desktop\BookCapCLI\dist\library.zip\ZODB\config.xml:
>> <urlopen error unknown url type: c>
> 
> Maybe, you should use an "absolute URL". An absolute URL requires a
> scheme ("file:" in your use case).

OK, I've now checked that possibility as well, but the error in the 
py2exe version of the app does not change.

I remain convinced that the problem is either in py2exe, which is not 
including the config.xml file in the library.zip archive, or in the ZODB 
code (probably in ZODB/config.py), which might be doing something to 
cause py2exe to not include the file. .

However, I am not familiar enough with either to be able to place the 
blame with any certainty.

I can post a minimal example that demonstrates the problem, if that will 
help.

Cheers,

-- 
- Michael R. Bernstein  |  Author of Zope Bible
   michaelbernstein.com  |  & Zope.org Webmaster
      panhedron.com      |    PythonPhotos.org


More information about the ZODB-Dev mailing list