chris-ritsen / network-audio-controller

Cross-platform CLI control of Dante network audio devices without Dante Controller
The Unlicense
203 stars 21 forks source link

ImportError Running Netaudio #12

Open klangfarben1 opened 1 year ago

klangfarben1 commented 1 year ago

Hi, I've installed Netaudio on Manjaro/Arch and when I run any of the commands such as Netaudio Device List I get the following...

netaudio device list Traceback (most recent call last): File "/usr/bin/netaudio", line 33, in sys.exit(load_entry_point('netaudio==0.0.10', 'console_scripts', 'netaudio')()) File "/usr/bin/netaudio", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.10/importlib/metadata/init.py", line 171, in load module = import_module(match.group('module')) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/usr/lib/python3.10/site-packages/netaudio/init.py", line 10, in from .console.application import main File "/usr/lib/python3.10/site-packages/netaudio/console/init.py", line 1, in from .commands.channel import ChannelCommand File "/usr/lib/python3.10/site-packages/netaudio/console/commands/init.py", line 1, in from .channel import ChannelCommand File "/usr/lib/python3.10/site-packages/netaudio/console/commands/channel/init.py", line 1, in from cleo import Command ImportError: cannot import name 'Command' from 'cleo' (/usr/lib/python3.10/site-packages/cleo/init.py)

AWHubGit commented 1 year ago

Same here. Installed by AUR in Arch with "--syncdeps". Running command "netaudio help" results in: ImportError: cannot import name 'Command' from 'cleo' (/usr/lib/python3.10/site-packages/cleo/init.py)

bfranske commented 1 year ago

I think the DanteCache feature was never fully implemented/working when committed. Check an older version like https://github.com/chris-ritsen/network-audio-controller/tree/81eae884464211cdfb0e9d9093cea0146a3cc4f7

You can see a note about caching being under development on this thread https://gearspace.com/board/music-computers/1221989-dante-routing-without-dante-controller-possible.html Caching would be useful as it would speed up changes and save a lot of lookups if you want to change a large number of patches in a batch set for instance.