Fresh install of Python 3.7 on Windows 10.

Installed pywin32-223.win-amd64.py3.7.exe (from python.org) without error messages, but the adodbapi directory didn't contain apibase.py and so adodbapi couldn't be imported.

Next step: "pip install adodbapi --upgrade" again seemed to work normally, but now 4 files contained line endings "\r\r\n":
apibase.py
is64bit.py
process_connect_string.py
server.py
This caused an IndentationError at the first line continuation in apibase.py (whitespace after the \):
line 249, pythonDateTimeConverter.DateObjectFromCOMDate,
dte=datetime.datetime.fromordinal(integerPart + self._ordinal_1899_12_31) \
            + datetime.timedelta(milliseconds=floatpart*86400000)

I couldn't find differences to the module version in my Python 3.6 installation, other than the line endings, so I copied the 4 files from there.

Last problem: now adodbapi missed ...\python37\lib\site-packages\win32com\gen_py\dicts.dat. The second exception in the traceback said something about missing rights, so I opened a Python shell as administrator and imported adodbapi there. That created the file.

Now everything works as it should, but why the hassle?

Greetings
Sibylle
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to