jesterKing / import_3dm

Blender importer script for Rhinoceros 3D files
MIT License
301 stars 38 forks source link

No module named 'rhino3dm #76

Closed Qign closed 3 months ago

Qign commented 4 years ago

Traceback (most recent call last): File "D:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\modules\addon_utils.py", line 351, in enable mod = import(module_name) File "D:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\import_3dm__init__.py", line 43, in import rhino3dm as r3d ModuleNotFoundError: No module named 'rhino3dm'

jesterKing commented 3 years ago

You should install from https://github.com/jesterKing/import_3dm/releases/latest

Mitchellja13 commented 2 years ago

Having same issue, using latest release for windows

jesterKing commented 2 years ago

Make sure you download the correct add-on package, install through Preferences > Add-ons, try activating it (will fail), restart Blender and ensure add-on is activate. Does that work better?

pregbodan commented 1 year ago

I'm having the same issues

Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\modules\addon_utils.py", line 333, in enable mod = import(module_name) File "C:\Users\uset\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\import_3dm__init__.py", line 43, in from .read3dm import read_3dm File "C:\Users\uset\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\import_3dm\read3dm.py", line 128, in from . import converters File "C:\Users\uset\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\import_3dm\converters__init.py", line 23, in import rhino3dm as r3d File "C:\Users\uset\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\modules\rhino3dm\init__.py", line 5, in from ._rhino3dm import * ModuleNotFoundError: No module named 'rhino3dm._rhino3dm'

pregbodan commented 1 year ago

You should install from https://github.com/jesterKing/import_3dm/releases/latest i got it from this link

form2fab commented 1 year ago

Hi all, I am getting this same error message. I obtained the zip from https://github.com/jesterKing/import_3dm/releases/latest Windows 10 version. Although on Win 11. Installation thru preferences-> Add on Activated. Restarted and activated again.

Thanks, Jean

Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\modules\addon_utils.py", line 351, in enable mod = import(module_name) File "C:\Users\jprad\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\import_3dm__init__.py", line 43, in from .read3dm import read_3dm File "C:\Users\jprad\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\import_3dm\read3dm.py", line 128, in from . import converters File "C:\Users\jprad\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\import_3dm\converters__init.py", line 23, in import rhino3dm as r3d File "C:\Users\jprad\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\modules\rhino3dm\init__.py", line 5, in from ._rhino3dm import * ModuleNotFoundError: No module named 'rhino3dm._rhino3dm'

eddspark commented 11 months ago

This is because of the way the release is built. I'm not sure what the correct way to install the rhino3dm python module seperately to the import_3dm add-on is, but I figured out a workaround to I was able to fix this error by changing the directory structure of the latest release, re-zipping. and then installing.

Did this on intel mac.

unzip import_3dm-v0.0.10-py3_10-macos-intel.zip
mv modules/rhino3dm import_3dm/ 
zip -vr import_3dm_patched.zip import_3dm

Then I installed import_3dm_patched.zip using the Blender UI.

Hope that helps!

IceKarimMore commented 9 months ago

Hi eddspark

Tried your solution on a PC Unzipped Moved "rhino3dm" subfolder (and it's files) from "modules" folder to "import_3dm" folder (your command line "mv modules/rhino3dm import_3dm/") Zipped again Blender / Edit / Pref / Add ons / Install > my new zip file

I get "Modules Installed () from 'C:\DATA\AKT Architecture\CAO\Blender\plugins\free\import_3dm-v0.0.10-py3_10-windows_corrected.zip' into 'C:\Users\tabba\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons'" But no Add On called Rhino displays in the add on list ...

... Any one ? An other solution ? Correcting path in the init.py files ?

jesterKing commented 9 months ago

@IceKarimMore did you enable the add-on after installation?

IceKarimMore commented 9 months ago

Hi jesterKing

I finally managed ! I don't really know how, except that I 1st installed and got the same error message, installed right away again (not quitting preference option and this time it worked.

Thanks

Works super fine THANKS !

boom567 commented 2 months ago

Restart blender ,and repeat install this package , will solve this issue.