Anywhere I can get webrtcvad pre-compiled for python? - python

I am trying to do some audio work in python, on my work computer. Getting IT approval to install anything is a laborious process, so I'm looking for a work around.
Anyways, the long 'n short of it is that when I run pip install webrtcvad, it fails, and tells me I need visual C++ 14. I have 2015, but apparently I need that specific version.
Is there anywhere I can download that package pre-built/compiled? I've been looking for the wheel file, but only found linux ones (I think, does that even matter? I'm on windows 10):
https://www.piwheels.hostedpi.com/simple/webrtcvad/
And I don't really know where to put one if it works, in any case. Traceback included for no real reason, just because I felt I should.
----------------------------------------
Failed building wheel for webrtcvad
Running setup.py clean for webrtcvad
Failed to build webrtcvad
Installing collected packages: webrtcvad
Running setup.py install for webrtcvad ... error
Complete output from command C:\Users\ylwaller\AppData\Local\Continuum\anaconda2\envs\sg2\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ylwaller\\AppData\\Local\\Temp\\pip-install-wx00j30u\\webrtcvad\\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\ylwaller\AppData\Local\Temp\pip-record-0f_keevu\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
copying webrtcvad.py -> build\lib.win-amd64-3.6
running build_ext
building '_webrtcvad' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

I found this (Works for Windows):
pip install https://github.com/respeaker/respeaker_python_library/releases/download/v0.4.1/webrtcvad-2.0.9.dev0-cp27-cp27m-win32.whl
From: https://github.com/respeaker/respeaker_python_library
Hope its of any help.

I had similar issue when installing the requirements.txt file in Pycharm IDE as part of a project. It was actually the issue with C++ compiler in my PC with windows 10. You can get the required build package from link https://visualstudio.microsoft.com/visual-cpp-build-tools/
Select only the C++ build package and perform installation. This is a 1.7Gb file and takes some time to install. Once installed, it will prompt to restart your system and the installation will work fine for 'webrtcvad'

Related

pipenv and rpy2 - Error: Tried to guess R's HOME but no command 'R' in the PATH

I'm trying to use pipenv on a data analysis project and have a need to use the Twitter Anomaly Detection package which is in R.
I'm getting an error trying to pipenv install rpy2
Below is my code creating a pipenv folder and trying to install rpy2 into it.
PS C:\Users\amaguire\Documents\LocalWork\rp2_pipenv_example> pipenv --python 3.7
Creating a virtualenv for this project…
Pipfile: C:\Users\amaguire\Documents\LocalWork\rp2_pipenv_example\Pipfile
Using C:/Users/amaguire/AppData/Local/Continuum/anaconda3/python.exe (3.7.0) to create virtualenv…
Running virtualenv with interpreter C:/Users/amaguire/AppData/Local/Continuum/anaconda3/python.exe
Using base prefix 'C:\\Users\\amaguire\\AppData\\Local\\Continuum\\anaconda3'
New python executable in C:\Users\amaguire\.virtualenvs\rp2_pipenv_example-MDtFv_K4\Scripts\python.exe
Installing setuptools, pip, wheel...
done.
Virtualenv location: C:\Users\amaguire\.virtualenvs\rp2_pipenv_example-MDtFv_K4
Creating a Pipfile for this project…
PS C:\Users\amaguire\Documents\LocalWork\rp2_pipenv_example> pipenv install rpy2
Installing rpy2…
Collecting rpy2
Using cached https://files.pythonhosted.org/packages/f1/98/c7652cc9d7fc0afce74d2c30a52b9c9ac391713a63d037e4ab8feb56c530/rpy2-2.9.4.tar.gz
Complete output from command python setup.py egg_info:
Error: Tried to guess R's HOME but no command 'R' in the PATH.
----------------------------------------
Error: An error occurred while installing rpy2!
Command "python setup.py egg_info" failed with error code 1 in C:\Users\amaguire\AppData\Local\Temp\pip-install-8h23my82\rpy2\
This is likely caused by a bug in rpy2. Report this to its maintainers.
PS C:\Users\amaguire\Documents\LocalWork\rp2_pipenv_example>
I had a look but could not find much by way of examples of people using rpy2 in a virtualenv or with pipenv.
Am curious as to if anytihng i can do to make rpy2 in the virtualenv know where R lives (if that is whats going on).
Any advice much appreciated, i'd imagine could be useful for others too to try solve this one.
Update
I have added R to my Path variables in windows and am now getting a new error as below. So am hopeful this should solve it once i download Visual C++
...
copying .\rpy\ipython\html.py -> build\lib.win-amd64-3.7\rpy2\ipython
copying .\rpy\ipython\rmagic.py -> build\lib.win-amd64-3.7\rpy2\ipython
copying .\rpy\ipython\__init__.py -> build\lib.win-amd64-3.7\rpy2\ipython
creating build\lib.win-amd64-3.7\rpy2\ipython\tests
copying .\rpy\ipython\tests\test_rmagic.py -> build\lib.win-amd64-3.7\rpy2\ipython\tests
copying .\rpy\ipython\tests\__init__.py -> build\lib.win-amd64-3.7\rpy2\ipython\tests
warning: build_py: byte-compiling is disabled, skipping.
running build_clib
building 'r_utils' library
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Error: An error occurred while installing rpy2==2.9.4!
Failed building wheel for rpy2
Command "c:\users\amaguire\.virtualenvs\ami-swtbbbw7\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\amaguire\\AppData\\Local\\Temp\\pip-install-kmzhepx1\\rpy2\\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\amaguire\AppData\Local\Temp\pip-record-zgsh7n25\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\amaguire\.virtualenvs\ami-swtbbbw7\include\site\python3.7\rpy2" failed with error code 1 in C:\Users\amaguire\AppData\Local\Temp\pip-install-kmzhepx1\rpy2\

