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

Not working with 4.2.1 LTS #22

Open
BlendThatFilm opened this issue Sep 18, 2024 · 14 comments
Open

Not working with 4.2.1 LTS #22

BlendThatFilm opened this issue Sep 18, 2024 · 14 comments

Comments

@BlendThatFilm
Copy link

BlendThatFilm commented Sep 18, 2024

EDIT: The addon does report errors but only when I tried a new installation.

image

image

@hannesa2
Copy link

hannesa2 commented Sep 19, 2024

I tried in Blender 4.2.0 on an Apple Silicon and run into
image

Somehow it wants a x86 thing rtmidi.cpython-39-x86_64-linux-gnu.so which can't work on an Apple Silicon

@str8tiger
Copy link

you will find the solution here #24

@str8tiger
Copy link

1.Open a Terminal, cd into this directory and install rtmidi through Blender's python interpreter

D:\Program Files\Blender Foundation\Blender 4.2\4.2\python\bin\

open Terminal change directory
cd /path/to/blender/4.2/python/bin/
install rtmidi
./python -m pip install python-rtmidi

2.Restart Blender, Solved

@slashv
Copy link

slashv commented Nov 6, 2024

I was getting the same error as @hannesa2 on mac silicone. The issue is that the AddRoutes plugin comes with a rtmidi folder in the zip file so even if you install as per @str8tiger strategy it gives the same error since the local folder takes precedence.

The solution was to unzip the plugin, delete the "rtmidi" folder and re-zip it. Now if you installed rtmidi with the Blender python interpreter it should work.

@str8tiger
Copy link

Good suggestion, I tested in blender 4.3 on mac sillicon, it also works, thank you @slashv

@str8tiger
Copy link

Before this, I tried to remove the MIDI-related functions to solve the rtmidi compatibility problem. And I did succeed, but there was a tiny bug left 'cause I'm not really good at programming. thank you guys!

@BlendThatFilm
Copy link
Author

you will find the solution here #24

Maybe I'm missing something but every time I try one of these solutions I seem to fail to get it to work.

Some details I'm working on PC's multiple, Windows 10 and 11.

I opened the windows command terminal CD into the correct location for the python bin:
cd C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\bin
Then run
./python -m pip install python-rtmidi

and it returns the following error:

image

@str8tiger
Copy link

str8tiger commented Nov 13, 2024 via email

@BlendThatFilm
Copy link
Author

The error message "'.' is not recognized as an internal or external command" typically occurs in a Windows command prompt environment. Here's what it usually means and how to address it: What it means In Windows, when you type a command in the Command Prompt (cmd), it tries to find an executable program with that name. The period (.) by itself is not a valid command name that Windows recognizes as something it can execute. It's possible you might have intended to use it in a context where it's not appropriate for the command line, such as trying to run it like a program. Common scenarios where this error appears Incorrect path usage: For example, if you are in a batch script and you have something like .\myprogram.exe to run an executable in the current directory, but you accidentally just type . on its own line instead of as part of a proper path statement for running a file. Misunderstanding the command line syntax: Maybe you thought the period had some special meaning in the Windows command prompt that it doesn't have in the way you're using it. | | bin | | @.*** |

---- Replied Message ---- | From | @.> | | Date | 11/13/2024 17:39 | | To | @.> | | Cc | @.> , @.> | | Subject | Re: [JPfeP/AddRoutes] Not working with 4.2.1 LTS (Issue #22) | you will find the solution here #24 Maybe I'm missing something but every time I try one of these solutions I seem to fail to get it to work. Some details I'm working on PC's multiple, Windows 10 and 11. I opened the windows command terminal CD into the correct location for the python bin: cd C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\bin Then run ./python -m pip install python-rtmidi and it returns the following error: image.png (view on web) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

I don't want to come off as disrespectful but that answer reads like something ChatGPT might spit out. You said you'd got it to work so give me your experience, did you use the windows command prompt or did you use Blenders internal console? Are you on Windows? Linux?

@SvenSchoene
Copy link

@BlendThatFilm The reply by str8tiger probably was ChatGPT generated, but probably not out of malice, but out of a need for efficiency.

Unfortunately ChatGPT only got very close to the solution, but not entirely: You ran this command: ./python -m pip install python-rtmidi

On Windows, the slashes for paths are backslashes: / becomes \: .\python -m pip install python-rtmidi
(This is probably even enough: python -m pip install python-rtmidi)

@BlendThatFilm
Copy link
Author

@BlendThatFilm The reply by str8tiger probably was ChatGPT generated, but probably not out of malice, but out of a need for efficiency.

Unfortunately ChatGPT only got very close to the solution, but not entirely: You ran this command: ./python -m pip install python-rtmidi

On Windows, the slashes for paths are backslashes: / becomes \: .\python -m pip install python-rtmidi (This is probably even enough: python -m pip install python-rtmidi)

Thank you, however I'm still hitting problems with this:

image

@slashv
Copy link

slashv commented Dec 7, 2024

I forked the repo to fix it and work with the new Blender add-on specifications. I've created a PR to have the changes merged into this repo but until then you can use this release:
https://github.com/slashv/AddRoutes/releases/tag/v0.33.0

Tested on MacOs with Apple Silicone but should work on Windows and Linux as well as the dependencies have been updated and wheels included for all three platforms.

@BlendThatFilm
Copy link
Author

I forked the repo to fix it and work with the new Blender add-on specifications. I've created a PR to have the changes merged into this repo but until then you can use this release: https://github.com/slashv/AddRoutes/releases/tag/v0.33.0

Tested on MacOs with Apple Silicone but should work on Windows and Linux as well as the dependencies have been updated and wheels included for all three platforms.

I forked the repo to fix it and work with the new Blender add-on specifications. I've created a PR to have the changes merged into this repo but until then you can use this release: https://github.com/slashv/AddRoutes/releases/tag/v0.33.0

Tested on MacOs with Apple Silicone but should work on Windows and Linux as well as the dependencies have been updated and wheels included for all three platforms.

I just tried this in 4.2. It worked for a moment then stopped again. I'm on Windows 10 on this PC, will try on 11 tomorrow.

@str8tiger
Copy link

str8tiger commented Dec 20, 2024

I was getting the same error as @hannesa2 on mac silicone. The issue is that the AddRoutes plugin comes with a rtmidi folder in the zip file so even if you install as per @str8tiger strategy it gives the same error since the local folder takes precedence.

The solution was to unzip the plugin, delete the "rtmidi" folder and re-zip it. Now if you installed rtmidi with the Blender python interpreter it should work.

@slashv could you please update to 0.34 based this version
AddRoutes_0.34_latest.zip
i download from http://www.jpfep.net/pages/addroutes/

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

5 participants