nophead / Mendel90

A RepRap Mendel variant using sheets for the frame instead of rods
http://hydraraptor.blogspot.com/2011/12/mendel90.html
262 stars 247 forks source link

BOM.py generates empty files in OSX Mavericks 10.9 #48

Closed Peaches491 closed 10 years ago

Peaches491 commented 10 years ago

After editing your .bash_profile as I mentioned here: [https://github.com/nophead/Mendel90/issues/47], the generated BOM files contain only headers, and no materials listed. Only empty headers, as shown here:

Vitamins:

Printed:
brad commented 10 years ago

My guess is that this is due to the ECHO issue in OpenSCAD that arose recently, which @nophead reported to the OpenSCAD mailing list. http://rocklinux.net/pipermail/openscad/2014-April/007455.html

Can you possibly try a different version?

Peaches491 commented 10 years ago

I'll try it on a Linux Machine ASAP.

nophead commented 10 years ago

Can you try this mod to bom.py:

-        if line[:7] == 'ECHO: "':
-            s = line[7:-2]
+        pos = line.find('ECHO: "')
+        if pos > -1:
+            s = line[pos + 7:-2]
Peaches491 commented 10 years ago

That did it! Perfect.

nophead commented 10 years ago

Fixed via 2cf87efb2782dd6a550ce982388ee41537fd7fbb