Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install on Windows: "no matching distribution found for mavsdk" #88

Closed
SelimOzel opened this issue Jul 17, 2019 · 34 comments
Closed
Assignees

Comments

@SelimOzel
Copy link

Am I doing this right? Please see the attached image.

MavSDK_Pip

@JonasVautherin
Copy link
Collaborator

Nope, you're apparently doing it right, but pip decided that your system was not compatible. What system are you running on? Windows 10, 64 bits?

@SelimOzel
Copy link
Author

Yes, that's the system! Thanks.

@JonasVautherin
Copy link
Collaborator

Ok, I need to have a look at that. I'll keep you posted ASAP!

@JonasVautherin JonasVautherin self-assigned this Jul 17, 2019
@SelimOzel
Copy link
Author

No worries! And thanks once more!

@julianoes
Copy link
Collaborator

I tried to reproduce this on Windows 10 64 bit with Python 3.7.4 and it worked successfully:

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.0.3
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>python
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>pip3 install mavsdk
Collecting mavsdk
  Downloading https://files.pythonhosted.org/packages/54/e1/7a982a0728b54231bb5ce8ceb89dec92d22829d9b047f58e85f34509e72c/mavsdk-0.1.0-py3-none-win_amd64.whl (3.9MB)
    100% |████████████████████████████████| 3.9MB 723kB/s
Collecting aiogrpc>=1.5 (from mavsdk)
  Downloading https://files.pythonhosted.org/packages/06/73/aa687dd6f103e51c50703c43936f26bc13e563ac0489e74b7a3398eaf391/aiogrpc-1.6-py3-none-any.whl
Collecting protobuf>=3.5.1 (from mavsdk)
  Downloading https://files.pythonhosted.org/packages/5a/5b/2ffcea713a542179878d0f03e7c6e50d09ca470b36e730f94ed51e51b35d/protobuf-3.9.0-cp37-cp37m-win_amd64.whl (1.0MB)
    100% |████████████████████████████████| 1.0MB 66kB/s
Collecting grpcio>=1.11.0 (from mavsdk)
  Downloading https://files.pythonhosted.org/packages/7a/f5/fe046577387a3589ab3092096ca423fcf9a8c7ac876f56c6f3b4c9b9e533/grpcio-1.22.0-cp37-cp37m-win_amd64.whl (1.6MB)
    100% |████████████████████████████████| 1.6MB 1.6MB/s
Collecting six>=1.9 (from protobuf>=3.5.1->mavsdk)
  Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in c:\users\julian oes\appdata\local\programs\python\python37\lib\site-packages (from protobuf>=3.5.1->mavsdk) (40.8.0)
Installing collected packages: six, grpcio, aiogrpc, protobuf, mavsdk
Successfully installed aiogrpc-1.6 grpcio-1.22.0 mavsdk-0.1.0 protobuf-3.9.0 six-1.12.0
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>python
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mavsdk
>>> help(mavsdk)
Help on package mavsdk:

NAME
    mavsdk - # -*- coding: utf-8 -*-

PACKAGE CONTENTS
    _base
    async_plugin_manager
    bin (package)
    generated (package)
    plugins (package)

SUBMODULES
    action
    action_pb2
    action_pb2_grpc
    ...

@JonasVautherin
Copy link
Collaborator

@SelimOzel: what's the output of pip3 --version and python3 --version?

@SelimOzel
Copy link
Author

PipError

It should be pip 19.1.1 and python 3.7.2. I am not certain if all path variables are correct on the particular laptop I'm using. I haven't used python in a while with this laptop. I'll give this command another shot with the setup I got home.

@JonasVautherin
Copy link
Collaborator

But Python 3.6+ should be fine. Here somehow pip decides that your machine is not compatible, and I don't get why 🤔...

@SelimOzel
Copy link
Author

Just to be clear. This is not a critical problem for me. I just wanted to give more data points to work with to whoever ends up solving it.

I tested following commands in the image on my home setup with a Windows 10, x64 PC. Still getting the same error.

MavSDK Error

@bozkurthan
Copy link

bozkurthan commented Jul 21, 2019

I'm here for same Issue for raspberry pi 4(raspbian buster). I tried to download and install manually but no chance.

2019-07-21-120305_1920x1080_scrot

I tried to follow this instruction but it gives me error too:

Build and run from sources
Note: this is more involved and targetted to contributors.

Get the Python wrapper
Clone this repo and recursively update submodules:

git clone https://github.com/mavlink/MAVSDK-Python --recursive
cd MAVSDK-Python
Install prerequisites
First install the protoc plugin (protoc-gen-dcsdk):

cd proto/pb_plugins
pip install -r requirements.txt
pip install -e .
You can check that the plugin was installed with $ which protoc-gen-dcsdk, as it should now be in the PATH.

Then go back to the root of the repo and install the dependencies of the SDK:

cd ../..
pip install -r requirements.txt -r requirements-dev.txt
Generate wrapper
Run the following helper script. It will generate the Python wrappers for each plugin. If the submodules are not initialized already, the script will take care of it.

./other/tools/run_protoc.sh
Install the package locally
After generating the wrapper you can install a development (editable) version of the package using:

pip install -e .

On ubuntu bionic it was running well.

@JonasVautherin
Copy link
Collaborator

