PythonCAD question

Peter Otten __peter__ at web.de
Mon Sep 18 07:24:19 EDT 2006


Franz Steinhaeusler wrote:

> Hello NG,
> 
> I tried to run PythonCad on window and
> got follwoing traceback:
> 
> Traceback (most recent call last):
>   File "C:\temp\PythonCAD-DS1-R34\PythonCad.py", line 45, in ?
>     import PythonCAD.Interface.Cocoa.ImageDocument
>   File
>   "C:\temp\PythonCAD-DS1-R34\PythonCAD\Interface\Cocoa\ImageDocument.py",
>   l
> ine 38, in ?
>     import PythonCAD.Interface.Cocoa.Globals
>   File "C:\temp\PythonCAD-DS1-R34\PythonCAD\Interface\Cocoa\Globals.py",
>   line 23
> , in ?
>     from Foundation import NSObject
> ImportError: No module named Foundation
> 
> * Waht is the module "Foundation"?
> 
> Where can I get it?

The .../Cocoa/... part in the paths suggests that PythonCAD assumes it is
running on a Mac. The missing module is rather a symptom than the cause of
the bug.

Peter



More information about the Python-list mailing list