Menu

Any hints on what these messages mean?

Help
galfenol
2011-01-03
2016-05-27
  • galfenol

    galfenol - 2011-01-03

    I just installed pycam on Ubuntu 8.04 and am starting a test drive. I have tried the examples in the samples folder, and an stl file of my own - without much luck. With everything set up with some care, after the generate toolpath button is pressed - this is the result, regardless of the model.

    An unexpected exception occoured: please send the text below to the developers of PyCAM. Thanks a lot!
    Traceback (most recent call last):
      File "/usr/lib/python2.5/site-packages/pycam/Gui/Project.py", line 823, in gui_activity_guard_wrapper
        result = func(self, *args, **kwargs)
      File "/usr/lib/python2.5/site-packages/pycam/Gui/Project.py", line 1285, in _handle_tasklist_button_event
        self.process_multiple_tasks()
      File "/usr/lib/python2.5/site-packages/pycam/Gui/Project.py", line 1315, in process_multiple_tasks
        task):
      File "/usr/lib/python2.5/site-packages/pycam/Gui/Project.py", line 811, in progress_activity_guard_wrapper
        result = func(self, *args, **kwargs)
      File "/usr/lib/python2.5/site-packages/pycam/Gui/Project.py", line 2786, in generate_toolpath
        process_settings, bounds)
      File "/usr/lib/python2.5/site-packages/pycam/Gui/Project.py", line 2890, in get_toolpath_settings
        raise ValueError("Invalid support grid type: %d" % grid_type)
    ValueError: Invalid support grid type: -1

    Any hints on what these messages mean?

    psyco is installed and working and the opengl graphics are ok, if a little slow. This is on a Pentium 4 at 3 GHz with 2 GB ram.

     
  • Lars

    Lars - 2011-01-04

    Hi galfonel,

    thanks for your bug report!

    I overlooked this problem, since it is exposed with old GTK versions only.

    Please remove the lines 2889 and 2890 from src/pycam/Gui/Project.py:

            else:
                log.error("Invalid support grid type: %d" % grid_type)
    

    This problem is now fixed in the development repository.

    thanks for your report,
    Lars

     
  • Lars

    Lars - 2011-01-04

    sorry for the confusion - in your version the two lines to be removed look like this:

              else:
                raise ValueError("Invalid support grid type: %d" % grid_type)
    
     
  • galfenol

    galfenol - 2011-01-04

    Lars:
    Thank you very much for the quick reply. This fix did the trick, and now pycam 0.4 makes tool paths on Ubuntu 8.04.
    BTW, I have an EMC-controlled 3 axis wood router, on which I can run the tool paths. The machine was built to carve violins and guitars.

     
  • Lars

    Lars - 2011-01-04

    Hi galfenol,

    great to hear, that your problem is solved!

    Carving violins and guitars sounds very interesting! I would be very happy to see the picture of one of your finished pieces of work …

    cheers,
    Lars

     
  • Nobody/Anonymous

    Hello,

    I am having exactly the same problem with Ubuntu 10.04 (running on Amazon EC2) and Pycam 0.5.1.
    I have tried to delete the 2 lines, but the problem persists.

    Any idea?

    Thanks!

     
  • Lars

    Lars - 2011-11-21

    Hi nobody,

    thanks for your report!

    Maybe you encountered a similar problem as the one above, but the exact output of PyCAM surely differs slightly. Could you post your details here, please?

    cheers,
    Lars

     
  • Marcelo Rodrigues

    Sorry for the "nobody", lol… My name is Marcelo.

    The error is the following:

    "An unexpected exception occoured: please send the text below to the developers of PyCAM. Thanks a lot!
    Traceback (most recent call last):
      File "/home/ubuntu/Desktop/pycam-0.5.1/src/pycam/Gui/Project.py", line 1285, in gui_activity_guard_wrapper
        result = func(self, *args, **kwargs)
      File "/home/ubuntu/Desktop/pycam-0.5.1/src/pycam/Gui/Project.py", line 2449, in toggle_3d_view
        for name in ("GeneralSettings", "Help3DView")])
      File "/home/ubuntu/Desktop/pycam-0.5.1/src/pycam/Gui/OpenGLTools.py", line 332, in __init__
        | gtk.gdkgl.MODE_DEPTH | gtk.gdkgl.MODE_DOUBLE)
    NoMatches: no frame buffer configurations match the specified attributes"

    I tried to fix the problem deleting the two lines like above, but the same.
    I am using Ubuntu 10.04 Desktop running on an Amazon EC2 machine.

    Thanks for any help!!!

     
  • Lars

    Lars - 2011-11-24

    Hi Marcelo,

    it feels good to know your name :)

    I guess, this thread will solve your problem: http://sourceforge.net/projects/pycam/forums/forum/860184/topic/4822570

    cheers,
    Lars

     

Log in to post a comment.