I'm here for same Issue for raspberry pi 4(raspbian buster). I tried to download and install manually but no chance.

That's normal, we don't distribute for arm (yet). We have linux_x86_64, windows 64 bits and macOS. Now I don't get why the pip of @SelimOzel doesn't detect it as windows-compatible.

@SelimOzel: Could you try to download the wheel here and install it manually?

pip install mavsdk-0.1.0-py3-none-win_amd64.whl

@SelimOzel
Copy link
Author

SelimOzel commented Jul 22, 2019

My system type is x64-based PC and CPU is i7-7700 as written in System Information panel of Windows 10. I downloaded the .whl file in the link you provided into C:\Wheel and run the install command from there. Unfortunately it still is complaining about platform and support. :(

ArchitectureWindow

@canpinaremre
Copy link

Can't we use with raspberry pi?

@JonasVautherin
Copy link
Collaborator

Can't we use with raspberry pi?

You can, but you have to compile mavsdk_server manually, as we don't provide it with the pip package yet.

@JonasVautherin JonasVautherin changed the title pip3 install error pip install on Windows: "no matching distribution found for mavsdk" Jul 22, 2019
@JonasVautherin
Copy link
Collaborator

@SelimOzel can you try to see if a verbose call of pip gives useful info?

pip3 -vvv install mavsdk

@julianoes
Copy link
Collaborator

Capture

@v2h
Copy link

v2h commented Aug 1, 2019

I'm having the same problem on both my personal laptop and work laptop (Windows 10 64 bit, python version 3.7.4). Here is the output for pip3 -vvv install mavsdk :

grafik

@JonasVautherin
Copy link
Collaborator

Thanks @v2h for the input!

It seems like it tries to install mavsdk-0.1.0-py3-none-macosx_10_9_x86_64.whl, which obviously doesn't match. Interestingly, it does not mention the other variants.

Would you mind trying to download the wheel directly and install it with the following command?

$ pip3 -vvv install mavsdk-0.1.0-py3-none-win_amd64.whl

@v2h
Copy link

v2h commented Aug 2, 2019

@JonasVautherin here are the outputs from $ pip3 -vvv install mavsdk-0.1.0-py3-none-win_amd64.whl:

grafik

@JonasVautherin
Copy link
Collaborator

Should it have another name? Like win_x86-64 or win-arm64 or something like that?

Would you mind trying different solutions? Or maybe there is a list somewhere online (I'm on holiday, I don't have access to a computer right now 😊)

@v2h
Copy link

v2h commented Aug 2, 2019

@JonasVautherin win_x86-64 didn't work either. Enjoy your holiday (: I'll try to figure it out and let you know.

@julianoes
Copy link
Collaborator

@v2h why are you using python37-32? This looks like it's the 32 bit version of Python.

@julianoes
Copy link
Collaborator

I can reproduce this with Python 3.7 32 bit:

python32

@julianoes
Copy link
Collaborator

@v2h I think in the longer term we would like to support 32 bit as well but for now I suggest to install the Python 64 bit version to workaround this.

@v2h
Copy link

v2h commented Aug 5, 2019

@julianoes @JonasVautherin ahhh silly me, I was messing around with Python 2 and 3, and then mistakenly installed the 32 bit version. Reinstalled Python 64 bit and everything works now. Thanks alot!!

@julianoes
Copy link
Collaborator

Yay, glad! I'll close this then.

@MaEtUgR
Copy link

MaEtUgR commented Aug 7, 2019

I had the same problem, thanks to @JonasVautherin for hinting me towards the 32/64-Bit issue. I think the root cause of the problem is the python website https://www.python.org/downloads/ which offers a huge download Python for windows button that when pressed installs you the 32-Bit version (in 2019!). It also doesn't mention that it's 32-Bit neither on the button nor in the installer file name. It should offer also a 64-Bit button otherwise people including me are tempted to just press whatever seems to be default. Let's write the website admins.
EDIT: python/pythondotorg#1299 (comment)

@JonasVautherin
Copy link
Collaborator

Maybe we should also publish a 32 bits artifact for Windows? Does that make sense?

@julianoes
Copy link
Collaborator

Maybe we should also publish a 32 bits artifact for Windows? Does that make sense?

Yes, I think that will spare some troubles.

@rahulswimmer
Copy link

Apparently the package I was looking for was getting installed for a different pip url. Hence I pointed my pip command to that url inside pip.conf file and it solved my problem.

@qsqqwqeqe
Copy link

ERROR: Could not find a version that satisfies the requirement avbin (from versions: none)
ERROR: No matching distribution found for avbin.Can u please tell me the issue anyone????

@julianoes
Copy link
Collaborator

@qsqqwqeqe please don't necrobump but create a new issue with proper log information.

@jagadeeshdevula
Copy link

Hi,
While installing the GitHub-dorks.py package with ( pip3 install github-dorks.py ), got some error like
python version : Python 3.8.5

ERROR: Could not find a version that satisfies the requirement github-dorks.py (from versions: none)
ERROR: No matching distribution found for github-dorks.py
Please help me to solve this issue.

Thank you.

@julianoes
Copy link
Collaborator

Please don't necrobump.

@mavlink mavlink locked as resolved and limited conversation to collaborators Sep 7, 2020
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

10 participants