Problem loading fusionscript.dll via Python on Windows 10

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Octavian Mot

  • Posts: 247
  • Joined: Mon Aug 25, 2014 2:42 pm
  • Location: Germany

Problem loading fusionscript.dll via Python on Windows 10

PostTue Oct 04, 2022 6:35 pm

Hello,

I'm working on a tool that is using the Resolve 18 API ( https://github.com/octimot/StoryToolkitAI/ ) but ran into some problems on some Windows 10 machines.

The script crashes when it tries to load fusionscript.dll without throwing any exception (line 29 in DaVinciResolveScript.py)

To debug, I tried to simply open up a Python console and run:
Code: Select all
import imp
script_module = imp.load_dynamic("fusionscript", "C:\\Program Files\\Blackmagic Design\\Davinci Resolve\\fusionscript.dll")
But, the Python console quits without any error similar to what is happening in the tool scripts.
I've tried both Python 3.9.13 and 3.10.7, but the result was the same.

The file does exist at its path. Resolve Studio 18.0.4 is installed on said machine.

Any ideas on what it could be?
Last edited by Octavian Mot on Wed Oct 05, 2022 7:13 am, edited 1 time in total.
Trying to keep it together at mots.us
Taming AI for filmmaking at StoryToolkit.ai
Offline

Octavian Mot

  • Posts: 247
  • Joined: Mon Aug 25, 2014 2:42 pm
  • Location: Germany

Re: Problem loading fusionscript.dll via Python on Windows 1

PostWed Oct 05, 2022 6:59 am

I tried to re-install Resolve on the machine, thus deleting all the dll files in the Program Files folder, but the problem still persists.

This is really weird since obviously the import works for most people and I'm trying to figure out what's causing it.

I'd be happy to read any suggestions.
Trying to keep it together at mots.us
Taming AI for filmmaking at StoryToolkit.ai
Offline

barret

  • Posts: 2
  • Joined: Mon Oct 10, 2022 1:23 am
  • Real Name: Barret Xiong

Re: Problem loading fusionscript.dll via Python on Windows 1

PostMon Oct 10, 2022 1:27 am

The same situation occurred when utilizing fusionscript.dll. My python version is 3.8.10.

Looking for brilliant solutions to this problem. Appreciate it!
Offline

Octavian Mot

  • Posts: 247
  • Joined: Mon Aug 25, 2014 2:42 pm
  • Location: Germany

Re: Problem loading fusionscript.dll via Python on Windows 1

PostTue Oct 11, 2022 4:59 am

It seems that we're the only ones experiencing this.

Just for reference, what's your Windows and Resolve Studio version?
Trying to keep it together at mots.us
Taming AI for filmmaking at StoryToolkit.ai
Offline

barret

  • Posts: 2
  • Joined: Mon Oct 10, 2022 1:23 am
  • Real Name: Barret Xiong

Re: Problem loading fusionscript.dll via Python on Windows 1

PostTue Oct 11, 2022 6:22 am

FYI, Windows 10 Enterprise 21H2 and Davinci Resolve 18.0B(Build 23)
Offline

sparkware

  • Posts: 2
  • Joined: Fri May 14, 2021 2:06 pm
  • Real Name: Kiyoon Kim

Re: Problem loading fusionscript.dll via Python on Windows 1

PostSat Oct 15, 2022 12:54 pm

I solved the issue by installing Python 3.10 on Windows.

Previously, I had Python 3.6 installed obviously to match the compatibility with Resolve.
Resolve 18 has a release note saying it detects any Python 3 version and it will be compatible with any.
Maybe with this change, there's an issue with previous installation or previous version of Python.

Even with the Resolve's Workspace > Console, Python3 wasn't detected before installing the new version.
Hope it helps.
Offline

Octavian Mot

  • Posts: 247
  • Joined: Mon Aug 25, 2014 2:42 pm
  • Location: Germany

Re: Problem loading fusionscript.dll via Python on Windows 1

PostFri Oct 21, 2022 12:20 pm

I uninstalled all Python versions from the computer and re-installed Python 3.9 using the installer available at https://www.python.org/downloads/windows/

Now it seems to work fine! :roll:
Trying to keep it together at mots.us
Taming AI for filmmaking at StoryToolkit.ai

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 5 guests