casebeer / audiogen

Python generator based audio tools.
BSD 2-Clause "Simplified" License
32 stars 16 forks source link

SyntaxError: invalid syntax #8

Open youtah opened 4 years ago

youtah commented 4 years ago

Running Python 3.6.9

The following script:

#!/usr/bin/env python3
import audiogen
audiogen.sampler.play(audiogen.tone(440))

Generates the error:

jeff@machine:~$ ./test_audio.py 
Traceback (most recent call last):
  File "./test_audio.py", line 3, in <module>
    import audiogen
  File "/home/jeff/.local/lib/python3.6/site-packages/audiogen/__init__.py", line 2, in <module>
    from .sampler import frame_rate
  File "/home/jeff/.local/lib/python3.6/site-packages/audiogen/sampler.py", line 64
    except IOError, e:
                  ^
SyntaxError: invalid syntax

https://github.com/casebeer/audiogen/blob/184dee2ca32c2bb4315a0f18e62288728fcd7881/audiogen/sampler.py#L64

lysol commented 4 years ago

This is an old, seemingly unmaintained project that hasn't been rewritten for Python 3 support.

superpaddy98 commented 3 years ago

The error is within the library. Just "import audiogen" produces that error.