comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

SyntaxError: invalid syntax, when import comtypes

Open adigrabcad opened this issue 3 years ago • 3 comments

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: image It works fine if you skip:

pip3 install -U setuptools
pip3 install -U wheel

adigrabcad avatar Jan 15 '22 14:01 adigrabcad

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)

cmin764 avatar Jan 17 '22 09:01 cmin764

Waiting for comtypes PR enthought/comtypes#259 to be tested before releasing comtypes==1.1.11.

vasily-v-ryabov avatar Jan 30 '22 08:01 vasily-v-ryabov

https://github.com/enthought/comtypes/releases/tag/1.1.11

kdschlosser avatar Feb 13 '22 04:02 kdschlosser

@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.

junkmd avatar Sep 11 '22 00:09 junkmd