[Pythonmac-SIG] Interesting problem with frozen app

Smith, Jeff jsmith at medplus.com
Wed Apr 22 20:41:30 CEST 2009

This is only a test case for a larger system.
I have created an app that freezes itself.
from setuptools import setup
APP = ['freezer.py']
OPTIONS = {'argv_emulation': True, 'no_chdir': True, 'optimize': True}
    options={'py2app': OPTIONS},

import os
os.system('python setup.py py2app')

Running: python freezer.py
works as expected.  But the frozen app does not work:
> mv dist run
> run/freezer.app/Contents/MacOS/freezer
Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    from setuptools import setup
ImportError: No module named setuptools

Note that the error is not comming from the frozen app but from the copy
of Python being run by the frozen app in the os.system call.

Jeffery G. Smith
MedPlus, A Quest Diagnostics Company | Senior SCM Specialist | 4690
Parkway Drive | Mason, OH 45040 USA | phone +1.513.204.2601 | fax
+1.513.229.5505 | mobile +1.513.335.1517 | jsmith at MedPlus.com |
www.MedPlus.com <http://www.medplus.com/>  

Please think about resource conservation before you print this message


Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster at MedPlus.com). After replying, please erase it from your computer system.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090422/4830d208/attachment.htm>

More information about the Pythonmac-SIG mailing list