Is mxDateTime compatible with Installer
Gordon McMillan
gmcm at hypernet.com
Mon Feb 28 19:22:52 EST 2000
Calishar wrote:
>
> I'm asking this question because I just added mxDateTime support to
> an application which was already working, but needed much better date
> handling. Since then, any time I try to use the Installer Package
> (most recent version as of monday last week) the final application
> fails with import errors.
There is a bug in beta3f. Line 168 of MEInc.Dist.resource.py
reads:
if string.find(name, '.') == -1:
It should read:
if string.find(name, '.') != -1:
I don't know if that will fix your problem. If the __init__.py file is
playing with __path__, you may have some more tweaking to
do. (Basically, you'll have to figure out how those
manipulations of __path__ are extending the search path, and
then put those extensions into the pathprefix option in your
config file.)
> At first it was failing saying it "couldn't import name __version__"
> in the __init__.py files in the DateTime directory and the mxDateTime
> subdirectories. I modified the __init__ files to set the version
> (1.3.0) rather than importing it, okay, got past that point. Now I am
> getting the following message.
>
> File "C:\Program Files\Python\Lib\DateTime\DateTime.py", line 12, in ?
> NameError: DateTimeDelta
>
> Line 12 in the DateTime.py file sets the value oneSecond.
>
> I am currently using Python 1.5.2 (downloaded maybe 2 months ago at
> the most), win32all-128, mxDateTime 1.3.0 on a windows 95 development
> system at the office, Win98 at home, and a Win95 test system.
>
> Any ideas on what is happening or how to fix it?
>
> Calishar
>
>
>
> --
> http://www.python.org/mailman/listinfo/python-list
- Gordon
More information about the Python-list
mailing list