cygnusnow / ulipad

Automatically exported from code.google.com/p/ulipad
0 stars 0 forks source link

comtypes Issues again #301

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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>

Original issue reported on code.google.com by nielch...@gmail.com on 20 Sep 2012 at 9:17

GoogleCodeExporter commented 9 years ago
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。

Original comment by limo...@gmail.com on 20 Sep 2012 at 11:42

GoogleCodeExporter commented 9 years ago
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

Original comment by nielch...@gmail.com on 21 Sep 2012 at 7:09

Attachments:

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

Original comment by limo...@gmail.com on 21 Sep 2012 at 11:28