Installing Aubio (python, windows) - python

I am having some trouble installing the aubio module for Python. According to the website, the following command typed into the command line should install the module:
pip install git+git://git.aubio.org/git/aubio
However, I only receive an error message "Cannot find git".
As the 2nd attempt, I downloaded the source files from the site, and again tried to install with PIP:
pip install c:/aubio #Anaconda32/sources as directory
I received an error message, "import error: no object named "gen_pyobject".
Finally I tried to use the exact method highlighted in the installation guide:
cd aubio
./waf configure build
Which returns an error message stating that waf is not an external or internal command or program.
I am running out of ideas, how can this extension actually be installed?

aubio should now build correctly on windows:
$ pip install aubio
it is being continuously tested for different windows configurations.
please open a new issue if you encounter a problem.

Related

"Cannot open include file: 'gsl/gsl_errno.h': No such file or directory" error on Widnows 10

I am trying to install a python package pyphenomd in anaconda on my Windows 10. I have installed Microsoft Visual C++ 2015 and the GNU Scientific Library (GSL) package using conda.
I then tried installing pyphenomd using in the Anaconda Prompt
pip install pyphenomd
(Not using conda install since that gives a Packages Not Found Error.)
But I keep getting the following error.
Then
Installing collected packages: pyphenomd
Running setup.py install for pyphenomd ... error
Followed by another iteration of the above error. Finally ending with this message
Based on Cannot open include file: 'gsl/gsl_errno.h': No such file or directory message I am assuming the error is Visual C++ is not able to access the header files for gsl. I then reinstalled the gsl package from conda but that didn't help. So then I installed GSL using vcpkg following the procedure mentioned in here. This did not help either and I am still getting the same error. Installing GSL via cygwin also didn't help.
Now I don't know what to do. I am not even sure if the error is with the installation of gsl ?
Other similar questions that I found either didn't have any answers or the provided solutions weren't relevant.

Trying to use "pip install pandas" and receive the error: ModuleNotFoundError: No module named 'Cython'

I'm very new to Python and have installed Python 3.8, PyCharm community edition and am trying to install pandas. The pandas module shows in in my available packages in PyCharm but when I try to install I receive the above error message.
If I try and run it from the CMD I receive the error: 'pip' is not recognized as an internal or external command, operable program or batch file. And if I try the same command in the Python shell I get an 'invalid syntax' error. I would uninstall everything and start fresh but the fact it's telling me there's "no module named Cython" is making me think something specific is wrong.
Anyone have a solution to this please?
If you are using Python for data science, I think you can make use of Anaconda package manager. It will install the most used libraries for you and provides a user interface for quickly installing and managing the others.
first check is pip installed on your system or not by typing following command:
By default pip file structure will be like
C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip --version
if it's not installed then download download pip
Now navigate to following path and install pandas:
C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip install pandas
Note: Make sure the path is right,while using above paths. according to your system configuration for pip above path might be different.

Error message when try to install program say (cx_freeze:python error in main script)

I get this error message when it try to install program, it appear there some packages need to be installed
enter image description here
Can you elaborate on how you tried to install it at first?
Either way, I recommend you use the following process to download Python modules in the future.
https://pypi.org/project/cx_Freeze/
Download the .whl file for cx-freeze above
Make sure you have wheel installed and execute the following command:
python -m pip install cx-freeze

windows: pip install zbar cannot open include file and failed with exit status 2

I need to install the zbar-library because I need it to use the qrtools-library in Python 2.7 on Windows 10.
When I run pip install zbar in the windows shell I get the following response:
I already followed this lead but it didn't worked.
Downloading a C/C++ Compiler didn't changed anything. Then I downloaded the linked binary wheel, but then I got on my shell the following response:
How can I install zbar?
Edit: I need to use the qrtools library on a nao robot. I tried to install pip using putty. I tried the way described by Jordan B. (look here)So I downloaded the python file and uploaded it to the robot per File Transfer(Choregraphe). When I call python get-pip.py --user I get this error:
How can I install zbar and pip on the robot?
About NAO, I cross-compiled it using qibuild and made a service (as of NAOqi services) out of it : https://github.com/SoftBankRoboticsEurope/barcodereader

Installing OpenCV, No module named cv2.cv

I am trying to follow the instructions found here for python.
Step 1 seemed to work, here are the last 5 lines from my terminal after I ran opencv.sh:
h.h
./opencv.sh: line 16: cmake: command not found
make: *** No targets specified and no makefile found. Stop.
sudo: checkinstall: command not found
OpenCV 2.4.9 ready to be used
However, when I moved on to step 2 I got the following error when running the python file from the command line:
Traceback (most recent call last):
File "opencvFirst.py", line 4, in '<'module'>'
from cv2.cv import *
ImportError: No module named cv2.cv
This doesn't seem to be my issue, because I can't find cv2.anything located on my computer, which is most likely part of the problem, but I don't know why step 1 wouldn't have installed it.
I think that this question is a little closer to what I need, but since I already completed step 1, as I said above, I'm not sure where to start with these separate instructions. I tried import cv2 but got an import error: no module cv2.
I'm very new to ubuntu, python, and all this command line stuff, thank you for your help!
Oh also, I should say: my final goal here is just to get OpenCV working, so if there is an easier/better way to do so, I am very open to suggestions.
Are you sure the installation worked properly? Because all I see during your first step is:
cmake: command not found
checkinstall: command not found
So maybe you should check that both cmake and checkinstall are installed, or install them if they are not before retrying the opencv.sh command:
sudo apt-get install cmake checkinstall
sudo ./opencv.sh
By installing python-opencv package you should be able to solve the problem
sudo apt-get install python-opencv
Here is the AWS (Linux) solution if you are receiving the following error:
"ImportError: No module named cv2"
First make sure to install openCV with ASW Sagemaker Jupiter (Linux and use kernel=tensorflow_p36 as example)
At the main AWS sagemaker terminal, open new Jupyter notebook where new is selected as a Terminal. This will open the command prompt vs. a regular Jupyter-notebook.
At terminal command line enter the following commands to activate env first and then install opencv
conda environments (to see and digest what env you have. These are also kernels in you J-notebook).
source activate tensorflow_p36 (This is an example to use Python 3.6. your command line should change to (tf_p36))
pip install --upgrade pip (in case your pip is not latest version)
pip install opencv-python (this hopefully installs the openCV)
go back to the regular jupyter window, change kernel to above and compile the code!

Categories

Resources