Issue 301 in ulipad: comtypes Issues again

11 views
Skip to first unread message

uli...@googlecode.com

unread,
Sep 20, 2012, 5:22:00 PM9/20/12
to uli...@googlegroups.com
Status: New
Owner: ----

New issue 301 by nielch...@gmail.com: comtypes Issues again
http://code.google.com/p/ulipad/issues/detail?id=301

Seems quite similar to ISSUE 112, but I am not sure.

What steps will reproduce the problem?
1. Install python-2.7.3.amd64.msi
2. Install wxPython2.9-win64-2.9.4.0-py27
3. SVN checkup the updated ulipad
4. run Ulipad.py

What is the expected output? What do you see instead?
Expect the nice GUI of Ulipad would show up. However, it shows:

begin... 16:03:31
There are some errors as importing mimxins, Please see the error.txt.

error.txt
_____________________________________________


[Traceback]Traceback (most recent call last):
File "ulipad.py", line 85, in <module>
import mixins
File "C:\Users\cxn123430\Downloads\tools\ulipad\mixins\__init__.py", line
163, in <module>
import Import
File "C:\Users\cxn123430\Downloads\tools\ulipad\mixins\Import.py", line
7728, in <module>
from mixins import HtmlPage
File "C:\Users\cxn123430\Downloads\tools\ulipad\mixins\HtmlPage.py", line
33, in <module>
import wx.lib.iewin as iewin
File "C:\Python27\lib\site-packages\wx-2.9.4-msw\wx\lib\iewin.py", line
15, in <module>
import wx.lib.activex
File "C:\Python27\lib\site-packages\wx-2.9.4-msw\wx\lib\activex.py", line
36, in <module>
import comtypes
ImportError: No module named comtypes




What version of the product are you using? On what operating system?
Python 2.7.3
OS: Windows 7 64 bit


Please provide any additional information below.

I went to http://sourceforge.net/projects/comtypes/
to download both zip and exe file. Running the exe file will tell me it
does not find python. After unzipping the file, running the setup.py of
comtypes folder would get this:

C:\Users\cxn123430\Downloads\comtypes-0.6.2>setup.py
Traceback (most recent call last):
File "C:\Users\cxn123430\Downloads\comtypes-0.6.2\setup.py", line 42, in
<modu
le>
from distutils.core import setup, Command, DistutilsOptionError
ImportError: cannot import name DistutilsOptionError

C:\Users\cxn123430\Downloads\comtypes-0.6.2>


uli...@googlecode.com

unread,
Sep 20, 2012, 7:42:50 PM9/20/12
to uli...@googlegroups.com

Comment #1 on issue 301 by limo...@gmail.com: comtypes Issues again
http://code.google.com/p/ulipad/issues/detail?id=301

comtypes has exe installer, so you should download it. And for wxpython
2.9, I found some compatiable problems, so I suggest that using 2.8.x
version。

uli...@googlecode.com

unread,
Sep 21, 2012, 3:09:19 PM9/21/12
to uli...@googlegroups.com

Comment #2 on issue 301 by nielch...@gmail.com: comtypes Issues again
http://code.google.com/p/ulipad/issues/detail?id=301

The exe file of comtypes does not work as shown in the first picture. But I
found a solution to this.
1. Install wxpython 2.8 version
2. Download the zip version of comtypes
3. unzip it and copy the files into your sit-packages folder in python
directory (e.g. C:\Python27\Lib\site-packages), as shown in the second
picture
4. Run ulipad.py


Attachments:
install_comtypes.png 55.8 KB
copy_comtypes.png 91.6 KB

uli...@googlecode.com

unread,
Sep 21, 2012, 7:29:04 PM9/21/12
to uli...@googlegroups.com
Updates:
Status: Invalid

Comment #3 on issue 301 by limo...@gmail.com: comtypes Issues again
http://code.google.com/p/ulipad/issues/detail?id=301

Because comtypes will find the python installation directory in registry,
so if you haven't install python normal, it'll be failed.

Reply all
Reply to author
Forward
0 new messages