Don't understand why I'm getting this error
Rob Gaddi
rgaddi at highlandtechnology.invalid
Thu Jul 14 14:06:17 EDT 2016
Carter Temm wrote:
> Hi all.
> I've been looking at this for a bit, and can't seem to come to a possible conclusion on what could be happening to get an error. Anyway, here is the code, then I'll explain.
>
> http://pastebin.com/raw/YPiTfWbG
>
> the issue comes when using argv. But when I change
>
> TIME = argv
>
> to
>
> TIME = 2
>
> It does exactly what I intended, no issues. What's wrong? Thanks for any help.
>
> Also, The error I get when trying to run is: Traceback (most recent call last): File "sound_recorder.py", line 21, in <module> for i in range(0, int(RATE / CHUNK * TIME)): OverflowError: range() result has too many items‬
>
Offhand, I'll bet that you're getting TIME="2" instead of TIME=2.
--
Rob Gaddi, Highland Technology -- www.highlandtechnology.com
Email address domain is currently out of order. See above to fix.
More information about the Python-list
mailing list