Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't enable the addon - ModuleNotFoundError: rtmidi._rtmidi #8

Open
EvanHaal opened this issue Jul 23, 2021 · 14 comments
Open

Can't enable the addon - ModuleNotFoundError: rtmidi._rtmidi #8

EvanHaal opened this issue Jul 23, 2021 · 14 comments

Comments

@EvanHaal
Copy link

EvanHaal commented Jul 23, 2021

blender_74t6A4GY0K

I downloaded the latest file from the website and installed it in Blender, but when I click on the checkbox to activate it I get an error.

I really want this addon to work. It looks awesome :D

@Calla-Ji
Copy link

Same error here .... die you find a solution or how can I fix this?

@hktrends
Copy link

I got the same error running Blender 2.93, but then I read more carefully from the creator website.

AddRoutes is a new Add-on for Blender 2.8 gathering AddMIDI and AddOSC in the same package. As a novelty an application for smartphones and tablets (Blemote) is currently developed to ease the remote control of Blender.

So I uninstall Blender 2.93, and install Blender 2.8. And the plugin can be enable.

Hope this help.

@enzyme69
Copy link

enzyme69 commented Aug 6, 2021

Blender 2.92 seems to be able to load AddRoutes. I hope 2.93 LTS and 3.0 can be supported.

@flurick
Copy link

flurick commented Aug 13, 2021

Got it enabled with 3.0alpha by renaming "_rtmidi.cpython-37m-x86_64-linux-gnu.so" to just "_rtmidi.so"
(In the installed scripts/addons path that is)

I guess since linux, windows and mac versions are in the same folder with different names, it can't quiet figure out which one to use?

@Outboarder
Copy link

Got it enabled with 3.0alpha by renaming "_rtmidi.cpython-37m-x86_64-linux-gnu.so" to just "_rtmidi.so"
(In the installed scripts/addons path that is)

I guess since linux, windows and mac versions are in the same folder with different names, it can't quiet figure out which one to use?

I'm guessing you are on linux! It's Not working in windows.
addon_utils.py in version 2.93 and above changed.
I Hope he fix this.

@Marte2007
Copy link

Blender 2.93 uses Python 3.9, while rtmidi included with AddRoutes is for 3.7.
You can download an updated version from here: https://pypi.org/project/python-rtmidi/#files
Look for the one with "cp39" in the filename and the correct OS (ex. for Windows x64 you need python_rtmidi-1.4.9-cp39-cp39-win_amd64.whl)
Open it with 7-Zip or similar, or rename it and add .zip, and extract the "rtmidi" folder into AddRoutes.

@Discover-Awesome
Copy link

Hi @Marte2007 how do you 'extract the "rtmidi" folder into AddRoutes' ???

I was able to make the .whl into a .zip file, then I opened-up the .zip file and found the rtmidi file with a size of 229,391 and I dragged that folder to AddRoutes_latest.zip file using WinRAR. Then, I tried to Install that into Blender from Preferences and I received the same error with Blender saying "Version 0.32 Warning Better, but still a W.I.P" (work in progress I believe that is what that means).

So, what were the exact steps you used to get this to work for you in Blender?

Thank you.

@flurick
Copy link

flurick commented Aug 22, 2021

Ah nice @Marte2007! So @Outboarder @Discover-Awesome on windows I can just copy the new version of rtmidi .pdy file (from https://files.pythonhosted.org/packages/2e/b5/e118bf9d210ffdf82b58b9f2bd30219621e19256296d01a60fac84441063/python_rtmidi-1.4.9-cp39-cp39-win_amd64.whl) to "%Appdata%\Blender Foundation\Blender\3.0\scripts\addons\AddRoutes\rtmidi" and it can be activated :)

@Marte2007
Copy link

@Discover-Awesome I copied the whole "rtmidi" folder from the whl into the installed addon folder (not the zip file).
Also "rtmidi" should be a folder, not a file, maybe WinRAR is opening it wrong? Try with 7-Zip or Windows Explorer.

@Outboarder
Copy link

Thank you @Marte2007 and @flurick, it works perfectly.
I'm so happy.

@JPfeP
Copy link
Owner

JPfeP commented Sep 14, 2021

Hello,

Sorry for the delay, I just released a new "ready to go version" with support for Blender 2.93/Python 3.9, see here:
http://www.jpfep.net/addroutes-v033-blender-293-support/
It should work on Windows/OSX/Linux right out of the box as usual.

There is no other improvement, I just restart the work on the project after being stuck without decent GFX card for so long. :-/

@enzyme69
Copy link

I tested just now, not quite working with Blender 2.93 M1 Mac unfortunately.

@JPfeP
Copy link
Owner

JPfeP commented Jan 21, 2022

I tested just now, not quite working with Blender 2.93 M1 Mac unfortunately.

It's because the M1 is a new ARM based CPU which is different from the x86 Intel architecture. The AddOn relies on a compiled version of "python-rtmidi" and I provide compiled binaries for this lib only for the x86 Mac right now. Pure Python cannot read directly MIDI devices without this wrapper.

You can however install by yourself this external lib on your Apple system by checking instructions here :
https://pypi.org/project/python-rtmidi/

It can be tedious for a beginner, unfortunately.

@jaekong
Copy link

jaekong commented May 5, 2022

I tested just now, not quite working with Blender 2.93 M1 Mac unfortunately.

Installing it with Blender's built-in pip doesn't work with M1 Mac but I found a workaround.

#10 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants