I can run my python application just fine using the source  but when I run it with the exe it gets the following error:

 

 

 

 

Traceback (most recent call last):

  File "test5.py", line 320, in ?

  File "test5.py", line 314, in main

  File "wx\_core.pyc", line 7473, in __init__

  File "wx\_core.pyc", line 7125, in _BootstrapApp

  File "test5.py", line 63, in OnInit

  File "C:/cygwin/usr/project/kbe_catia\KBE_Catia.py", line 94, in __init__

    self._topDoc = self.GetTopDoc()

  File "C:/cygwin/usr/project/kbe_catia\KBE_Catia.py", line 260, in GetTopDoc

    rawDocObj = self._catia.ActiveDocument

AttributeError: 'NoneType' object has no attribute 'ActiveDocument'

Traceback (most recent call last):

  File "test5.py", line 320, in ?

  File "test5.py", line 314, in main

  File "wx\_core.pyc", line 7473, in __init__

  File "wx\_core.pyc", line 7125, in _BootstrapApp

  File "test5.py", line 63, in OnInit

  File "C:/cygwin/usr/project/kbe_catia\KBE_Catia.py", line 94, in __init__

    self._topDoc = self.GetTopDoc()

  File "C:/cygwin/usr/project/kbe_catia\KBE_Catia.py", line 260, in GetTopDoc

    rawDocObj = self._catia.ActiveDocument

AttributeError: 'NoneType' object has no attribute 'ActiveDocument'

 

 

 

Here is the setup.py

 

 

 

from distutils.core import setup

import py2exe

import sys

 

# The "script" specifies the main module (i.e. block of code.) Another

# module called by this main module is specified by the "py_modules"

# entry further down.

setup(windows=[{"script":"test5.py"}

              ],

      name="MFORM",

      version="1.0.0",

      description="test application",

      author="Mark",

      author_email="mark@net4psp.com",

      package_dir={'':'c:\cygwin\usr\project'},

      packages = ['kbe_catia']

      )

 

 

 

Does anyone have any ideas?

 

Cheers,

 

Mark