uki-dev / blendquery

CadQuery and Build123d integration for Blender
32 stars 5 forks source link

Addon does not work any after update to Blender 4.1 #5

Closed mukral closed 3 months ago

mukral commented 3 months ago

Hi, I could install blendquery in Blender 4.0 but it didn't open after update to 4.1.

So I've tried to reinstall blendquery again and received the error message

line 5, in from OCP.gp import{ "ModuleNotFoundError: No module named 'OCP'

build123d and cadquery runs fine with vs code and also "pip show OCP" outputs "version 0.1.9" so I think OCP is installed...

Did I miss something?

Thank you Markus

uki-dev commented 3 months ago

I have not yet tested on 4.1. I will do so and get back to you. Are you running pip show OCP within Blender's Python environment or another Python environment on your system?

uki-dev commented 3 months ago

I am able to reproduce this in 4.1. Looking into a fix now 👍

uki-dev commented 3 months ago

I've pushed two commits that should both resolve this specific issue directly, as well as improve the overall experience when encountering install/import errors:

@mukral could you please pull these commits from main, delete the blendquery folder found in your ~ or %USERPROFILE% directory, and then test whether this resolves things on your end when you try to re-enable the addon and install dependencies?

mukral commented 3 months ago

yes, works now - thanks!