Skip to content

Python 3 support needed #9

@Nick-Harvey

Description

@Nick-Harvey

Any chance support for python3 is in the works? When I try to install I get the following:

sudo python3 setup.py install
Password:
running install
running build
running build_py
running install_lib
byte-compiling /usr/local/lib/python3.6/site-packages/bregman/audiodb.py to audiodb.cpython-36.pyc
  File "/usr/local/lib/python3.6/site-packages/bregman/audiodb.py", line 47
    print "IOError: Cannot open %s for reading." %(fname)
                                               ^
SyntaxError: invalid syntax

byte-compiling /usr/local/lib/python3.6/site-packages/bregman/classifier.py to classifier.cpython-36.pyc
  File "/usr/local/lib/python3.6/site-packages/bregman/classifier.py", line 180
    print "sse = ", sse
                 ^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/local/lib/python3.6/site-packages/bregman/error.py to error.cpython-36.pyc
  File "/usr/local/lib/python3.6/site-packages/bregman/error.py", line 12
    print "Bregman error:", msg
                         ^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/local/lib/python3.6/site-packages/bregman/features.py to features.cpython-36.pyc
  File "/usr/local/lib/python3.6/site-packages/bregman/features.py", line 419
    print num_frames, num_hop
                   ^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/local/lib/python3.6/site-packages/bregman/features_base.py to features_base.cpython-36.pyc
  File "/usr/local/lib/python3.6/site-packages/bregman/features_base.py", line 240
    print "Error: must extract STFT first"
                                         ^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/local/lib/python3.6/site-packages/bregman/features_mmap.py to features_mmap.cpython-36.pyc
  File "/usr/local/lib/python3.6/site-packages/bregman/features_mmap.py", line 22
    print fp[m:m+mem_rows,:]
           ^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/local/lib/python3.6/site-packages/bregman/segment.py to segment.cpython-36.pyc
  File "/usr/local/lib/python3.6/site-packages/bregman/segment.py", line 149
    print self.segmentation[seg]
             ^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/local/lib/python3.6/site-packages/bregman/sound.py to sound.cpython-36.pyc
  File "/usr/local/lib/python3.6/site-packages/bregman/sound.py", line 49
    print 'sample_rate=%i' %self.sample_rate
                         ^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/local/lib/python3.6/site-packages/bregman/testsignal.py to testsignal.cpython-36.pyc
  File "/usr/local/lib/python3.6/site-packages/bregman/testsignal.py", line 29
    print "TestSignal: " + msg
                       ^
SyntaxError: Missing parentheses in call to 'print'

running install_data
running install_egg_info
Removing /usr/local/lib/python3.6/site-packages/Bregman-0.11_11.14-py3.6.egg-info
Writing /usr/local/lib/python3.6/site-packages/Bregman-0.11_11.14-py3.6.egg-info

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions