From: Jason H. <jas...@gm...> - 2011-10-20 04:23:31
|
Version info: Python 2.6.2 PyGTK 2.22 Twisted 10.2.0 crcmod 1.7 pywin32 214 py2exe 0.6.9 I'm trying to build a PyGTK/Twisted app on WinXP, and the latest stumbling block I've hit has been with crcmod (my setup.py is attached). The exe builds fine, but I get this error when trying to run it: -- Traceback (most recent call last): File "tasks.py", line 11, in <module> File "models\programmer.pyc", line 6, in <module> File "utils\flash.pyc", line 3, in <module> File "crcmod\__init__.pyc", line 7, in <module> ImportError: No module named predefined -- The crcmod __init__.py has this code in it: -- try: from crcmod.crcmod import * import crcmod.predefined except ImportError: # Make this backward compatible from crcmod import * import predefined __doc__ = crcmod.__doc__ -- Putting "crcmod.predefined" in the 'includes' or 'packages' hasn't helped and I'm out of ideas. Are there any workarounds I can apply here? I'd rather not hack up another module to work with py2exe, but I'm not above doing it as a last resort. I realise crcmod has been brought up on the list before, but it wasn't resolved. Cheers, Jason |