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

Cannot enable pluging. Errors pop up. #4

Open
TheSeanLavery opened this issue May 16, 2020 · 7 comments
Open

Cannot enable pluging. Errors pop up. #4

TheSeanLavery opened this issue May 16, 2020 · 7 comments

Comments

@TheSeanLavery
Copy link

Using the latest "ready to go" version here. http://www.jpfep.net/pages/addroutes/ on blender 2.82a

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\modules\addon_utils.py", line 351, in enable
mod = import(module_name)
File "C:\Users\Sean\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\AddRoutes_init_.py", line 51, in
from . import ui
File "C:\Users\Sean\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\AddRoutes\ui.py", line 27, in
from data import generate_dict
File "C:\Users\Sean\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\multi-user\libs\replication\replication\data.py", line 15, in
from .constants import (
ImportError: attempted relative import with no known parent package

@JPfeP
Copy link
Owner

JPfeP commented May 17, 2020

Thank for your report. I wonder what could be the origin of this problem.

This line: File "C:\Users\Sean\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\multi-user\libs\replication\replication\data.py"
... is showing a different path than :
C:\Users\Sean\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\AddRoutes\ui.py

It would mean that another module is called data.py in another add-on and Blender tries to import it. That's pretty unexpected.

As you could see on the github sources there is no replication/replication/data.py path in Addroutes.

@JPfeP
Copy link
Owner

JPfeP commented May 26, 2020

It seems that there is indeed a conflict with this file:
https://gitlab.com/slumber/replication/-/blob/master/replication/data.py

...which belongs to the multi-user add-on:
https://gitlab.com/slumber/multi-user
https://blenderartists.org/t/multi-user/1187118

I am going to study a proper way to fix that. Changing its name in AddRoutes is a simple solution but it's a little bit frightening that nameclashes can occur that way. Still puzzled...

@JPfeP
Copy link
Owner

JPfeP commented Jun 1, 2020

I was in fact using absolute paths with a bit of naivety. I changed this in my local copy, so the issue should be fixed now. The next release will be available in a few days I hope.

@TheSeanLavery
Copy link
Author

Cool! Please let me know when this is available.

Is there a quick fix I can try on my end?

@JPfeP
Copy link
Owner

JPfeP commented Jun 11, 2020

It's not that difficult but might affect several files, mostly in ui.py:
"from data import generate_dict" has to be replaced by "from .data import generate_dict"

I apologize for the delay as I had some Pandora's box to open/close in the meanwhile. I am rewriting the osc and midi device configuration.

@JPfeP
Copy link
Owner

JPfeP commented Jun 19, 2020

At last, the v0.30 is ready with the bug fix:
http://www.jpfep.net/addroutes-v030/

Please let me know if it solves the pbm.

@TheSeanLavery
Copy link
Author

Awesome. Thank you so much for fixing the problem.

I got the plugin working after a bit of fiddling around. Ableton being open on start prevented the keyboard from being configurable. And opening Ableton afterward, I can't get the midi to work in there too. Might just be a limitation of midi though?

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

2 participants