[Pythonmac-SIG] Module Import Problem

Aahz aahz at pythoncraft.com
Sat Apr 24 18:22:23 CEST 2010


On Wed, Apr 21, 2010, Mike wrote:
> 
> My friend is testing my program for me on his Mac, he's running Snow
> leopard. I'm using a package called Pyttsc that allows for text to
> speech on the Mac. He's getting the following error:
>
> file: build/bdist.macosx-10.6universal/egpyttsx/drivers/nsss.py, line 18: no module named foundation
>
> I looked into this, and it seems to be something related to
> PyObjC. However, he tried import pyobjc and got no errors. Any idea
> what the problem might be and how to fix it?

What's your OS?  What's the line of code generating this error?

> Also, will this application build with py2app since it uses this package?

Theoretically, yes.  I'm a bit confused, because build/ implies that
you're already using py2app or some other distribution mechanism.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan


More information about the Pythonmac-SIG mailing list