homemaker-addon icon indicating copy to clipboard operation
homemaker-addon copied to clipboard

No module named 'TopologicSverchok-v'

Open slavingia opened this issue 1 year ago • 17 comments

Originally opened in that repo, but was asked to move it here:

Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/3.5/scripts/modules/addon_utils.py", line 333, in enable mod = import (module name)
ModuleNotFoundError: No module named 'TopologicSverchok-v'

slavingia avatar Jun 24 '23 14:06 slavingia

Sorry, I have no idea, 'TopologicSverchok' doesn't appear anywhere in Homemaker. The Homemaker add-on just uses the base 'topologic' library.

If you can search the 'scripts' folder and tell us which file has this "TopologicSverchok-v" text, we may be able to figure out what is responsible.

brunopostle avatar Jun 24 '23 16:06 brunopostle

I think what's happening is that it's trying to pull in Topologic by pulling in TopologicSverchok-v.0.8.2.9 which is getting cut off to reflect the error above.

slavingia avatar Jun 25 '23 03:06 slavingia

Removing the library I get just No module named 'topologic'

slavingia avatar Jun 25 '23 03:06 slavingia

I'm still but sure what is happening. I assume you are trying to run the Homemaker add-on in blender.

Have you downloaded one of the ZIP files from the Releases page and installed it in Blender > Preferences > add-ons > install ?

There are other ways to run Homemaker, but they involve finding and installing libraries, so are not recommended.

brunopostle avatar Jun 25 '23 07:06 brunopostle

Yes that’s what I tried. On MacOS.

slavingia avatar Jun 25 '23 14:06 slavingia

Are you saying I don’t need to independently install Topologic at all and just installing the Homemaker ZIP will be enough?

slavingia avatar Jun 25 '23 14:06 slavingia

Yes, there should be a working Mac ZIP file with all dependencies (except BlenderBIM) on the releases page: https://github.com/brunopostle/homemaker-addon/releases

brunopostle avatar Jun 25 '23 15:06 brunopostle

I am getting the same error doing that:

Report: Error
Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/3.5/scripts/modules/addon_utils.py", line 333, in enable mod = _import_(module_name)
File "/Users/sahil/Library/Application Support/Blender/3.5/scripts/addons/homemaker/ init py", line 9, in <module> from topologic import Vertex, Face, CellComplex ModuleNotFoundError: No module named 'topologic'

I am on MacOS 13.5 Beta (22G5048d), Blender 3.5.1, and Homemaker [2023-05-29].

slavingia avatar Jun 25 '23 23:06 slavingia

Do you have the right ZIP? there are two for Mac:

blender-homemaker-2023-05-29-darwin.zip for older macs, and blender-homemaker-2023-05-29-darwin-arm.zip for a newer ARM/M1/silicon mac

brunopostle avatar Jun 26 '23 05:06 brunopostle

Ah, good point. I switched to the ARM version and got this:

Screenshot 2023-06-26 at 11 49 10 AM
traceback most recent call last)
File "/Applications/Blender ann/Cont
mod = import (module_name
File "/Users/sahil/Librarv/Applicatior
from topologic import Vertex, Face, ImportError: dopen Users sahil/Librarv/Application Su
5/scrints/addons/homemaker/libs/site/packages/topoloaic.covthon-310-darwin.so.0x0002):Librarvnotloaded:/ont/homebrew/ont/topoloaic/lib/libTopoloaicCore.O.dvlib
Retorenced trom' < 9070828-515723351-20053120 0
Users sahil/Librarv/Application Support/Blender/ 3.5/scripts/addons/homemaker/libs/site/packages/topologic.cpvthon-310-darwin.so
Reason: tried: 'opt/homebrew/opt/topologic/lib/libTopologicCore.o.dylib'(no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/topologic/lib/libTopologicCore.0.dylib' (no such file), '/opt/homebrew/opt/topologic/lib/libTopologicCore.o.dylib" (no such file), '/usr/lib/libTopologicCore.O.dylib' (no such file, not in dyld

slavingia avatar Jun 26 '23 18:06 slavingia

Yes, it does look like that file is missing, I'll investigate

brunopostle avatar Jun 26 '23 22:06 brunopostle

Apologies, I don't have any way of testing these ARM packages. I copied the ARM libraries from TopologicSverchok, but although they contain the python bindings, they don't contain this libTopologicCore library :(

So it looks like the only way to run the Homemaker add-on on ARM is to download the x86 blender, blenderbim and homemaker-addon packages and run them in emulation mode (and the same applies to TopologicSverchok @wassimj?)

brunopostle avatar Jun 27 '23 06:06 brunopostle

Topologic does not yet support Apple Silicon. I hope to add that by the end of the summer

wassimj avatar Jun 27 '23 08:06 wassimj

Is that a small, simple enough task for an outsider to tackle? I can give it a shot earlier than that if so. I would need a bit of a scope to follow in terms of the changes you expect.

slavingia avatar Jun 27 '23 16:06 slavingia

@slavingia There are instructions here: https://github.com/wassimj/Topologic If you are familiar with building software from code on Apple Silicon. Once Topologic and its python bindings are functional on apple silicon, the rest is fairly easy. However, TopologicSverchok is in a hold pattern for now as we are currently changing it so it uses topologicpy. Topologicpy is independent and runs in a python console or jupyter notebook and it s the recommended interface to topologic for the time being. Topologicpy has many more features than the core topologic.

wassimj avatar Jun 27 '23 17:06 wassimj

Does Homemaker need TopologicSverchok at all? If we can move to pointing directly to topologicpy from this addon, instead of using TopologicCore / TopologicSverchok.

slavingia avatar Jun 27 '23 18:06 slavingia

@slavingia topologicpy uses TopologicCore (at least for the time being), so it doesn't fix this ARM Apple Silicon problem.

Homemaker doesn't need TopologicSverchok, but if TopologicSverchok is installed on blender it provides a copy of TopologicCore and the python bindings, so Homemaker is able to make use of this.

The ARM TopologicCore library must have existed at some point, as it wouldn't have been possible to build the ARM version of the python bindings without it - We just don't seem to have a copy of it.

brunopostle avatar Jun 27 '23 19:06 brunopostle