Menu

#57 OpenGL needlessly imported

svn
open
nobody
None
5
2012-04-22
2012-04-22
pe^cjo
No

It seems something in the organization of the project changed between 0.5.1 and SVN so that PyCAM imports portions of the GUI for command-line usage.

With 0.5.1 I can successfully start a worker server running on PyPy, giving a 10x performance boost over plain CPython.

On SVN, I get an error because it tries to import Bounds from Toolpath, which imports numpy and OpenGL, none of which are used in Bounds.

$ pypy ./scripts/pycam --help
Traceback (most recent call last):
File "app_main.py", line 51, in run_toplevel
File "./scripts/pycam", line 39, in <module>
import pycam.Gui.Settings
File "/Users/pepijndevos/git/pycam/pycam/Gui/Settings.py", line 23, in <module>
from pycam.Toolpath import Bounds
File "/Users/pepijndevos/git/pycam/pycam/Toolpath/__init__.py", line 25, in <module>
import OpenGL.GL as GL
ImportError: No module named OpenGL

Discussion

  • Nobody/Anonymous

    As a Newbie, I am always searching online for articles that can aid me. Thank you
    supra vaider http://supravaidershoes.webnode.com/

     
  • Nobody/Anonymous

    international journalism entails [url=http://cheapdrebeatsbydres.weebly.com/]beats pro[/url] <a href="http://cheapdrebeatsbydres.weebly.com/" title="beats pro">beats pro</a>

     

Log in to post a comment.