Closed darshit-desai closed 1 year ago
after digging in this I think the issue is Python 3.10 PyYAML may not support for Python 3.10, if using python==3.8 it will be fine
I updated dependencies in the master branch, can you please try again to install from source?
Ok I'll try it out once with 3.11.x if it doesn't work I'll make a venv with 3.8 and install it there
I was able to install cfclient from the source using the latest commit, but when I tried to install/build the dev version a different error occured. It is described below:
D:\crazyflie-clients-python>pip3 install -e .[dev]
Obtaining file:///D:/crazyflie-clients-python
Preparing metadata (setup.py) ... done
Requirement already satisfied: cflib>=0.1.23 in d:\crazyflie-lib-python (from cfclient==2023.6.post4+d387b70) (0.1.23)
Requirement already satisfied: appdirs~=1.4.0 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (1.4.4)
Requirement already satisfied: pyzmq~=25.0 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (25.1.0)
Requirement already satisfied: pyqtgraph~=0.11 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (0.12.4)
Requirement already satisfied: PyYAML~=6.0.1 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (6.0.1)
Requirement already satisfied: qasync~=0.23.0 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (0.23.0)
Requirement already satisfied: qtm~=2.1.1 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (2.1.2)
Requirement already satisfied: numpy<1.25,>=1.20 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (1.24.3)
Requirement already satisfied: vispy~=0.13.0 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (0.13.0)
Requirement already satisfied: pyserial~=3.5 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (3.5)
Requirement already satisfied: pyqt5~=5.15.0 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (5.15.9)
Requirement already satisfied: PyQt5-sip>=12.9.0 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (12.12.1)
Requirement already satisfied: pysdl2~=0.9.14 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (0.9.16)
Requirement already satisfied: pysdl2-dll==2.24.0 in c:\users\darshit\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cfclient==2023.6.post4+d387b70) (2.24.0)
Collecting pre-commit (from cfclient==2023.6.post4+d387b70)
Downloading pre_commit-3.3.3-py2.py3-none-any.whl (202 kB)
---------------------------------------- 202.8/202.8 kB 12.0 MB/s eta 0:00:00
Collecting cx_freeze==5.1.1 (from cfclient==2023.6.post4+d387b70)
Downloading cx_Freeze-5.1.1.tar.gz (61 kB)
---------------------------------------- 61.4/61.4 kB ? eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\darshit\AppData\Local\Temp\pip-install-5h6_l2n1\cx-freeze_928d044d988845e48bb14f3c030fe8ef\setup.py", line 5, in <module>
import cx_Freeze
File "C:\Users\darshit\AppData\Local\Temp\pip-install-5h6_l2n1\cx-freeze_928d044d988845e48bb14f3c030fe8ef\cx_Freeze\__init__.py", line 7, in <module>
from cx_Freeze.windist import *
File "C:\Users\darshit\AppData\Local\Temp\pip-install-5h6_l2n1\cx-freeze_928d044d988845e48bb14f3c030fe8ef\cx_Freeze\windist.py", line 1, in <module>
import distutils.command.bdist_msi
ModuleNotFoundError: No module named 'distutils.command.bdist_msi'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
D:\crazyflie-clients-python>
Also in the installation instructions there are four terminal commands which are said to be added once the build is installed
cfclient
cfheadless
cfloader
cfzmq
I am only able to launch the cfclient with the command given below, what are the ways to check other 3? (cfheadless, cfloader, cfzmq)
I am able to launch cfclient using this command given in installation instructions
python3 -m cfclient.gui
The dev install is not to be installed anymore, did you find that in the documentation? (it was used for building a windows installer for the client, but we have given-up a while ago since it was constantly breaking ...).
As for the commands, they are installed by pip but it does not appear to be in your environment path. This seems to be a user-only install of Python 3.11, I am not sure where pip puts the scripts in that case (pip does create cfclient.exe, cfloader.exe, etc... on Windows).
The list of the script can be seen in setup.py: https://github.com/bitcraze/crazyflie-clients-python/blob/master/setup.py#L86-L89
For example, to run cfloader, you can run python -m cfloader
Hi I didn't see the Dev install notice in the installation instructions. Rest of it I'm sure it works, I tried the same for Ubuntu and it was able to add the executables to the path, thank you for your help.
Errors encountered while installing cfclient on windows 10 enterprise
I tried installing using both methods and it doesn't work,
1st method using pypi package, the errors are mentioned below:
2nd method using build from source,