Menu

#94 PyCam does not load binary STL

git_-_master
open
nobody
None
5
2016-09-20
2016-09-19
No

Hey guys:

I am a new Pycam user, and I just bought some STL files on Ebay. The appear to be in binary format (certainly not ASCII) , and Pycam refuses to open them. I get one of these errors:

STLImporter: No valid lines found in 'D:...Downloads\cnc\490\490\1.stl'
STLImporter: STL binary/ascii detection failed

Any ideas? Windows 7 SP1, Pycam 0.5.1.1. Is there some setting I am missing or something?

Related

Bugs: #94

Discussion

  • Darrell Norquay

    Darrell Norquay - 2016-09-19

    I just loaded the file into Meshcam, and saved it back out as ASCII.

    When I tried loading this file into PyCAM, I got this error message:

    An unexpected exception occoured: please send the text below to the developers of PyCAM. Thanks a lot!
    Traceback (most recent call last):
    File "pyinstaller\build\pyi.win32\pycam\outPYZ5.pyz/pycam.Gui.Project", line 1285, in gui_activity_guard_wrapper
    File "pyinstaller\build\pyi.win32\pycam\outPYZ5.pyz/pycam.Gui.Project", line 1273, in progress_activity_guard_wrapper
    File "pyinstaller\build\pyi.win32\pycam\outPYZ5.pyz/pycam.Gui.Project", line 3186, in load_model_file
    File "pyinstaller\build\pyi.win32\pycam\outPYZ5.pyz/pycam.Importers.STLImporter", line 273, in ImportModel
    File "pyinstaller\build\pyi.win32\pycam\outPYZ5.pyz/pycam.Geometry.Model", line 265, in append
    MemoryError

     
  • Darrell Norquay

    Darrell Norquay - 2016-09-19

    Update:

    I just loaded a file from above with Meshcam, and saved it as an ASCII /STL
    file.

    I got this message when loading the file:

    An unexpected exception occoured: please send the text below to the
    developers of PyCAM. Thanks a lot!
    Traceback (most recent call last):
    File "pyinstaller\build\pyi.win32\pycam\outPYZ5.pyz/pycam.Gui.Project",
    line 1285, in gui_activity_guard_wrapper
    File "pyinstaller\build\pyi.win32\pycam\outPYZ5.pyz/pycam.Gui.Project",
    line 1273, in progress_activity_guard_wrapper
    File "pyinstaller\build\pyi.win32\pycam\outPYZ5.pyz/pycam.Gui.Project",
    line 3186, in load_model_file
    File
    "pyinstaller\build\pyi.win32\pycam\outPYZ5.pyz/pycam.Importers.STLImporter",
    line 273, in ImportModel
    File
    "pyinstaller\build\pyi.win32\pycam\outPYZ5.pyz/pycam.Geometry.Model", line
    265, in append
    MemoryError

    Regards,
    Darrell Norquay - Calgary, Canada
    3D Tech Works - 3DTechWorks.ca
    403 701 2005 - ndarrell@telus.net

    On Mon, Sep 19, 2016 at 1:29 PM, Darrell Norquay metalguru111@users.sf.net
    wrote:


    Status: open
    Group: git_-_master
    Created: Mon Sep 19, 2016 07:29 PM UTC by Darrell Norquay
    Last Updated: Mon Sep 19, 2016 07:29 PM UTC
    Owner: nobody

    Hey guys:

    I am a new Pycam user, and I just bought some STL files on Ebay. The
    appear to be in binary format (certainly not ASCII) , and Pycam refuses to
    open them. I get one of these errors:

    STLImporter: No valid lines found in 'D:...Downloads\cnc\490\490\1.stl'
    STLImporter: STL binary/ascii detection failed

    Any ideas? Windows 7 SP1, Pycam 0.5.1.1. Is there some setting I am
    missing or something?


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/pycam/bugs/94/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #94

  • Darrell Norquay

    Darrell Norquay - 2016-09-19

    So far I'm not impressed with PyCam. I have tried several online file converters, and several windows based file converters to convert from binary STL to ASCII STL. Without fail, every one of these conversions has caused PyCAM to spectacularly crash. Not impressed. Have not fpund 1 STL file that Pycam will load without crashing.

     
  • Lars

    Lars - 2016-09-20

    Pycam's main purpose is certainly not to impress people :)

    "MemoryError" may indicate a lack of free memory for the whole model?
    Personally I never encountered this kind of shortage (with quite modest hardware). Thus I can imagine, that this is a subtile problem which is only visible while running on Windows.

    Regarding binary STL: I am not aware of problems with that format, but personally I mainly used STL ascii files.

    Please note that Pycam is currently not under active development. Thus you should not invest time into it, if it does not suit your use case right out of the box.

    Cheers,
    Lars

     

Log in to post a comment.