blender-for-science / import-G-code

Imports G-code files into Blender 2.80+ as a collection of layers which can then be animated or exported.
GNU General Public License v3.0
31 stars 9 forks source link

Fix using deprecated `binary_path_python` #14

Closed ChrisCrossCrash closed 1 year ago

ChrisCrossCrash commented 1 year ago

Thanks for this great library! Unfortunately I wasn't able to get it working with the latest version of Blender (3.3.1) because it's trying to access bpy.binary_path_python, which is deprecated and no longer available. This PR uses sys.executable instead of bpy.binary_path_python.

This fixes the error, but I'm still having other unrelated issues. I'm periodically getting the ModuleNotFoundError: No module named 'tqdm', even though I've installed it through the plugin options and separately by using python -m pip install tqdm from the Blender Python executable (#8 and #10). And when it doesn't have that issue, I'm running into the IndexError descibed in #12.

I'm using Blender 3.3.1 on Windows 11 with the file suzanne.gcode from this repository.

Related issue: #13