comtypes
comtypes copied to clipboard
SyntaxError: invalid syntax, when import comtypes
Clean install of Python 3.9.9 then use a virtual environment to install dependencies:
python -m venv env
env\Scripts\activate
pip3 install -U setuptools
pip3 install -U wheel
pip3 install comtypes==1.1.10
Start Python and try to import comtypes:
It works fine if you skip:
pip3 install -U setuptools
pip3 install -U wheel
Yes, duplicate of: https://github.com/enthought/comtypes/issues/180
setuptools recently dropped support for build time Python 2 to 3 conversion and you end up with Py2 syntax instead of 3. (as comtypes hasn't any Py3 flavor yet)
Waiting for comtypes PR enthought/comtypes#259 to be tested before releasing comtypes==1.1.11.
https://github.com/enthought/comtypes/releases/tag/1.1.11
@vasily-v-ryabov I think the problem reported in this issue has been resolved in 1.1.11. I think this issue should be closed.