Menu

Install on Mac OS X

Help
MAIRE
2016-01-18
2016-01-18
  • MAIRE

    MAIRE - 2016-01-18

    Hey Everyone !
    I used to try out Pycam on a Ubutu virtual box on my mac, it worked flawlessly, but now I want to generate gcodes for bigger projects it takes too much time. I was thinking to install it directly on Mac OS (10.11) so I get full CPU power for computation.

    I followed those instructions :http://www.shapeoko.com/wiki/index.php/PyCAM-MacOS
    Install Homebrew -> OK
    Compile & Install PyGTK -> OK
    Compile & Install PyOpenGL -> OK
    Compile & Install PyGTKGLExt -> OK
    Patch PyCAM (http://sandro.knot.org/pub/pycam.patch | patch -p0) -> OK, double checked that "import pygtk" and "pygtk.require("2.0")" were added to the file /src/pycam/Gui/init.py.
    Configure user environment -> OK, double checked that "\nexport PYTHONPATH=/usr/local/lib/python2.7/site-packages" was properly added into ~/.bashrc
    Everything looks fine.

    However when I try to launch Py cam I get :

    $ ./pycam
    Psyco is not available (performance will probably suffer slightly)
    Enabled 2 parallel local processes
    Fatal Python error: can't initialize module gtk.gtkgl
    Abort trap: 6
    

    To avoid this problem, I first thought that i would use the virtualised Pycam as a GUI sending calculations to a Pycam sever installed on the mac. Launching the server on the mac gives no error, so this definitely is a GUI issue.

    $ ./pycam --start-server-only --server-auth-key=fietspomp --number-of-processes=4
    Psyco is not available (performance will probably suffer slightly)
    Enabled 4 parallel local processes
    Allow remote processing
    Started a local server.
    Running a local server and waiting for remote connections.
    

    But getting the virtualized Pycam and the mac Pycam to talk together is a pain in the ass too.

    If the whole Pycam, with GUI, could work on the mac directly, that would be awesome.
    How can I manage so Pycam can "initialize module gtk.gtkgl" ?

    Thans for your help.

    $ ls /usr/local/lib/python2.7/site-packages
    Django-1.9.1.dist-info          networkx
    PIL                 networkx-1.10.dist-info
    Pillow-3.1.0.dist-info          numpy
    PyOpenGL-3.1.1a1-py2.7.egg      numpy-1.10.2.dist-info
    _markerlib              pip
    cairo                   pip-7.1.2-py2.7.egg-info
    colormath               pkg_resources
    colormath-2.1.1.dist-info       pygtk.pth
    decorator-4.0.6.dist-info       pygtk.py
    decorator.py                pygtk.pyc
    decorator.pyc               pygtk.pyo
    django                  setuptools
    easy-install.pth            setuptools-18.3.1-py2.7.egg-info
    easy_install.py             sitecustomize.py
    easy_install.pyc            sitecustomize.pyc
    glib                    sitecustomize.pyo
    gobject                 wheel
    gtk-2.0                 wheel-0.26.0-py2.7.egg-info
    image-1.4.4-py2.7.egg
    
    $ python
    Python 2.7.10 (default, Sep 23 2015, 04:34:21) 
    [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import gtk
    >>> import OpenGL
    >>> import gtk.gtkgl
    Fatal Python error: can't initialize module gtk.gtkgl
    Abort trap: 6
    
     

    Last edit: MAIRE 2016-01-18
  • Lars

    Lars - 2016-01-18

    OpenGL and OSX seems to be quite hard to get working together (at least with the modules that pycam uses). What a pity!

    I am afraid that this issue will not be solved within the foreseeable future since pycam is currently not actively maintained anymore (as far as I known).

     

Log in to post a comment.