shotmanager icon indicating copy to clipboard operation
shotmanager copied to clipboard

OpenTimelineIO: Module not found

Open tonpix opened this issue 2 years ago • 9 comments

Infos on the context

  • Add-on version: 1.7.16
  • Blender version, from installer or from zip: 3.2, from Installer
  • Blender was launched in Admin mode? Yes
  • OS: Windows 10
  • Bug was also on previous versions (I don't know / No / Yes, seen on version x.x): I don't know

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

tonpix avatar Jun 30 '22 16:06 tonpix

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.

werwack avatar Jul 01 '22 08:07 werwack

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).

tonpix avatar Jul 01 '22 09:07 tonpix

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.

werwack avatar Jul 01 '22 15:07 werwack

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

tonpix avatar Jul 01 '22 16:07 tonpix

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 avatar Jul 01 '22 21:07 werwack

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.

werwack avatar Aug 10 '22 11:08 werwack

Hi @werwack

Still getting error image

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

tonpix avatar Aug 10 '22 13:08 tonpix

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:

  • go to the directory of Blender where all the Python packages are installed (should be something like this: C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\site-packages )
  • delete the folders related to opentimelineIO (namely opentimelineio, opentimelineio_contrib, OpenTimelineIO-0.15.0.dev1.dist-info and opentimelineview - basically everything starting with opentimeline)
  • Re-do the install process (Blender in Admin mode, install, quit, relaunch in normal mode).

And then let me know ;)

werwack avatar Aug 10 '22 21:08 werwack

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?

tonpix avatar Aug 11 '22 16:08 tonpix

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

werwack avatar Aug 22 '22 08:08 werwack