audio-visualizer-python icon indicating copy to clipboard operation
audio-visualizer-python copied to clipboard

Can't use projects from commandline

Open 4aiman opened this issue 5 months ago • 0 comments

Hello,

I've been trying to automate audio processing by using a project that I've saved from GUI. I took me a while to understand how to properly put project path into the bash command, but when I finally did, I ran into this issue:

Traceback:
  File "audio-visualizer-python/lib/python3.10/site-packages/avp/component.py", line 85, in propertiesWrapper
    return func(self)

  File "audio-visualizer-python/lib/python3.10/site-packages/avp/components/video.py", line 70, in properties
    outputFile = str(self.parent.args.output)

The relevant piece of code is this one: изображение

Long story short, to be able to batch process my files I have:

  • commented out the lines 68-69 in the video.py file where self.parent.args were being read.
  • added the 66 line in the same file to declare an "empty" outputFile variable.

I'm too vaguely acquainted with Python to comprehend what I did in there on the "architectural level" . That's the reason behind why this isn't a pull request: I just don't know what else I've broken with these changes.

I hope that someone more proficient in Python than me would one day take a look at this and make a proper fix.

4aiman avatar Sep 05 '24 18:09 4aiman