Tried out pycam today and, after a few problems with additional packages needed, managed to get it to run.
Noticed an error in simple gui script, this is what I got when starting up:
alex@alex-desktop:~/Downloads/pycam-0.1.11$ python pycam.py
Traceback (most recent call last):
File "pycam.py", line 5, in <module>
from pycam.Gui.SimpleGui import SimpleGui
File "/home/alex/Downloads/pycam-0.1.11/pycam/Gui/SimpleGui.py", line 18, in <module>
from pycam.Exporters import *
AttributeError: 'module' object has no attribute 'STLExporter'
I have no programming experience, but managed to comment out line 18 in the SimpleGui script and hey .. I get the gui up and running!!
This is on ubuntu 9.10 64bit version with latest pycam as downloaded from forge this morning.
Not tested any further as it is bedtime now!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for reporting… I made the 0.1.11 release in a hurry, and did not test it thorougly… there will be a new release shortly,
with some new features…
> I have no programming experience, but managed to comment out line 18 in the SimpleGui script and hey .. I get the gui up and running!!
Great… guess you'll manage to use it then !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, version 0.1.11b fixed that problem!
Playing with it now trying to understand how it works. Loaded supplied samples OK but finding that is has problems with other stl files. Some load ok, some just generated long lists of errors:
ERROR: skipping invalid triangle: Point149773<54.1809,96.8311,14.822> / Point149701<54.9754,96.0366,14.577> / Point145494<54.9754,96.3898,14.3439>
ERROR: skipping invalid triangle: Point149773<54.1809,96.8311,14.822> / Point145494<54.9754,96.3898,14.3439> / Point145493<54.6661,96.8311,14.3439>
ERROR: skipping invalid triangle: Point145494<54.9754,96.3898,14.3439> / Point149701<54.9754,96.0366,14.577> / Point145437<55.2781,96.0366,14.3439>
This was using a stl sample file which can be found at: http://www.david-laserscanner.com/?section=Downloads
called DAVID-angel.stl
This one, and others pycam has a problem with, load without problem in freecad.
Generated g code works well in emc2. That will be very useful: now that I finally got the machine working I can feel some woodchips coming in the weekend!
Thanks for the program, I'll try and provide some more feedback along the way.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That's not actually a problem, I think…
The message means that the triangle is ignored, because it is too small. It should probably work just fine.
(If you really want to make it go away, you can remove the print statement in STLImporter.py…
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think it may be a problem: I left the import of the example above (the DAVID-angel.stl file) run to the end and got following errors(just showing end of file):
ERROR: skipping invalid triangle: Point33583047<21.6068,106.938,178.009> / Point33583853<22.4013,106.365,178.041> / Point33583067<22.4013,106.587,178.009>
ERROR: skipping invalid triangle: Point33583844<21.6068,106.365,178.075> / Point33583853<22.4013,106.365,178.041> / Point33583047<21.6068,106.938,178.009>
Imported STL model: 289785 vertices, 0 edges, 0 triangles
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
return self.func(*args)
File "/home/alex/Downloads/pycam-0.1.11 (2)/pycam/Gui/SimpleGui.py", line 174, in browseOpen
self.open(filename)
File "/home/alex/Downloads/pycam-0.1.11 (2)/pycam/Gui/SimpleGui.py", line 187, in open
self.MinX.set(str(self.model.minx - (self.model.maxx - self.model.minx)*DEFAULT_MARGIN))
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
The display did not show anything but the empty coordinates lines..
Looks like all the triangles have been judged too small ? Is there a way to adjust that "too small" threshold?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
please try using a smaller and simpler STL model.
that model has over 600000 triangles… which is somewhat out of scope for now
there are some STL files in the "Samples" directory to play with
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tried out pycam today and, after a few problems with additional packages needed, managed to get it to run.
Noticed an error in simple gui script, this is what I got when starting up:
alex@alex-desktop:~/Downloads/pycam-0.1.11$ python pycam.py
Traceback (most recent call last):
File "pycam.py", line 5, in <module>
from pycam.Gui.SimpleGui import SimpleGui
File "/home/alex/Downloads/pycam-0.1.11/pycam/Gui/SimpleGui.py", line 18, in <module>
from pycam.Exporters import *
AttributeError: 'module' object has no attribute 'STLExporter'
I have no programming experience, but managed to comment out line 18 in the SimpleGui script and hey .. I get the gui up and running!!
This is on ubuntu 9.10 64bit version with latest pycam as downloaded from forge this morning.
Not tested any further as it is bedtime now!
Thanks for reporting… I made the 0.1.11 release in a hurry, and did not test it thorougly… there will be a new release shortly,
with some new features…
> I have no programming experience, but managed to comment out line 18 in the SimpleGui script and hey .. I get the gui up and running!!
Great… guess you'll manage to use it then !
I fixed two minor problems in the released file… please try out 0.1.11b
Thanks, version 0.1.11b fixed that problem!
Playing with it now trying to understand how it works. Loaded supplied samples OK but finding that is has problems with other stl files. Some load ok, some just generated long lists of errors:
ERROR: skipping invalid triangle: Point149773<54.1809,96.8311,14.822> / Point149701<54.9754,96.0366,14.577> / Point145494<54.9754,96.3898,14.3439>
ERROR: skipping invalid triangle: Point149773<54.1809,96.8311,14.822> / Point145494<54.9754,96.3898,14.3439> / Point145493<54.6661,96.8311,14.3439>
ERROR: skipping invalid triangle: Point145494<54.9754,96.3898,14.3439> / Point149701<54.9754,96.0366,14.577> / Point145437<55.2781,96.0366,14.3439>
This was using a stl sample file which can be found at:
http://www.david-laserscanner.com/?section=Downloads
called DAVID-angel.stl
This one, and others pycam has a problem with, load without problem in freecad.
Generated g code works well in emc2. That will be very useful: now that I finally got the machine working I can feel some woodchips coming in the weekend!
Thanks for the program, I'll try and provide some more feedback along the way.
That's not actually a problem, I think…
The message means that the triangle is ignored, because it is too small. It should probably work just fine.
(If you really want to make it go away, you can remove the print statement in STLImporter.py…
I think it may be a problem: I left the import of the example above (the DAVID-angel.stl file) run to the end and got following errors(just showing end of file):
ERROR: skipping invalid triangle: Point33583047<21.6068,106.938,178.009> / Point33583853<22.4013,106.365,178.041> / Point33583067<22.4013,106.587,178.009>
ERROR: skipping invalid triangle: Point33583844<21.6068,106.365,178.075> / Point33583853<22.4013,106.365,178.041> / Point33583047<21.6068,106.938,178.009>
Imported STL model: 289785 vertices, 0 edges, 0 triangles
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
return self.func(*args)
File "/home/alex/Downloads/pycam-0.1.11 (2)/pycam/Gui/SimpleGui.py", line 174, in browseOpen
self.open(filename)
File "/home/alex/Downloads/pycam-0.1.11 (2)/pycam/Gui/SimpleGui.py", line 187, in open
self.MinX.set(str(self.model.minx - (self.model.maxx - self.model.minx)*DEFAULT_MARGIN))
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
The display did not show anything but the empty coordinates lines..
Looks like all the triangles have been judged too small ? Is there a way to adjust that "too small" threshold?
please try using a smaller and simpler STL model.
that model has over 600000 triangles… which is somewhat out of scope for now
there are some STL files in the "Samples" directory to play with
> The display did not show anything but the empty coordinates lines..
Actually, the model is outside the default viewing area, zoom out to see it….