ppwwyyxx / speaker-recognition

A Speaker Recognition System
Apache License 2.0
675 stars 276 forks source link

cannot run noisered.py #7

Closed Victorl2000 closed 8 years ago

Victorl2000 commented 8 years ago

Hi , i am new with python. I tried to run filters/noisered.py in command line, but got error: File "", line 1, in File "utils.py", line 1 ../gui/utils.py ^ SyntaxError: invalid syntax

I think I can use sys.path.insert(0, "../gui/") to resolve this problem. But i wonder why the original way of setting dos not work. In this directory, the file utils.py just have one line: ../gui/utils.py, how does this work? I am using python 2.7.6

Thanks, Vic

ppwwyyxx commented 8 years ago

utils.py is a symlink. But you're using windows which doesn't support symlink.

Victorl2000 commented 8 years ago

i am running on Linux box.

ppwwyyxx commented 8 years ago

Then either you have copied the files to/from windows, or you're putting the files on a file system which doesn't support symlink, e.g. NTFS which is used by windows.

Victorl2000 commented 8 years ago

many thanks! Right, i copied the original one from somewhere. Now I checked out the cloned one from the GitHub, and now noisered.py works fine for me.