PythonCAD question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Franz Steinhaeusler

    #1

    PythonCAD question

    Hello NG,

    I tried to run PythonCad on window and
    got follwoing traceback:

    Traceback (most recent call last):
    File "C:\temp\Python CAD-DS1-R34\PythonCad.p y", line 45, in ?
    import PythonCAD.Inter face.Cocoa.Imag eDocument
    File "C:\temp\Python CAD-DS1-R34\PythonCAD\I nterface\Cocoa\ ImageDocument.p y", l
    ine 38, in ?
    import PythonCAD.Inter face.Cocoa.Glob als
    File "C:\temp\Python CAD-DS1-R34\PythonCAD\I nterface\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?

    Many thanks in advance!

    --
    Franz Steinhaeusler

  • Peter Otten

    #2
    Re: PythonCAD question

    Franz Steinhaeusler wrote:
    Hello NG,
    >
    I tried to run PythonCad on window and
    got follwoing traceback:
    >
    Traceback (most recent call last):
    File "C:\temp\Python CAD-DS1-R34\PythonCad.p y", line 45, in ?
    import PythonCAD.Inter face.Cocoa.Imag eDocument
    File
    "C:\temp\Python CAD-DS1-R34\PythonCAD\I nterface\Cocoa\ ImageDocument.p y",
    l
    ine 38, in ?
    import PythonCAD.Inter face.Cocoa.Glob als
    File "C:\temp\Python CAD-DS1-R34\PythonCAD\I nterface\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

    Comment

    • Franz Steinhaeusler

      #3
      Re: PythonCAD question

      Peter Otten wrote:
      Franz Steinhaeusler wrote:
      >
      >Hello NG,
      >>
      >I tried to run PythonCad on window and
      >got follwoing traceback:
      >>
      >Traceback (most recent call last):
      > File "C:\temp\Python CAD-DS1-R34\PythonCad.p y", line 45, in ?
      > import PythonCAD.Inter face.Cocoa.Imag eDocument
      > File
      > "C:\temp\Python CAD-DS1-R34\PythonCAD\I nterface\Cocoa\ ImageDocument.p y",
      > l
      >ine 38, in ?
      > import PythonCAD.Inter face.Cocoa.Glob als
      > File "C:\temp\Python CAD-DS1-R34\PythonCAD\I nterface\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
      Hello Peter,

      On the homepage,

      there is the text:


      "PythonCAD does run on Windows if you have the Windows
      ports of the required libraries and modules."

      --
      Franz Steinhaeusler

      Comment

      • Peter Otten

        #4
        Re: PythonCAD question

        Franz Steinhaeusler wrote:
        >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.
        On the homepage,

        there is the text:
        >
        >
        "PythonCAD does run on Windows if you have the Windows
        ports of the required libraries and modules."
        I don't doubt that. Looking into PythonCad.py, though, I find

        # main routine to start Cocoa-based PythonCad

        On Windows gtkpycad.py with

        # main routine to start GTK-based pycad

        looks more promising...

        Peter

        Comment

        • Franz Steinhaeusler

          #5
          Re: PythonCAD question

          Peter Otten wrote:
          Franz Steinhaeusler wrote:
          >
          >>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.
          >
          >On the homepage,
          >http://www.pythoncad.org/
          >there is the text:
          >>
          >>
          >"PythonCAD does run on Windows if you have the Windows
          >ports of the required libraries and modules."
          >
          I don't doubt that. Looking into PythonCad.py, though, I find
          >
          # main routine to start Cocoa-based PythonCad
          >
          On Windows gtkpycad.py with
          >
          # main routine to start GTK-based pycad
          >
          looks more promising...
          >
          Peter
          Thank you! It laid diretly in front of me.
          --
          Franz Steinhaeusler

          Comment

          Working...