Open Tmx666 opened 3 months ago
It makes a call for Setup tools import setup which calls as a module not found error no module named setuptools
Same error after my OS was updated from Ubuntu 23.10 to 24.04. I have Setuptools installed.
Installing mlat-client to virtual environment
34
36
38
Traceback (most recent call last):
File "/usr/local/share/adsbexchange/mlat-client-git/setup.py", line 25, in <module>
from setuptools import setup, Extension
ModuleNotFoundError: No module named 'setuptools'
48
50
60
70
readsb version: 3.14.1631 adsbexchange git: eea98b1 (committed: Mon Jun 17 09:18:43 2024 -0700)
$ sudo apt install python3-setuptools
python3-setuptools is already the newest version (68.1.2-2ubuntu1).
At Python 3.12 , There're two breaking changes affected to this issue.
asyncore
).Also, at the venv, system-wide site libraries are hidden by default. (Therefore, cannot see libraries installed by apt are invisible on the venv).
So, I've added the statementpip3 install setuptools pyasyncore
before python3 setup.py build
and successfully installed and running at Ubuntu 24.04.1.
https://github.com/ADSBexchange/feedclient/blob/643e7ba93e445435e1037406edf9d1e53e24d57b/update.sh#L221
I don't know if this will happen if we install manually setuptools
and pyasyncore
on below Python 3.12.
I think it is necessary to check the Python version instead of simply adding the statement above.
At Python 3.12 , There're two breaking changes affected to this issue.
* Do not pre-install setuptools in virtual environments created with [venv](https://docs.python.org/3.12/library/venv.html#module-venv). * [asyncore](https://docs.python.org/3.12/whatsnew/3.12.html#asynchat-and-asyncore) is removed from the standard library. ( mlat-client requires `asyncore` ).
Also, at the venv, system-wide site libraries are hidden by default. (Therefore, cannot see libraries installed by apt are invisible on the venv). So, I've added the statement
pip3 install setuptools pyasyncore
beforepython3 setup.py build
and successfully installed and running at Ubuntu 24.04.1.I don't know if this will happen if we install manually
setuptools
andpyasyncore
on below Python 3.12. I think it is necessary to check the Python version instead of simply adding the statement above.
Yes! Thank you! I have created a fork and added your statement. I am back running MLAT now.
Won’t install mlat client on either of these OS’s as they have a different set of Python Libraries I believe 24.04 / Trixir use Python 3.12 which makes the mlat client not compatible