Closed tarunshah closed 5 years ago
I'm getting the exact same error. Have you figured out how to solve it?
Hello there,
try the following workaround (relying heavily on CharushS' solution for the sphinxbase problem):
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>
then run python setup.py install
After that
git clone https://github.com/deanmalmgren/textract.git
cd textract
nano requirements/python
Comment out pocketsphinx==0.1.3
so the file looks like this:
# This file contains all python dependencies that are required by the textract
# package in order for it to properly work.
argcomplete==1.8.2
chardet==3.0.4
python-pptx==0.6.6
#pdfminer.six <-- go back to this after the shebang fix is released (see https://github.com/goulu/pdfminer/issues/27)
https://github.com/goulu/pdfminer/zipball/e6ad15af79a26c31f4e384d8427b375c93b03533#egg=pdfminer.six
docx2txt==0.6
beautifulsoup4==4.6.0
xlrd==1.0.0
EbookLib==0.16
SpeechRecognition==3.7.1
https://github.com/mattgwwalker/msg-extractor/zipball/master
six==1.10.0
#pocketsphinx==0.1.3
after that run: python setup.py install
I had already install swig using
conda install swig
also downloaded the EbookLib 0.15 zip from the releases unzip it,manually remove (with notepad++) the unicode char in the README.md file. (unicode char is on Line 44)navigate to unzipped EbookLib 0.15 folder
cd to_unzipped_folder_path_here
pip install it
then when installing textract i'm getting this error