Discussion:
[comtypes-users] the comtypes bug?
vic
2013-03-10 03:45:33 UTC
Permalink
when i import comtypes.client
import comtypes.client
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import comtypes.client
File "D:\program files
(x86)\python27\lib\site-packages\comtypes\__init__.py", line 826
class _compointer_base(c_void_p, metaclass=_compointer_meta):
^
SyntaxError: invalid syntax

i used win7 64bit python 2.7.3 comtypes 0.6.2
and anyone can help me?
Michael Curran
2013-03-10 23:23:37 UTC
Permalink
The error shows that comtypes.client code is using Python 3 syntax.

Where did you get Comtypes 0.6.2 from? are you sure it was a Python 2
build and not a Python 3 one?

Mick
Post by vic
when i import comtypes.client
Post by vic
import comtypes.client
File "<pyshell#0>", line 1, in <module>
import comtypes.client
File "D:\program files
(x86)\python27\lib\site-packages\comtypes\__init__.py", line 826
^
SyntaxError: invalid syntax
i used win7 64bit python 2.7.3 comtypes 0.6.2
and anyone can help me?
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
comtypes-users mailing list
https://lists.sourceforge.net/lists/listinfo/comtypes-users
--
--
Michael Curran
Director, NV Access Limited
Ph + 61 7 5667 8372
www.nvaccess.org
Luciano Strassacappa
2013-03-11 11:03:07 UTC
Permalink
I had to install python 32 bits in my notebook (windows 8 64 bits)

Luciano
Post by Michael Curran
The error shows that comtypes.client code is using Python 3 syntax.
Where did you get Comtypes 0.6.2 from? are you sure it was a Python 2
build and not a Python 3 one?
Mick
Post by vic
when i import comtypes.client
Post by vic
import comtypes.client
File "<pyshell#0>", line 1, in <module>
import comtypes.client
File "D:\program files
(x86)\python27\lib\site-packages\comtypes\__init__.py", line 826
^
SyntaxError: invalid syntax
i used win7 64bit python 2.7.3 comtypes 0.6.2
and anyone can help me?
------------------------------------------------------------------------------
Post by vic
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
comtypes-users mailing list
https://lists.sourceforge.net/lists/listinfo/comtypes-users
--
--
Michael Curran
Director, NV Access Limited
Ph + 61 7 5667 8372
www.nvaccess.org
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
comtypes-users mailing list
https://lists.sourceforge.net/lists/listinfo/comtypes-users
Suraj Barkale
2013-03-11 11:07:05 UTC
Permalink
Hi Luciano,

Please download & install comtypes-0.6.2.win32.exe package from
http://sourceforge.net/projects/comtypes/files/comtypes/0.6.2/ to fix
your error. You have probably installed comtypes-0.6.2-win32-py3.exe
which is meant for Python 3.

Regards,
Suraj

On Mon, Mar 11, 2013 at 4:33 PM, Luciano Strassacappa
Post by Luciano Strassacappa
I had to install python 32 bits in my notebook (windows 8 64 bits)
Luciano
Post by Michael Curran
The error shows that comtypes.client code is using Python 3 syntax.
Where did you get Comtypes 0.6.2 from? are you sure it was a Python 2
build and not a Python 3 one?
Mick
Post by vic
when i import comtypes.client
Post by vic
import comtypes.client
File "<pyshell#0>", line 1, in <module>
import comtypes.client
File "D:\program files
(x86)\python27\lib\site-packages\comtypes\__init__.py", line 826
^
SyntaxError: invalid syntax
i used win7 64bit python 2.7.3 comtypes 0.6.2
and anyone can help me?
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
comtypes-users mailing list
https://lists.sourceforge.net/lists/listinfo/comtypes-users
--
--
Michael Curran
Director, NV Access Limited
Ph + 61 7 5667 8372
www.nvaccess.org
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
comtypes-users mailing list
https://lists.sourceforge.net/lists/listinfo/comtypes-users
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
comtypes-users mailing list
https://lists.sourceforge.net/lists/listinfo/comtypes-users
Loading...