bitcraze / crazyflie-clients-python

Host applications and library for Crazyflie written in Python.
Other
307 stars 471 forks source link

client does not install on linux with python 3.11 #660

Closed krichardsson closed 1 year ago

krichardsson commented 1 year ago

Found on ubuntu with python 3.11

There seems to be a problem with the dependency to pyzmq in setup.py pyzmq~=22.3 pyzmq 25.0 installs, but I have not tested if it works.

Workaround: For normal client usage zmq is not used and should cause any problems also if it does not work anyway. In setup.py change 'pyzmq~=22.3', to 'pyzmq~=25.0',

krichardsson commented 1 year ago

You need to install it from source (git clone this repository), see the docs

This file: https://github.com/bitcraze/crazyflie-clients-python/blob/master/setup.py

razmy-hathy commented 1 year ago

Yes, I change it and install it from source. it is working now. Thanks for you support.

razmy-hathy commented 1 year ago

Do I need to follow the instruction given below. I don't want to reinstall the x86 brew has I already used brew install other softwares. Please explain.

Apple M1 On Apple M1 Macs, care should be taken to use the X86 version of Brew since not all required dependencies compiles for the native arm64 architecture of the M1 macs. This can be done by using the arch commands when installing brew:

Installing brew for x86_64, it will be installed in /usr/local by default

arch --x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Now we have to use brew and then python from /usr/local ...

arch --x86_64 brew install python@3.9 libusb

The arch command is not required anymore since everything brew installed are x86 executables

krichardsson commented 1 year ago

Please start a new discussion, it does not fit the title "client does not install on linux with python 3.11" of this issue

knmcguire commented 1 year ago

So our general conclusion from the triage meeting is: Let's bump up the version of pyzmq and see what happens. We don't expect this to fail but we got to test it out first.