Comments (34)
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)
from mavsdk-python.
@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!!
from mavsdk-python.
@JonasVautherin win_x86-64
didn't work either. Enjoy your holiday (: I'll try to figure it out and let you know.
from mavsdk-python.
Yay, glad! I'll close this then.
from mavsdk-python.
Maybe we should also publish a 32 bits artifact for Windows? Does that make sense?
from mavsdk-python.
Maybe we should also publish a 32 bits artifact for Windows? Does that make sense?
Yes, I think that will spare some troubles.
from mavsdk-python.
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?
from mavsdk-python.
Yes, that's the system! Thanks.
from mavsdk-python.
Ok, I need to have a look at that. I'll keep you posted ASAP!
from mavsdk-python.
No worries! And thanks once more!
from mavsdk-python.
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
...
from mavsdk-python.
@SelimOzel: what's the output of pip3 --version
and python3 --version
?
from mavsdk-python.
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.
from mavsdk-python.
But Python 3.6+ should be fine. Here somehow pip decides that your machine is not compatible, and I don't get why 🤔...
from mavsdk-python.
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.
from mavsdk-python.
I'm here for same Issue for raspberry pi 4(raspbian buster). I tried to download and install manually but no chance.
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.
from mavsdk-python.
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
from mavsdk-python.
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. :(
from mavsdk-python.
Can't we use with raspberry pi?
from mavsdk-python.
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.
from mavsdk-python.
@SelimOzel can you try to see if a verbose call of pip gives useful info?
pip3 -vvv install mavsdk
from mavsdk-python.
from mavsdk-python.
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
:
from mavsdk-python.
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
from mavsdk-python.
@JonasVautherin here are the outputs from $ pip3 -vvv install mavsdk-0.1.0-py3-none-win_amd64.whl
:
from mavsdk-python.
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 😊)
from mavsdk-python.
@v2h why are you using python37-32
? This looks like it's the 32 bit version of Python.
from mavsdk-python.
I can reproduce this with Python 3.7 32 bit:
from mavsdk-python.
@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.
from mavsdk-python.
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.
from mavsdk-python.
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????
from mavsdk-python.
@qsqqwqeqe please don't necrobump but create a new issue with proper log information.
from mavsdk-python.
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.
from mavsdk-python.
Please don't necrobump.
from mavsdk-python.
Related Issues (20)
- handling ActionError HOT 2
- getting mavsdk version HOT 5
- RuntimeError: aclose(): asynchronous generator is already running
- System.connect with time out HOT 3
- Running mavsdk server on Windows HOT 4
- How to manual control
- Unable to start a mission a second time HOT 3
- How to detect offboard command completion HOT 3
- One `mavsdk_server`, multiple drones HOT 2
- install mavsdk on py zero HOT 6
- "import_qgroundcontrol_mission_from_string" function not parsing the altitude correctly HOT 1
- drone.info.get_version() INFORMATION_NOT_RECEIVED_YET HOT 8
- FILE_DOES_NOT_EXIST on calling the drone.ftp.list_directory() to fetch internal directories file HOT 13
- The use of drone.offboard.set_position_ned HOT 9
- Unable to upload rally_items through MAVSDK HOT 10
- Error when uploading mission: INVALID_PARAM1 HOT 6
- `aiogrpc` RuntimeError HOT 38
- Running missions in ArduPilot HOT 12
- How to use mavsdk-python to takeoff without GPS HOT 4
- How do I use `telemetry_server` correctly? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mavsdk-python.