I decided to try running the Python script, and I encountered a problem as well, which I'm describing here.
As I mentioned earlier, I have Davinci Resolve Studio version. First, I took all the preparatory steps.
1. In the program settings I enabled the option for external script execution by selecting "Local" option.
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
2. I added the environment variables mentioned in the
API Introduction on the website
https://resolvedevdoc.readthedocs.io/en/latest/API_intro.html to the
bash_profile file.
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
3.Then I restarted the terminal and checked the state of the variables using the command
"printenv".
4. Then I restarted Davinci.
5. After that, I opened the terminal in the system utilities and navigated to the folder with the installed scripts. I made some edits to the
python_get_resolve.py module, adding debug lines with the print statement.
6. By selecting and running one of the scripts named
5_get_project_information.py, I received the following debug lines.
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
My observations: As you can notice, after printing the result on the screen with the line
"print("bmd_module is:", bmd)", the script hangs, although it should immediately output the second debug line with the connected API or simply "nill".
Based on the debug information, I conclude that the fusionscript.so module is found, but it cannot be executed.
What could be the problem?