Not able to install textract using !pip install textract - python

I have been trying to install textract using command:
!pip install textract, but getting below errors:
Collecting textract
Requirement already satisfied: docx2txt==0.6 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (0.6)
Requirement already satisfied: argcomplete==1.8.2 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (1.8.2)
Collecting six==1.10.0 (from textract)
Using cached https://files.pythonhosted.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
Collecting EbookLib==0.15 (from textract)
Collecting pocketsphinx==0.1.3 (from textract)
Using cached https://files.pythonhosted.org/packages/93/5f/a968e5d53d25e32deb78c3e169fd8612ecf53cc76e32cb40e19be35696af/pocketsphinx-0.1.3.tar.bz2
Requirement already satisfied: beautifulsoup4==4.5.3 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (4.5.3)
Requirement already satisfied: SpeechRecognition==3.6.3 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (3.6.3)
Requirement already satisfied: chardet==2.3.0 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (2.3.0)
Requirement already satisfied: python-pptx==0.6.5 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (0.6.5)
Requirement already satisfied: xlrd==1.0.0 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (1.0.0)
Requirement already satisfied: lxml in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from EbookLib==0.15->textract) (4.3.2)
Requirement already satisfied: XlsxWriter>=0.5.7 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from python-pptx==0.6.5->textract) (1.1.5)
Requirement already satisfied: Pillow>=2.6.1 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from python-pptx==0.6.5->textract) (5.3.0)
Building wheels for collected packages: pocketsphinx
Building wheel for pocketsphinx (setup.py) ... error
Complete output from command /home/UGI/akedia/.conda/envs/at3deploy/bin/python -u -c "import setuptools, tokenize;__file__='/backup/mltmp/pip-install-k3hazve3/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /backup/mltmp/pip-wheel-7t5e7pu4 --python-tag cp36:
running bdist_wheel
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
Failed building wheel for pocketsphinx
Running setup.py clean for pocketsphinx
Failed to build pocketsphinx
spacy 2.0.12 has requirement regex==2017.4.5, but you'll have regex 2018.7.11 which is incompatible.
Installing collected packages: six, EbookLib, pocketsphinx, textract
Running setup.py install for pocketsphinx ... error
Complete output from command /home/UGI/akedia/.conda/envs/at3deploy/bin/python -u -c "import setuptools, tokenize;__file__='/backup/mltmp/pip-install-k3hazve3/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /backup/mltmp/pip-record-ws03agmf/install-record.txt --single-version-externally-managed --compile:
running install
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/home/UGI/akedia/.conda/envs/at3deploy/bin/python -u -c "import setuptools, tokenize;__file__='/backup/mltmp/pip-install-k3hazve3/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /backup/mltmp/pip-record-ws03agmf/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /backup/mltmp/pip-install-k3hazve3/pocketsphinx/