Issues during installation of python jnius library. (dependencies?)

I would like to install jnius library for python using pip. I'm getting an error during installation. Here is what happend:
C:\Users\Janka\AppData\Local\Programs\Python\Python35-32>python.exe -m pip
install jnius
Collecting jnius
Using cached https://files.pythonhosted.org/packages/45/f5/5673f3906a9e8ca68cb7bc2d9a1eaa944c321271c4af621dbb51c13d385a/jnius-1.1.0.tar.gz
Requirement already satisfied: six>=1.7.0 in
c:\users\janka\appdata\local\programs\python\python35-32\lib\site-packages
(from jnius) (1.11.0)
Requirement already satisfied: cython in
c:\users\janka\appdata\local\programs\python\python35-32\lib\site-packages
(from jnius) (0.28.3)
Building wheels for collected packages: jnius
The first error I can't solve:
possibly, I do not have setup.py file. Can I install it somehow through pip? or what should I do? maybee I do have It, if so, where can I find it or how do I check it?
Running setup.py bdist_wheel for jnius ... error
Complete output from command
C:\Users\Janka\AppData\Local\Programs\Python\Python35-32\python.exe -u -c
"import setuptools,
tokenize;__file__='C:\\Users\\Janka\\AppData\\Local\\Temp\\pip-install-
pnoxk945\\jnius\\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\Janka\AppData\Local\Temp\pip-
wheel-ngvrr7r6 --python-tag cp35:
WARNING: Not able to assign machine() = AMD64 to a cpu value!
(Well, windows did not give up :D)
Using cpu = 'i386' instead!
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.5
copying jnius_config.py -> build\lib.win32-3.5
creating build\lib.win32-3.5\jnius
copying jnius\reflect.py -> build\lib.win32-3.5\jnius
copying jnius\signatures.py -> build\lib.win32-3.5\jnius
copying jnius\__init__.py -> build\lib.win32-3.5\jnius
running build_ext
cythoning jnius\jnius.pyx to jnius\jnius.c
building 'jnius' extension
Well, I need Microsoft Visual C++ 14.0, I tried the suggested link, but the web page says "expired account"
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 jnius
Running setup.py clean for jnius
Failed to build jnius
Installing collected packages: jnius
and again, the setup.py file..
Running setup.py install for jnius ... error
Complete output from command
C:\Users\Janka\AppData\Local\Programs\Python\Python35-32\python.exe -u -c
"import setuptools,
tokenize;__file__='C:\\Users\\Janka\\AppData\\Local\\Temp\\pip-install-
pnoxk945\\jnius\\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\Janka\AppData\Local\Temp\pip-
record-rdnylq3b\install-record.txt --single-version-externally-managed --
compile:
WARNING: Not able to assign machine() = AMD64 to a cpu value!
Using cpu = 'i386' instead!
running install
running build
running build_py
creating build
creating build\lib.win32-3.5
copying jnius_config.py -> build\lib.win32-3.5
creating build\lib.win32-3.5\jnius
copying jnius\reflect.py -> build\lib.win32-3.5\jnius
copying jnius\signatures.py -> build\lib.win32-3.5\jnius
copying jnius\__init__.py -> build\lib.win32-3.5\jnius
running build_ext
skipping 'jnius\jnius.c' Cython extension (up-to-date)
building 'jnius' extension
error: Microsoft Visual C++ 14.0 is required - again, where can I get it? / how do I install it?
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\Janka\AppData\Local\Programs\Python\Python35-32\python.exe
-u -c "import setuptools,
tokenize;__file__='C:\\Users\\Janka\\AppData\\Local\\Temp\\pip-install-
pnoxk945\\jnius\\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\Janka\AppData\Local\Temp\pip-
record-rdnylq3b\install-record.txt --single-version-externally-managed --
compile" failed with error code 1 in C:\Users\Janka\AppData\Local\Temp\pip-
install-pnoxk945\jnius\
C:\Users\Janka\AppData\Local\Programs\Python\Python35-32>
(I am using windows 10)
You need to install Visual Studio 2015. During install tick the box for Languages--> C++.
Also you may need to set your environment variable
GYP_MSVS_VERSION = 2015
Alternatively you could download the C++ compiler for Python 2.7 here
https://www.microsoft.com/en-us/download/details.aspx?id=44266
More details on the installation can be found here
https://pyjnius.readthedocs.io/en/latest/installation.html#installation-for-windows

