mibrahim210 / voiceid

Automatically exported from code.google.com/p/voiceid
0 stars 0 forks source link

no such file or directory: '/dev/null' #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I think I have properly installed the setup.py on window 7.

After I have got every dependencies installed, and type "python setup.py 
install", I've got the following response:
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
running install_data
running install_egg_info
....
Writing C:/Python26/Lib/site-packages/voieid-0.1-py2.6.egg-info

However, when I try to use your example (located under using library..wiki 
page), error occurs..

Trackback 
from voiceid.sr import Voiceid
 File src\voiceid\__init__.py line 119, in module
output_redirect = open('/dev/'null','w')
IOError: [Errno 2] No such file or directory: '/dev/null'

Please help.

Original issue reported on code.google.com by idiscove...@gmail.com on 28 Jun 2012 at 9:05

GoogleCodeExporter commented 9 years ago
To be more specified, when I type the first and second sentences on python 
shell, the error message is,

IDLE 2.6      
>>> from voiceid.sr import Voiceid

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from voiceid.sr import Voiceid
  File "C:\Python26\Lib\site-packages\voiceid\__init__.py", line 119, in <module>
    output_redirect = open('/dev/null','w')
IOError: [Errno 2] No such file or directory: '/dev/null'

>>> from voiceid.db import GMMVoiceDB

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    from voiceid.db import GMMVoiceDB
  File "C:\Python26\Lib\site-packages\voiceid\__init__.py", line 119, in <module>
    output_redirect = open('/dev/null','w')
IOError: [Errno 2] No such file or directory: '/dev/null'

Original comment by idiscove...@gmail.com on 28 Jun 2012 at 9:09

GoogleCodeExporter commented 9 years ago
Hi, maybe we do not mention that, even if written in python, this project 
(still) does not works on Windows.
We do not made it platform independent, so it's full of explicit file paths for 
Linux (tested only on Ubuntu).
This because we use a java library that has problems on Windows.
By the way, the "/dev/null" in Windows is "NUL", if you want to try to 'port' 
some code you are welcome :-) .
If you haven't a dual boot system, at the moment we suggest to try Voiceid in a 
virtual machine running Ubuntu (we can also give you a "ready to go" one). 
However we plan to fix this issue in the future.

Original comment by maurome...@gmail.com on 2 Jul 2012 at 12:21

GoogleCodeExporter commented 9 years ago
Voiceid now works on windows.

Original comment by maurome...@gmail.com on 15 Feb 2014 at 4:26