As mentioned here, you cannot directly install it as pip install tesseract you will need to execute the commands based on your os, now based on your directory architecture I am assuming that it is a Linux system, and since you used !pip I believe you are using Ipyhton notebook or jupyter shell to install this,
In which case you will need to run it in two parts, first run
!apt-get install python-dev libxml2-dev libxslt1-dev antiword unrtf poppler-utils pstotext tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig
And then run
!apt-get install libpulse-dev
!pip install textract
And you get, Apparently you also need libpulse-dev which is not mentioned in the official installation guide.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libpulse-mainloop-glib0
The following NEW packages will be installed:
libpulse-dev libpulse-mainloop-glib0
0 upgraded, 2 newly installed, 0 to remove and 10 not upgraded.
Need to get 104 kB of archives.
After this operation, 714 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-mainloop-glib0 amd64 1:11.1-1ubuntu7.2 [22.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-dev amd64 1:11.1-1ubuntu7.2 [81.5 kB]
Fetched 104 kB in 1s (192 kB/s)
Selecting previously unselected package libpulse-mainloop-glib0:amd64.
(Reading database ... 119263 files and directories currently installed.)
Preparing to unpack .../libpulse-mainloop-glib0_1%3a11.1-1ubuntu7.2_amd64.deb ...
Unpacking libpulse-mainloop-glib0:amd64 (1:11.1-1ubuntu7.2) ...
Selecting previously unselected package libpulse-dev:amd64.
Preparing to unpack .../libpulse-dev_1%3a11.1-1ubuntu7.2_amd64.deb ...
Unpacking libpulse-dev:amd64 (1:11.1-1ubuntu7.2) ...
Setting up libpulse-mainloop-glib0:amd64 (1:11.1-1ubuntu7.2) ...
Setting up libpulse-dev:amd64 (1:11.1-1ubuntu7.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Collecting textract
Requirement already satisfied: docx2txt==0.6 in /usr/local/lib/python3.6/dist-packages (from textract) (0.6)
Requirement already satisfied: argcomplete==1.8.2 in /usr/local/lib/python3.6/dist-packages (from textract) (1.8.2)
Requirement already satisfied: EbookLib==0.15 in /usr/local/lib/python3.6/dist-packages (from textract) (0.15)
Requirement already satisfied: python-pptx==0.6.5 in /usr/local/lib/python3.6/dist-packages (from textract) (0.6.5)
Requirement already satisfied: six==1.10.0 in /usr/local/lib/python3.6/dist-packages (from textract) (1.10.0)
Requirement already satisfied: beautifulsoup4==4.5.3 in /usr/local/lib/python3.6/dist-packages (from textract) (4.5.3)
Requirement already satisfied: chardet==2.3.0 in /usr/local/lib/python3.6/dist-packages (from textract) (2.3.0)
Requirement already satisfied: xlrd==1.0.0 in /usr/local/lib/python3.6/dist-packages (from textract) (1.0.0)
Collecting pocketsphinx==0.1.3 (from textract)
Using cached https://files.pythonhosted.org/packages/93/5f/a968e5d53d25e32deb78c3e169fd8612ecf53cc76e32cb40e19be35696af/pocketsphinx-0.1.3.tar.bz2
Requirement already satisfied: SpeechRecognition==3.6.3 in /usr/local/lib/python3.6/dist-packages (from textract) (3.6.3)
Requirement already satisfied: lxml in /usr/local/lib/python3.6/dist-packages (from EbookLib==0.15->textract) (4.2.6)
Requirement already satisfied: Pillow>=2.6.1 in /usr/local/lib/python3.6/dist-packages (from python-pptx==0.6.5->textract) (4.1.1)
Requirement already satisfied: XlsxWriter>=0.5.7 in /usr/local/lib/python3.6/dist-packages (from python-pptx==0.6.5->textract) (1.1.5)
Requirement already satisfied: olefile in /usr/local/lib/python3.6/dist-packages (from Pillow>=2.6.1->python-pptx==0.6.5->textract) (0.46)
Building wheels for collected packages: pocketsphinx
Building wheel for pocketsphinx (setup.py) ... done
Stored in directory: /root/.cache/pip/wheels/38/80/4f/ddc3e8c2b788f2c7f1d625ae870f6bafd3038ff04a3445a2f8
Successfully built pocketsphinx
Installing collected packages: pocketsphinx, textract
Successfully installed pocketsphinx-0.1.3 textract-1.6.1

Related

How do I when pip install dtwalign

pip install dtwalign
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Collecting dtwalign
Collecting numba>=0.34.0 (from dtwalign)
Requirement already satisfied: scipy in c:\anaconda3\lib\site-packages (from dtwalign) (0.16.0)
Requirement already satisfied: seaborn>=0.8.1 in c:\anaconda3\lib\site-packages (from dtwalign) (0.9.1)
Requirement already satisfied: numpy in c:\anaconda3\lib\site-packages (from dtwalign) (1.16.6)
Requirement already satisfied: networkx in c:\anaconda3\lib\site-packages (from dtwalign) (1.9.1)
Requirement already satisfied: matplotlib in c:\anaconda3\lib\site-packages (from dtwalign) (1.4.3)
Requirement already satisfied: enum34 in c:\anaconda3\lib\site-packages (from numba>=0.34.0->dtwalign) (1.1.10)
Requirement already satisfied: setuptools in c:\anaconda3\lib\site-packages\setuptools-27.2.0-py3.4.egg (from numba>=0.34.0->dtwalign) (27.2.0)
Collecting llvmlite>=0.31.0dev0 (from numba>=0.34.0->dtwalign)
Using cached https://files.pythonhosted.org/packages/50/cc/04526507e80d546be5688ce0246e40277b61e7949c3347c6609b6a4154cf/llvmlite-0.32.1.tar.gz
Requirement already satisfied: singledispatch in c:\anaconda3\lib\site-packages (from numba>=0.34.0->dtwalign) (3.6.2)
Requirement already satisfied: funcsigs in c:\anaconda3\lib\site-packages (from numba>=0.34.0->dtwalign) (1.0.2)
Requirement already satisfied: pandas>=0.17.1 in c:\anaconda3\lib\site-packages (from seaborn>=0.8.1->dtwalign) (0.18.1)
Requirement already satisfied: six in c:\anaconda3\lib\site-packages (from singledispatch->numba>=0.34.0->dtwalign) (1.10.0)
Requirement already satisfied: python-dateutil>=2 in c:\anaconda3\lib\site-packages (from pandas>=0.17.1->seaborn>=0.8.1->dtwalign) (2.4.2)
Requirement already satisfied: pytz>=2011k in c:\anaconda3\lib\site-packages (from pandas>=0.17.1->seaborn>=0.8.1->dtwalign) (2015.4)
Building wheels for collected packages: llvmlite
Building wheel for llvmlite (setup.py) ... error
ERROR: Complete output from command 'c:\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\\\AppData\\Local\\Temp\\pip-install-ufd5rb5f\\llvmlite\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\\AppData\Local\Temp\pip-wheel-11jhoxwj' --python-tag cp34:
ERROR: running bdist_wheel
c:\anaconda3\python.exe C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py
Trying generator 'Visual Studio 14 2015 Win64'
Traceback (most recent call last):
File "C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py", line 192, in <module>
main()
File "C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py", line 180, in main
main_win32()
File "C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py", line 89, in main_win32
generator = find_win32_generator()
File "C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py", line 77, in find_win32_generator
try_cmake(cmake_dir, build_dir, generator)
File "C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py", line 28, in try_cmake
subprocess.check_call(['cmake', '-G', generator, cmake_dir])
File "c:\anaconda3\lib\subprocess.py", line 556, in check_call
retcode = call(*popenargs, **kwargs)
File "c:\anaconda3\lib\subprocess.py", line 537, in call
with Popen(*popenargs, **kwargs) as p:
File "c:\anaconda3\lib\subprocess.py", line 859, in __init__
restore_signals, start_new_session)
File "c:\anaconda3\lib\subprocess.py", line 1112, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Не удается найти указанный файл
error: command 'c:\\anaconda3\\python.exe' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: llvmlite, numba, dtwalign
Found existing installation: llvmlite 0.20.0
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
``
Make sure you first install pandas library.
https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html
You can then install dtwalign python with following command(administrator):
pip install dtwalign
Errors should then be solved.

how to fix ERROR: Command errored out with exit status 1: when trying to install pyp2p on windows

when running the command:
pip install pyp2p
I receive to following error:
Collecting pyp2p
Using cached pyp2p-0.8.2-py2.py3-none-any.whl (66 kB)
Collecting pyroute2>=0.3.15
Using cached pyroute2-0.5.14.tar.gz (873 kB)
Collecting ntplib>=0.3.3
Using cached ntplib-0.3.4-py3-none-any.whl (5.9 kB)
Collecting ipaddress>=1.0.14
Using cached ipaddress-1.0.23-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: requests>=2.8.1 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from pyp2p) (2.24.0)
Collecting netifaces>=0.10.4
Using cached netifaces-0.10.9.tar.gz (28 kB)
Collecting twisted>=15.4.0
Using cached Twisted-20.3.0.tar.bz2 (3.1 MB)
Requirement already satisfied: win_inet_pton in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from pyroute2>=0.3.15->pyp2p) (1.1.0)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.8.1->pyp2p) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.8.1->pyp2p) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.8.1->pyp2p) (1.25.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.8.1->pyp2p) (2020.6.20)
Requirement already satisfied: zope.interface>=4.4.2 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (5.2.0)
Requirement already satisfied: constantly>=15.1 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (15.1.0)
Requirement already satisfied: incremental>=16.10.1 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (17.5.0)
Requirement already satisfied: Automat>=0.3.0 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (20.2.0)
Requirement already satisfied: hyperlink>=17.1.1 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (21.0.0)
Requirement already satisfied: PyHamcrest!=1.10.0,>=1.9.0 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (2.0.2)
Requirement already satisfied: attrs>=19.2.0 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (20.3.0)
Requirement already satisfied: six in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from Automat>=0.3.0->twisted>=15.4.0->pyp2p) (1.15.0)
Requirement already satisfied: setuptools in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from zope.interface>=4.4.2->twisted>=15.4.0->pyp2p) (53.0.0)
Using legacy 'setup.py install' for netifaces, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pyroute2, since package 'wheel' is not installed.
Using legacy 'setup.py install' for twisted, since package 'wheel' is not installed.
Installing collected packages: twisted, pyroute2, ntplib, netifaces, ipaddress, pyp2p
Running setup.py install for twisted ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\woutv\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\woutv\\AppData\\Local\\Temp\\pip-install-5hfmjmxi\\twisted_4f16cdfbaea243e282e7aa8a376189e6\\setup.py'"'"'; __file__='"'"'C:\\Users\\woutv\\AppData\\Local\\Temp\\pip-install-5hfmjmxi\\twisted_4f16cdfbaea243e282e7aa8a376189e6\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\woutv\AppData\Local\Temp\pip-record-y_l6uo1b\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\woutv\appdata\local\programs\python\python38-32\Include\twisted'
cwd: C:\Users\woutv\AppData\Local\Temp\pip-install-5hfmjmxi\twisted_4f16cdfbaea243e282e7aa8a376189e6\
Complete output (955 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\twisted
than there are A LOT of lines that look almost identical to this : copying src\twisted\conch\unix.py -> build\lib.win32-3.8\twisted\conch
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -Ic:\users\woutv\appdata\local\programs\python\python38-32\include -Ic:\users\woutv\appdata\local\programs\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include" /Tcsrc/twisted/test/raiser.c /Fobuild\temp.win32-3.8\Release\src/twisted/test/raiser.obj
raiser.c
c:\users\woutv\appdata\local\programs\python\python38-32\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\woutv\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\woutv\\AppData\\Local\\Temp\\pip-install-5hfmjmxi\\twisted_4f16cdfbaea243e282e7aa8a376189e6\\setup.py'"'"'; __file__='"'"'C:\\Users\\woutv\\AppData\\Local\\Temp\\pip-install-5hfmjmxi\\twisted_4f16cdfbaea243e282e7aa8a376189e6\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\woutv\AppData\Local\Temp\pip-record-y_l6uo1b\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\woutv\appdata\local\programs\python\python38-32\Include\twisted' Check the logs for full command output.
Anyone know how to fix this?
I dont know if this is enough information so dont hesitate to ask for more info.

Can't install resampy

Ubuntu 20.04.2
I am using python2.7 in a virtualenv (because the program I'm trying to build doesn't work with my 3.8)
pip 20.3.4
The program I'm trying to run (involves tensorflow) comes with a file with all the things needed to install (I think that's a dockerfile?). When I try to run the program I get an error about one of the items in the dockerfile -- resampy.
I get an ImportError:No module resampy
I did a pip install resampy
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Processing /home/pete/.cache/pip/wheels/19/90/bb/f45e7cc1cfc8f5299c12511fccefcca90c801de995a4e7eb00/resampy-0.2.2-py2-none-any.whl
Collecting numba>=0.32
Using cached numba-0.47.0-cp27-cp27mu-manylinux1_x86_64.whl (3.6 MB)
Requirement already satisfied: numpy>=1.10 in /home/pete/env/py2.7/lib/python2.7/site-packages (from resampy) (1.13.1)
Requirement already satisfied: scipy>=0.13 in /home/pete/env/py2.7/lib/python2.7/site-packages (from resampy) (0.19.1)
Requirement already satisfied: six>=1.3 in /home/pete/env/py2.7/lib/python2.7/site-packages (from resampy) (1.11.0)
Requirement already satisfied: singledispatch; python_version < "3.4" in /home/pete/env/py2.7/lib/python2.7/site-packages (from numba>=0.32->resampy) (3.4.0.3)
Collecting llvmlite>=0.31.0dev0
Using cached llvmlite-0.32.1.tar.gz (104 kB)
Requirement already satisfied: setuptools in /home/pete/env/py2.7/lib/python2.7/site-packages (from numba>=0.32->resampy) (44.1.1)
Requirement already satisfied: funcsigs; python_version < "3.3" in /home/pete/env/py2.7/lib/python2.7/site-packages (from numba>=0.32->resampy) (1.0.2)
Requirement already satisfied: enum34; python_version < "3.4" in /home/pete/env/py2.7/lib/python2.7/site-packages (from numba>=0.32->resampy) (1.1.10)
Building wheels for collected packages: llvmlite
Building wheel for llvmlite (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/pete/env/py2.7/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-UP2Yh4/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-UP2Yh4/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ZIPpvD
cwd: /tmp/pip-install-UP2Yh4/llvmlite/
Complete output (7 lines):
running bdist_wheel
/home/pete/env/py2.7/bin/python /tmp/pip-install-UP2Yh4/llvmlite/ffi/build.py
File "/tmp/pip-install-UP2Yh4/llvmlite/ffi/build.py", line 122
raise ValueError(msg.format(_ver_check_skip)) from e
^
SyntaxError: invalid syntax
error: command '/home/pete/env/py2.7/bin/python' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: llvmlite, numba, resampy
Running setup.py install for llvmlite ... error
ERROR: Command errored out with exit status 1:
command: /home/pete/env/py2.7/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-UP2Yh4/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-UP2Yh4/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-j9jtLs/install-record.txt --single-version-externally-managed --compile --install-headers /home/pete/env/py2.7/include/site/python2.7/llvmlite
cwd: /tmp/pip-install-UP2Yh4/llvmlite/
Complete output (10 lines):
running install
running build
got version from file /tmp/pip-install-UP2Yh4/llvmlite/llvmlite/_version.py {'version': '0.32.1', 'full': 'aa11b129c0b55973067422397821ae6d44fa5e70'}
running build_ext
/home/pete/env/py2.7/bin/python /tmp/pip-install-UP2Yh4/llvmlite/ffi/build.py
File "/tmp/pip-install-UP2Yh4/llvmlite/ffi/build.py", line 122
raise ValueError(msg.format(_ver_check_skip)) from e
^
SyntaxError: invalid syntax
error: command '/home/pete/env/py2.7/bin/python' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/pete/env/py2.7/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-UP2Yh4/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-UP2Yh4/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-j9jtLs/install-record.txt --single-version-externally-managed --compile --install-headers /home/pete/env/py2.7/include/site/python2.7/llvmlite Check the logs for full command output.
I tried a pip3 install resampy and the result looks better:
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: resampy in /usr/local/lib/python3.8/dist-packages (0.2.2)
Requirement already satisfied: numba>=0.32 in /usr/local/lib/python3.8/dist-packages (from resampy) (0.52.0)
Requirement already satisfied: scipy>=0.13 in /usr/local/lib/python3.8/dist-packages (from resampy) (1.6.0)
Requirement already satisfied: numpy>=1.10 in /home/pete/.local/lib/python3.8/site-packages (from resampy) (1.19.4)
Requirement already satisfied: six>=1.3 in /usr/lib/python3/dist-packages (from resampy) (1.14.0)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from numba>=0.32->resampy) (45.2.0)
Requirement already satisfied: llvmlite<0.36,>=0.35.0 in /usr/local/lib/python3.8/dist-packages (from numba>=0.32->resampy) (0.35.0)
WARNING: You are using pip version 20.3.3; however, version 21.0.1 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
No error. But when I try and run the program I'm trying to run I still get the original ImportError
I admit that I'm in over my head here. I basically only have a moderate level of python knowledge/experience. I don't even know what a "wheel" is and I can't find anything in it because "wheel" is kind of hard to google without finding stuff about tires and such. So even just pointers to learn about what a "wheel" is would be helpful.
Thanks!
Maybe try out this one
pip install llvmlite==0.31.0
pip install resampy
In my case, the current llvmlite package version crashed it. But this package is needed for resampy.
You could also try an earlier version of resampy, which is independent of llvmlite.
pip install resampy==0.1.5
Good Luck
I tried py27 installation failed too before.
But you can install it using py38 via
pip install resampy
You can test it by
pip install -e .[tests]
pip install pytest pytest-cov pytest-faulthandler
py.test --cov-report term-missing --cov resampy
The result:
As for the ImportError, once you successfully installed it, it works well for me:

Installing MeshPy in Colab

I have tried to install MeshPy in Colab using !pip install MeshPy but I got the following output and the package has not been installed. I would appreciate any suggestion.
Here is the complete output
Collecting MeshPy
Downloading
https://files.pythonhosted.org/packages/90/03/3bb205ac46141074aeb561f5bbf60fb2214380aa6ac1435b49d275cf219a/MeshPy-2018.2.1.tar.gz (472kB)
100% |████████████████████████████████| 481kB 25.8MB/s
Collecting pytools>=2011.2 (from MeshPy)
Downloading
https://files.pythonhosted.org/packages/ac/a3/f54f7190315ad41b7334d8733350e7fcefded8f25e0b45e2329b80279921/pytools-2019.1.tar.gz (57kB)
100% |████████████████████████████████| 61kB 22.3MB/s
Requirement already satisfied: pytest>=2 in /usr/local/lib/python3.6/dist-packages (from MeshPy) (3.10.1)
Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from MeshPy) (1.14.6)
Collecting gmsh_interop (from MeshPy)
Downloading
https://files.pythonhosted.org/packages/a5/8c/62c40850d8e8a2c9c3d223c9b9456ed4431f02b0c45e16cc90bf0025fffe/gmsh_interop-2019.1.tar.gz
Requirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from MeshPy) (1.11.0)
Requirement already satisfied: decorator>=3.2.0 in /usr/local/lib/python3.6/dist-packages (from pytools>=2011.2->MeshPy) (4.3.2)
Collecting appdirs>=1.4.0 (from pytools>=2011.2->MeshPy)
Downloading
https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Requirement already satisfied: atomicwrites>=1.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (1.3.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (40.8.0)
Requirement already satisfied: py>=1.5.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (1.8.0)
Requirement already satisfied: pluggy>=0.7 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (0.9.0)
Requirement already satisfied: attrs>=17.4.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (18.2.0)
Requirement already satisfied: more-itertools>=4.0.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (6.0.0)
Building wheels for collected packages: MeshPy, pytools, gmsh-interop
Building wheel for MeshPy (setup.py) ... error
Failed building wheel for MeshPy
Running setup.py clean for MeshPy
Building wheel for pytools (setup.py) ... done
Stored in directory: /root/.cache/pip/wheels/1b/f4/26/46b6cf949b3cccefcc41e6b526f7c16351a4a5c124fc6f6eaa
Building wheel for gmsh-interop (setup.py) ... done
Stored in directory: /root/.cache/pip/wheels/be/19/0b/76011e06f64c41e0dcfed58e171c091c31f2b499a981d8d773
Successfully built pytools gmsh-interop
Failed to build MeshPy
Installing collected packages: appdirs, pytools, gmsh-interop, MeshPy
Running setup.py install for MeshPy ... error
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-matqpp2p/MeshPy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-8_339liz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-matqpp2p/MeshPy/
Not enough information in your error. To see the exact cause we need longer traceback.
Let's me guess. I tried to install MeshPy myself with pip install MeshPy and got an error about absent of pybind11. So I ran
pip install pybind11
pip install MeshPy
and MeshPy was successfully installed.

In installing orange imageanalytics

In installing ImageAnalytics in orange3 software i am getting these error,
Collecting Orange3-ImageAnalytics
Downloading Orange3-ImageAnalytics-0.1.13.tar.gz (2.3MB)
Requirement already satisfied: Orange3>=3.3.5 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3-ImageAnalytics)
Collecting Pillow>=4.2.1 (from Orange3-ImageAnalytics)
Downloading Pillow-5.0.0-cp36-cp36m-win_amd64.whl (1.6MB)
Collecting cachecontrol (from Orange3-ImageAnalytics)
Downloading CacheControl-0.12.3.tar.gz
Collecting hyper>=0.7.0 (from Orange3-ImageAnalytics)
Downloading hyper-0.7.0-py2.py3-none-any.whl (269kB)
Collecting lap==0.3.0 (from Orange3-ImageAnalytics)
Downloading lap-0.3.0.tar.gz (1.5MB)
Collecting lockfile (from Orange3-ImageAnalytics)
Downloading lockfile-0.12.2-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.10.0 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3-ImageAnalytics)
Requirement already satisfied: requests in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3-ImageAnalytics)
Requirement already satisfied: keyrings.alt in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: dill in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: joblib>=0.9.4 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: setuptools>=36.3 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: pip>=9.0 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: CommonMark>=0.5.5 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: bottleneck>=1.0.0 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: scipy>=0.16.1 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: serverfiles in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: pyqtgraph>=0.10.0 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: scikit-learn>=0.18.1 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: AnyQt>=0.0.8 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: xlrd>=0.9.2 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: keyring in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: docutils in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: chardet>=3.0.2 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Collecting msgpack-python (from cachecontrol->Orange3-ImageAnalytics)
Downloading msgpack-python-0.4.8.tar.gz (113kB)
Collecting h2<3.0,>=2.4 (from hyper>=0.7.0->Orange3-ImageAnalytics)
Downloading h2-2.6.2-py2.py3-none-any.whl (71kB)
Collecting hyperframe<4.0,>=3.2 (from hyper>=0.7.0->Orange3-ImageAnalytics)
Downloading hyperframe-3.2.0-py2.py3-none-any.whl
Requirement already satisfied: idna<2.7,>=2.5 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from requests->Orange3-ImageAnalytics)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from requests->Orange3-ImageAnalytics)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from requests->Orange3-ImageAnalytics)
Requirement already satisfied: six in c:\users\certainty2\appdata\local\orange\lib\site-packages (from keyrings.alt->Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: pyreadline>=1.7.1 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from dill->Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: future in c:\users\certainty2\appdata\local\orange\lib\site-packages (from CommonMark>=0.5.5->Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: pywin32 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from keyring->Orange3>=3.3.5->Orange3-ImageAnalytics)
Collecting hpack<4,>=2.2 (from h2<3.0,>=2.4->hyper>=0.7.0->Orange3-ImageAnalytics)
Downloading hpack-3.0.0-py2.py3-none-any.whl
Building wheels for collected packages: Orange3-ImageAnalytics, cachecontrol, lap, msgpack-python
Running setup.py bdist_wheel for Orange3-ImageAnalytics: started
Running setup.py bdist_wheel for Orange3-ImageAnalytics: finished with status 'done'
Running setup.py clean for Orange3-ImageAnalytics
Running setup.py bdist_wheel for cachecontrol: started
Running setup.py bdist_wheel for cachecontrol: finished with status 'done'
Stored in directory: C:\Users\Certainty2\AppData\Local\pip\Cache\wheels\2b\fd\77\677be47e3d4f83d2e8d07299f61697aa508e6f8b5d08d94050
Running setup.py bdist_wheel for lap: started
Running setup.py bdist_wheel for lap: finished with status 'error'
Complete output from command C:\Users\Certainty2\AppData\Local\Orange\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\CERTAI~1\\AppData\\Local\\Temp\\pip-build-n42rgcz0\\lap\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\CERTAI~1\AppData\Local\Temp\tmpr3xg7jbjpip-wheel- --python-tag cp36:
Partial import of lap during the build process.
Generating cython files
running bdist_wheel
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "lap._lapjv" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\lap
copying lap\lapmod.py -> build\lib.win-amd64-3.6\lap
copying lap\__init__.py -> build\lib.win-amd64-3.6\lap
running build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using build_ext
building 'lap._lapjv' extension
compiling C sources
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Failed building wheel for lap
Running setup.py clean for lap
Running setup.py bdist_wheel for msgpack-python: started
Running setup.py bdist_wheel for msgpack-python: finished with status 'done'
Stored in directory: C:\Users\Certainty2\AppData\Local\pip\Cache\wheels\2c\e7\e7\9031652a69d594665c5ca25e41d0fb3faa024e730b590e4402
Successfully built cachecontrol msgpack-python
Failed to build Orange3-ImageAnalytics lap
Installing collected packages: Pillow, msgpack-python, cachecontrol, hyperframe, hpack, h2, hyper, lap, lockfile, Orange3-ImageAnalytics
Running setup.py install for lap: started
Running setup.py install for lap: finished with status 'error'
Complete output from command C:\Users\Certainty2\AppData\Local\Orange\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\CERTAI~1\\AppData\\Local\\Temp\\pip-build-n42rgcz0\\lap\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\CERTAI~1\AppData\Local\Temp\pip-bn2gvmhk-record\install-record.txt --single-version-externally-managed --compile:
Partial import of lap during the build process.
Generating cython files
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "lap._lapjv" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\lap
copying lap\lapmod.py -> build\lib.win-amd64-3.6\lap
copying lap\__init__.py -> build\lib.win-amd64-3.6\lap
running build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using build_ext
building 'lap._lapjv' extension
compiling C sources
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command "C:\Users\Certainty2\AppData\Local\Orange\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\CERTAI~1\\AppData\\Local\\Temp\\pip-build-n42rgcz0\\lap\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\CERTAI~1\AppData\Local\Temp\pip-bn2gvmhk-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\CERTAI~1\AppData\Local\Temp\pip-build-n42rgcz0\lap\
I already have Microsoft Visual C++ Build Tools . but same error happens . and i had already tried previous these solutions but nothing worked ,
https://github.com/biolab/orange3-imageanalytics/pull/82
https://github.com/biolab/orange3-imageanalytics/issues/80
you just need to install microsoft build tools with latest versions say 2015 and 2017 . Then if problem remains same then you can go towards fix i had given here FixOrangeImageAnalysis .
and you must download zip file i had shared there . and put all into your Orange/Lib/site-packages folder .
All files whose names startes with any of following must be replaced
h
cache
lap
lock
msg
pill
orange
pillow
image
imageanalytics.pth
I guess FixOrangeImageAnalysis should solve your issue

Categories