Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Trouble installing pocketsphinx-python in python3 #54

Open
TLHorse opened this issue Apr 28, 2020 · 1 comment
Open

Trouble installing pocketsphinx-python in python3 #54

TLHorse opened this issue Apr 28, 2020 · 1 comment

Comments

@TLHorse
Copy link

TLHorse commented Apr 28, 2020

My installation:

brew install pcre
brew install swig

then I followed #28:

git clone --recursive https://github.com/bambocher/pocketsphinx-python
cd pocketsphinx-python

Edit file pocketsphinx-python/deps/sphinxbase/src/libsphinxad/ad_openal.c
Change

#include <al.h>
#include <alc.h>

to

#include <OpenAL/al.h>
#include <OpenAL/alc.h>

and then:

python setup.py install

But running setup.py can only install the pocketsphinx file into python2 site-packages, but not python3. So, I can import pocketsphinx in python2, but I can't import it in python3.

If you force drag the sphinx file into python3 site-packages folder, it will generate an error during import.

I WANT POCKETSPHINX WORKING IN PYTHON3!

@TLHorse TLHorse changed the title Trouble installing pocket sphinx-python Trouble installing pocketsphinx-python in python3 Apr 28, 2020
@scienceLabwork
Copy link

Try
python3 setup.py install

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants