conspeech icon indicating copy to clipboard operation
conspeech copied to clipboard

OSError in Mac OS X 10.11

Open fauria opened this issue 10 years ago • 4 comments

Running:

git clone https://github.com/valentin012/conspeech.git
cd conspeech
sudo pip install nltk sklearn
python demo.py RY 0.25

Throws:

[constructing dataset...]
Traceback (most recent call last):
  File "demo.py", line 37, in <module>
    (dataset,vocab) = construct_dataset([TRAIN_DIR,TEST_DIR,DEV_DIR])
  File "/Users/fauria/github/conspeech/con_util.py", line 48, in construct_dataset
    for f in sorted(os.listdir(p)): 
OSError: [Errno 2] No such file or directory: 'convote_v1.1\\data_stage_three/training_set'

Some files seems to be missing:

ls -R convote_v1.1/
readme.txt

fauria avatar Jan 27 '16 18:01 fauria

Same issue here:

OSError: [Errno 2] No such file or directory: 'convote_v1.1\data_stage_three/training_set'

jtbarker avatar Jan 27 '16 19:01 jtbarker

OSError: [Errno 2] No such file or directory: 'convote_v1.1\data_stage_three/training_set' My mac version is 10.9.2

karthikjoshi avatar Jan 27 '16 19:01 karthikjoshi

PR #5 solves this problem. You can try using the PR author's fork or applying the patch yourself if you're into that sort of thing.

qguv avatar Jan 27 '16 20:01 qguv

In OSX you can also fix this by inserting the following in con_util.py just above the line with the error:

        if os.name is 'posix': p = p.replace('\\','/')

https://gist.github.com/wankbank/e81fe248e0aa728cf271#file-con_util-py-L48

wankbank avatar Jan 28 '16 18:01 wankbank