Hyperdeck Controller: Python Issue

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

GSwann

  • Posts: 1
  • Joined: Fri Feb 10, 2023 10:03 pm
  • Real Name: Ghaly Swann

Hyperdeck Controller: Python Issue

PostFri Feb 10, 2023 10:09 pm

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
Offline

oniongarlic

  • Posts: 53
  • Joined: Thu Dec 05, 2019 9:00 am
  • Location: Turku/Finland
  • Real Name: Kaj-Michael Lang

Re: Hyperdeck Controller: Python Issue

PostTue Feb 14, 2023 10:23 am

Something wrong in the script you are using. What specific script is this ?
Check out my free and open software:
CutePocketRemote - https://www.tal.org/projects/cutepocketremote
CuteAtum - https://www.tal.org/projects/cuteatum
Offline

Blake-man

  • Posts: 1
  • Joined: Thu Feb 16, 2023 10:42 pm
  • Real Name: Eric Blake

Re: Hyperdeck Controller: Python Issue

PostThu Feb 16, 2023 10:52 pm

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

Cameron Nichols

Blackmagic Design

  • Posts: 442
  • Joined: Mon Sep 04, 2017 4:05 am

Re: Hyperdeck Controller: Python Issue

PostMon Mar 20, 2023 5:40 am

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
Offline

Trevor Asquerthian

  • Posts: 579
  • Joined: Sun May 11, 2014 10:03 am

Re: Hyperdeck Controller: Python Issue

PostTue Apr 25, 2023 7:39 am

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

Cameron Nichols

Blackmagic Design

  • Posts: 442
  • Joined: Mon Sep 04, 2017 4:05 am

Re: Hyperdeck Controller: Python Issue

PostFri Apr 28, 2023 11:17 am

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
Offline

Trevor Asquerthian

  • Posts: 579
  • Joined: Sun May 11, 2014 10:03 am

Re: Hyperdeck Controller: Python Issue

PostMon May 15, 2023 1:38 pm

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

Return to Software Developers

Who is online

Users browsing this forum: TBTech and 16 guests