building mathutil as dependency fails for Ifcopenshell
Hi all,
i'm trying to port one of my CAD scripts to a newer CAD version which is using python3.11.
Since python is embedded, it's a bit awkward to get python dependencies installed.
Until now, i was able to install all IfcOpenShell dependencies except mathutils.
It seems to be necassary to compile it during installtion which fails. Missing C++ compiler, even though i've installed a compiler... Maybe the wrong one?
Is there an other way to install a precompiled version? I need to install the script including all python packages on 30+ machines... Won't ne able to install a compiler on alle those machines.
Any help welcome!
BR
Marcus
Tagged:
Comments
@mcnill Blender comes with mathutils, have you tried just ... stealing that? :)
@Moult Thanks for the hint! I've installed Blender 3.6/4.2.
Noe glue where to find the files. Tried to find them but without succes...
I don't think you can just copy it from Blender, it probably compiled together with some other dlls and loaded in some weird way.
What error? Can you please share the traceback?
You can compile it once and then share the .pyd between the machines. Maybe it's also distributed elsewhere besides pypi but on pypi mathutils is just a source code without the binaries.
@mcnill what about mathutils from pypi https://pypi.org/project/mathutils/
It doesn't have the binaries, it's just a source code.
Hi Andrej, thank you for your feedback. I need to check when I'm back in office.
I'm off-desk for holiday.
BR
Marcus
Hi Arv, thank you also for your feedback. Installing from pypi ends with the same message about missing correct compiler.
I think it's like Andrej said, that on pypi is source code, no binaries bundled.
BR
Marcus
I'm having the same issue. Traceback when I try to install with pip on Python 3.11:
Are you sure you have 'Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools"' installed?
BTW it's on the todo list to remove mathutils as a dependency and only work with numpy but we haven't gotten around to it yet. This should be a fairly well scoped task - if anybody is interested?
From a cursory google last week I think this is a 6gb monstrosity that I probably don't have permission to install. Seems silly to install it just to be able to have a single python module installed. I just reverted to python 3.9 for this.
I thought this might be the case. Not volunteering yet though, sorry 😅
@Moult Don't mind giving it a try. Any pointers on where to start?