Unable to Install Python Package

In trying to install a python package via pip I get the error:
Failed building wheel for atari-py
Running setup.py clean for atari-py
Failed to build atari-py
Installing collected packages: atari-py, PyOpenGL
Running setup.py install for atari-py ... error
Complete output from command C:\Users\xxxxxx\AppData\Local\Continuum\Anaconda2\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\xxxxxx\\appdata\\local\\temp\\pip-build-qhuh1q\\atari-py\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\xxxxxx\appdata\local\temp\pip-z8wnzs-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
Unable to execute 'make build -C atari_py/ale_interface -j 3'. HINT: are you sure `make` is installed?
error: [Error 2] The system cannot find the file specified
In my system when I type make:
C:\Users\xxxxxx>make
'make' is not recognized as an internal or external command,
operable program or batch file.
So, clearly make is missing. But I installed make using conda:
C:\Users\xxxxxx>conda install mingw
Fetching package metadata .........
Solving package specifications: ..........
# All requested packages already installed.
# packages in environment at C:\Users\xxxxxx\AppData\Local\Continuum\Anaconda2:
#
mingw 4.7
So I have mingw 4.7 already installed.
How could I remove the error and get the package?
Many thanks for the help.
make is not in your PATH.
Do echo %PATH% and check if the path to your msys utilities is in there. Otherwise you can edit this variable by following the instructions here: Adding directory to PATH Environment Variable in Windows

Cassandra driver error in installing

I am getting following error in installing Cassandra driver for python.
Command "c:\python33\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\vmasama\\appdata\\local\\temp\\pip-build-we10p7\\cassandra-driver\\setup
.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n
', '\n'), __file__, 'exec'))" install --record c:\users\vmasama\appdata\local\te
mp\pip-olh8j5-record\install-record.txt --single-version-externally-managed --co
mpile" failed with error code 1 in c:\users\vmasama\appdata\local\temp\pip-build
-we10p7\cassandra-driver\
Any one have any idea about this ? What am i missing ?
Following errors were also there when i run pip install cassandra-driver
Failed building wheel for cassandra-driver
Failed cleaning build dir
for cassandra-driver
python version : 3.3
I tried it in an environment missing compiler paths and observed something similar. I think it's a problem in setuptools error handling when it doesn't find what it's expecting. The easiest way I've found is to use the VS Command Prompt shortcut installed with Visual Studio:
Perhaps the easiest way to do this is to run the build/install from a Visual Studio Command Prompt (a shortcut installed with Visual Studio that sources the appropriate environment and presents a shell).
http://datastax.github.io/python-driver/installation.html#windows-installation-notes

Python, failed to install. Exit code: 1 windows 10

So, I have going over this back and forth, I tried several of the solutions on this forum, none worked.
I have pip3 installed, Python 3.4, Visual Studio 2015 on Windows 10.
Now whenever I run the installing for a new module manually or through pip3 I get the following error:
Say I use the cmdline as such:
pip3 install numpy
I get :
error: Unable to find vcvarsall.bat
----------------------------------------
Command "c:\users\ariel\appdata\local\programs\python\python35-32\python.exe -c
"import setuptools, tokenize;__file__='C:\\Users\\Ariel
\\AppData\\Local\\Temp\\pip-build-41rz6w_o\\numpy\\setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
.replace('\r\n', '\n'), __file__, 'exec'))" install --record
C:\Users\Ariel\AppData\Local\Temp\pip-vuq3ap0m-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1
in C:\Users\Ariel\AppData\Local\Temp\pip-build-41rz6w_o\numpy
If I download it and run it from the folder
setup.py install
I get
build_src
building py_modules sources
building library "npymath" sources
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
error: Unable to find vcvarsall.bat
Please help, considering to just use linux with python... less issues
This is based on #Jim answers in the comment section, basically make sure that you have the C++ compiler and windows SDK installed!
My problem was that when I installed Visual Studio, I did not select the windows SDK.

Categories