comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

Module has no attribute problem.

Open fockez opened this issue 6 years ago • 3 comments

I use comtypes within anaconda under win10 64 to talk to ASCOM telescope driver, then I always met the error module 'comtypes.gen.ASCOM_DeviceInterfaces' has no attribute 'ITelescopeV3' I follow the suggestion to clear the gen dir, for the first time I met item 1 in _argtypes_ passes a union by value, which is unsupported then the same. The numpy version is 1.18.1, I want to use comtypes to get numpy array directly from camera driver, without safearray, win32com is too slow for this, I hope comtypes can help.

Thanks.

fockez avatar Jan 31 '20 15:01 fockez

On an old computer, comtypes 1.1.4 and numpy 1.14.2 on the same windows 10, works fine.

fockez avatar Jan 31 '20 15:01 fockez

Comfirm the python 3.7.6 cause the problem. Downgrade to 3.7.5 solves it.

fockez avatar Jan 31 '20 16:01 fockez

#202 similar. 3.7.5 is ok.

yinkaisheng avatar Feb 13 '20 05:02 yinkaisheng

@fockez @yinkaisheng

This may be caused by a cpython problem.

If the issue remains, please re-open.

junkmd avatar Dec 03 '22 06:12 junkmd