FS#60249 - [blender] Exporting STL fails since linking against python3.7

Attached to Project: Community Packages
Opened by Scott Coil (sylphid) - Saturday, 29 September 2018, 18:02 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Monday, 08 October 2018, 06:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Exporting STL fails since linking against python3.7 due to https://www.python.org/dev/peps/pep-0479/


Additional info:
blender 17:2.79.b.git3.32432d91-7

Traceback (most recent call last):
File "/usr/share/blender/2.79/scripts/addons/io_mesh_stl/blender_utils.py", line 87, in faces_from_mesh
mesh = ob.to_mesh(bpy.context.scene, use_mesh_modifiers, "PREVIEW")
RuntimeError: Error: Object does not have geometry data


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/share/blender/2.79/scripts/addons/io_mesh_stl/blender_utils.py", line 89, in faces_from_mesh
raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/share/blender/2.79/scripts/addons/io_mesh_stl/__init__.py", line 238, in execute
stl_utils.write_stl(faces=faces, **keywords)
File "/usr/share/blender/2.79/scripts/addons/io_mesh_stl/stl_utils.py", line 225, in write_stl
(_ascii_write if ascii else _binary_write)(filepath, faces)
File "/usr/share/blender/2.79/scripts/addons/io_mesh_stl/stl_utils.py", line 180, in _binary_write
for face in faces:
RuntimeError: generator raised StopIteration

location: <unknown location>:-1



Steps to reproduce:
open blender
File > Export > Stl
select path > Export STL
Exception raised
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Monday, 08 October 2018, 06:51 GMT
Reason for closing:  Fixed
Comment by loqs (loqs) - Saturday, 29 September 2018, 20:18 GMT
Has this issue been reported upstream?
Comment by Scott Coil (sylphid) - Saturday, 29 September 2018, 22:35 GMT
Not that I am aware of. Based on the response to this other issue https://developer.blender.org/T56969 I brought the report here instead.
Comment by Sven-Hendrik Haase (Svenstaro) - Sunday, 07 October 2018, 21:38 GMT
Try the new package.
Comment by Scott Coil (sylphid) - Monday, 08 October 2018, 03:01 GMT
Works for me, thanks!

Loading...