ubisoft / shotmanager

Shot Manager is a Blender add-on that introduces a true shot entity in Blender scenes, as well as a wide and powerful set of tools to build and edit sequences in real-time directly in the 3D context.
GNU General Public License v3.0
201 stars 29 forks source link

OpenTimelineIO: Module not found #34

Closed tonpix closed 2 years ago

tonpix commented 2 years ago

Infos on the context

Describe the bug

image

To Reproduce Steps to reproduce the behavior:

  1. run Blender 3.2 as admin
  2. install addon from latest release github page
  3. enable addon
  4. see error message screenshot
werwack commented 2 years ago

Hi @tonpix

That's weird. Could you please test with the beta version available here: https://github.com/ubisoft/shotmanager/releases/tag/v2.0.102_Beta

That is the one that is currently maintained.

In the mean time not having OpentimelineIO is not blocking for current use of Shot Manager inside a scene. It is only needed when exporting or importing XML files to work with external editing software.

tonpix commented 2 years ago

Tried beta version, there's still module problem. Should I make a new issue on github?

Indeed, 2.0 beta addon seems to be working fine without this module, wasn't aware it's not mandatory for main usage (so far my nitpick for 2.0 would be Toggle Tools Overlay being disabled when blender is started fresh/restarted, no idea if it's intended).

werwack commented 2 years ago

Not need to make a new issue, thank you. Let's try something else: can you please re-launch Blender as admin, open the window terminal, then reinstall the addon (just remove and reinstall over it, should be enough) and then copy the content of the log from the terminal to this issue?

Looks like the issue is the rights to write in the Blender Python folder. Can you describe me also the steps you do to launch in Admin mode please?

Regarding the Toggle of the Tools Overlay I'm not sure I can do something at the moment but I keep that in mind.

tonpix commented 2 years ago

Right clicked on blender shortcut in taskbar -> Run as administrator

Log content (I've set 1 week expiration, sorry, but I'm bit wary of leaving my logs in web deeps permanently :) ) : https://pastebin.com/uHQkmVt5

werwack commented 2 years ago

Thank you very much for the log. I understand your point. I got it so you can delete it now. It's very instructive. And the situation is strange. The installer don't see OpenTimelineIO installed in the Blender Python, it starts to install it and when it launches the installation the Blender Python answers that it cannot install it cause it already has it.

The second part of the log is for an installation attempt from the web, which fails but I'm not surprised because the online version is not ready yet.

I'll try a possible fix in the next release, I'll let you know.

werwack commented 2 years ago

Hi @tonpix, a new version of Shot Manager was released today. Can you test it please and let me know if you still have the issue? Be careful in the installation process: it has to be done in Admin mode, then you have to restart Blender in normal mode to check in the Preferences if OpenTimelineIO has been installed.

tonpix commented 2 years ago

Hi @werwack

Still getting error image

Console log: https://pastebin.com/LfsKCy2R

werwack commented 2 years ago

Ok. Thanks again for the log. There is something else I can try in the code, in the next release. In the meantime you can also try this:

And then let me know ;)

tonpix commented 2 years ago

Seems it worked, it was curious, but here's what happened

  1. went to your C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\site-packages path and there were no folders with Opentimeline in name
  2. searched PC globally, found those 4 folders in C:\Users\tonpix\AppData\Roaming\Python\Python310\site-packages and removed those
  3. reinstalled addon and it made 4 folders back in C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\site-packages (just like you specified)
  4. no error anymore image

Now the question is how those old libraries were in different spot 🤔 Maybe older SM version installed there, or different software installed Opentimeline? Can't think of any, except maybe a Davinci Resolve?

werwack commented 2 years ago

Weird indeed. Those libraries should have been in the Blender Python folder, I don't see how they could have reached the standard Python folder. And Davinci Resolve is not installing OTIO, as far as I know (I explored that a while ago and having a custom OTIO installation for Resovle doesn't seem click and go at all). Anyway... Please reopen this issue in case of troubles on that again.

Best, Julien