You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use less parallel threads than the reported number of
hyperthreads on my computer. Therefore, I call flac2all like this:
>python ~/Downloads/flac2all_v3.38.py vorbis . --outdir=../ogg --threads=3
My python version is 2.7 (Ubuntu 12.04). The command crashes and the output is:
==========
Flac2all python script, v3 . Copyright 2006-2012 Ziva-Vatra.com.
Licensed under the GPLv2 (http://www.ziva-vatra.com).
Project website: http://code.google.com/p/flac2all/
There are 4048 files, of which 4004 are convertable FLAC files
Traceback (most recent call last):
File "~/Downloads/flac2all_v3.38.py", line 758, in <module>
print "We are running %d simultaneous transcodes" % (opts['threads'])
TypeError: %d format: a number is required, not str
==========
I replaced "%d" by "%s" and it works now. But I am not a python person, so I
can't suggest a real fix.
Original issue reported on code.google.com by guido.ka...@gmail.com on 2 Feb 2014 at 7:28
The text was updated successfully, but these errors were encountered:
No, what you did is correct. While refactoring the code I moved that line above
the cast to int, resulting in the error.
Fix made, and pushed, and a note to myself to start some proper unit testing
before publishing.
Revision 41 has your fix.
Original comment by i...@ziva-vatra.com on 4 Feb 2014 at 9:40
Original issue reported on code.google.com by
guido.ka...@gmail.com
on 2 Feb 2014 at 7:28The text was updated successfully, but these errors were encountered: