Page 1 of 1

Hyperdeck Controller: Python Issue

PostPosted: Fri Feb 10, 2023 10:09 pm
by GSwann
Hello - I am trying to get the Hyperdeck connected via Python. But I am getting an error. What am I doing wrong? Error message in BOLD below:

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
cd '/Volumes/Promise Pegasus/DOWNLOADS/Blackmagic HyperDeck Protocol/' && '/usr/local/bin/python3' '/Volumes/Promise Pegasus/DOWNLOADS/Blackmagic HyperDeck Protocol/Main.py' && echo Exit status: $? && exit 1
cblt5995:~ cable12$ cd '/Volumes/Promise Pegasus/DOWNLOADS/Blackmagic HyperDeck Protocol/' && '/usr/local/bin/python3' '/Volumes/Promise Pegasus/DOWNLOADS/Blackmagic HyperDeck Protocol/Main.py' && echo Exit status: $? && exit 1
usage: Main.py [-h] address
Main.py: error: the following arguments are required: address
cblt5995:Blackmagic HyperDeck Protocol cable12$ python3 Main.py 192.168.217.33
HyperDeck INFO: Connecting to 192.168.217.33:9993...
HyperDeck ERROR: Failed to connect: BaseEventLoop.create_connection() got an unexpected keyword argument 'loop'

WebUI INFO: Starting web server on localhost:8080

Re: Hyperdeck Controller: Python Issue

PostPosted: Tue Feb 14, 2023 10:23 am
by oniongarlic
Something wrong in the script you are using. What specific script is this ?

Re: Hyperdeck Controller: Python Issue

PostPosted: Thu Feb 16, 2023 10:52 pm
by Blake-man
Hey GSwann, I'm running into the same error trying to connect to hyperdeck via python with the scripts from the Blackmagic website's developer/product/hyperdeck page:

"HyperDeck INFO: Connecting to 192.168.1.151:9993...
HyperDeck ERROR: Failed to connect: BaseEventLoop.create_connection() got an unexpected keyword argument 'loop'
WebUI INFO: Starting web server on localhost:8080"

I'd be interested to hear if you found the issue. I'm able to connect over ethernet via the HyperDeck Setup program, but there's no controls in there of course.

Re: Hyperdeck Controller: Python Issue

PostPosted: Mon Mar 20, 2023 5:40 am
by Cameron Nichols
Hi Eric,

Please download a patch for the Blackmagic HyperDeck Protocol demo from:
https://bmdseeds.sharefile.com/d-sde1e4bfc9f7043739499cc61ff101264

To apply patch:
Code: Select all
$ cd Blackmagic\ HyperDeck\ Protocol
$ patch < ~/Downloads/BlackmagicHyperDeckProtocol_py3.10.patch

Please let me know if you require further assistance with the patch.

Regards
Cameron

Re: Hyperdeck Controller: Python Issue

PostPosted: Tue Apr 25, 2023 7:39 am
by Trevor Asquerthian
Getting a similar issue using the Blackmagic Design - Hyperdeck UI code attempting to connect to a ShuttleHD

Code: Select all
python3 Main.py {169.254.68.156}
HyperDeck INFO: Connecting to {169.254.68.156}:9993...
HyperDeck ERROR: Failed to connect: [Errno 8] nodename nor servname provided, or not known
WebUI INFO: Starting web server on localhost:8080


Had a similar issue yesterday, applied the patch but it didn't seem to have any effect but then eventually it did connect (after doing factory reset, change IP addresses etc etc). Worked fine for rest of day.

I can use
Code: Select all
 nc 169.254.68.156 9993
and issue commands via the terminal.

Re: Hyperdeck Controller: Python Issue

PostPosted: Fri Apr 28, 2023 11:17 am
by Cameron Nichols
Hi Trevor,

Can you retry the command without the {} braces around the IP address?
Code: Select all
python3 Main.py 169.254.68.156
Regards
Cameron

Re: Hyperdeck Controller: Python Issue

PostPosted: Mon May 15, 2023 1:38 pm
by Trevor Asquerthian
Cameron Nichols wrote:Hi Trevor,

Can you retry the command without the {} braces around the IP address?
Code: Select all
python3 Main.py 169.254.68.156
Regards
Cameron


Doh! Haven't tested this yet but that makes a lot of sense :D