FreeTAKTeam / FreeTakServer

Situational Awareness Server compatible with TAK clients
Eclipse Public License 2.0
639 stars 165 forks source link

Issue installing FreeTAKServer with pip (Ubuntu 20.04) #525

Closed ryanalex98 closed 4 months ago

ryanalex98 commented 1 year ago

Hello, I have followed all instructions here, and I get the following message when running $ sudo python3 -m pip install FreeTAKServer[ui] :

ERROR: Cannot uninstall 'psutil'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

I am running Ubuntu 20.04 with Python 3.8. Any help would be much appreciated.

Full output:

Collecting FreeTAKServer[ui]
  Using cached FreeTAKServer-1.9.9.6-py3-none-any.whl (333 kB)
Collecting pathlib2==2.3.7.post1
  Using cached pathlib2-2.3.7.post1-py2.py3-none-any.whl (18 kB)
Collecting geopy==2.2.0
  Using cached geopy-2.2.0-py3-none-any.whl (118 kB)
Collecting Flask-SQLAlchemy==2.4.4
  Using cached Flask_SQLAlchemy-2.4.4-py2.py3-none-any.whl (17 kB)
Requirement already satisfied: SQLAlchemy==1.3.20 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (1.3.20)
Collecting pyOpenSSL==22.0.0
  Using cached pyOpenSSL-22.0.0-py2.py3-none-any.whl (55 kB)
Collecting dnspython==1.16.0
  Using cached dnspython-1.16.0-py2.py3-none-any.whl (188 kB)
Requirement already satisfied: PyYAML==6.0 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (6.0)
Requirement already satisfied: six==1.16.0 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (1.16.0)
Collecting MarkupSafe==2.0.1
  Using cached MarkupSafe-2.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (30 kB)
Collecting pykml==0.2.0
  Using cached pykml-0.2.0-py3-none-any.whl (41 kB)
Collecting lxml==4.6.5
  Using cached lxml-4.6.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.9 MB)
Collecting defusedxml==0.7.1
  Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Requirement already satisfied: testresources==2.0.1 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (2.0.1)
Requirement already satisfied: ruamel.yaml==0.17.21 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (0.17.21)
Requirement already satisfied: ruamel.yaml.clib==0.2.6 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (0.2.6)
Collecting click==8.0.4
  Using cached click-8.0.4-py3-none-any.whl (97 kB)
Collecting Flask-SocketIO==4.3.1
  Using cached Flask_SocketIO-4.3.1-py2.py3-none-any.whl (15 kB)
Collecting itsdangerous==2.0.1
  Using cached itsdangerous-2.0.1-py3-none-any.whl (18 kB)
Requirement already satisfied: qrcode==7.3.1 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (7.3.1)
Collecting eventlet==0.29.0
  Using cached eventlet-0.29.0-py2.py3-none-any.whl (223 kB)
Collecting Flask==1.1.2
  Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Collecting psutil==5.9.0
  Using cached psutil-5.9.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (283 kB)
Collecting Flask-Cors==3.0.9
  Using cached Flask_Cors-3.0.9-py2.py3-none-any.whl (14 kB)
Collecting python-socketio==4.6.0
  Using cached python_socketio-4.6.0-py2.py3-none-any.whl (51 kB)
Collecting protobuf==3.14.0
  Using cached protobuf-3.14.0-cp38-cp38-manylinux1_x86_64.whl (1.0 MB)
Requirement already satisfied: tabulate==0.8.7 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (0.8.7)
Requirement already satisfied: bcrypt==3.1.7 in /usr/lib/python3/dist-packages (from FreeTAKServer[ui]) (3.1.7)
Collecting colorama==0.4.4
  Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting Flask-Login==0.5.0
  Using cached Flask_Login-0.5.0-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: geographiclib==1.52 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (1.52)
Collecting Jinja2==2.11.2
  Using cached Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
Requirement already satisfied: monotonic==1.6 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (1.6)
Requirement already satisfied: Werkzeug==2.0.3 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (2.0.3)
Collecting WTForms==2.3.3
  Using cached WTForms-2.3.3-py2.py3-none-any.whl (169 kB)
Collecting pillow==9.1.1
  Using cached Pillow-9.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
Collecting cryptography==36.0.2
  Using cached cryptography-36.0.2-cp36-abi3-manylinux_2_24_x86_64.whl (3.6 MB)
Collecting greenlet==1.1.2
  Using cached greenlet-1.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (156 kB)
Requirement already satisfied: python-engineio==3.13.2 in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer[ui]) (3.13.2)
Collecting Flask-HTTPAuth==4.2.0
  Using cached Flask_HTTPAuth-4.2.0-py2.py3-none-any.whl (5.9 kB)
Collecting FreeTAKServer-UI
  Using cached FreeTAKServer_UI-1.9.9.2-py3-none-any.whl (3.7 MB)
Collecting cffi>=1.12
  Using cached cffi-1.15.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (442 kB)
Requirement already satisfied: pbr>=1.8 in /usr/lib/python3/dist-packages (from testresources==2.0.1->FreeTAKServer[ui]) (5.4.5)
Collecting email-validator
  Using cached email_validator-1.3.1-py2.py3-none-any.whl (22 kB)
Collecting gunicorn
  Using cached gunicorn-20.1.0-py3-none-any.whl (79 kB)
Collecting flask-migrate
  Using cached Flask_Migrate-4.0.3-py3-none-any.whl (20 kB)
Requirement already satisfied: sqlalchemy-utils in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer-UI->FreeTAKServer[ui]) (0.39.0)
Collecting flask-wtf
  Using cached Flask_WTF-1.1.1-py3-none-any.whl (12 kB)
Requirement already satisfied: python-decouple in /usr/local/lib/python3.8/dist-packages (from FreeTAKServer-UI->FreeTAKServer[ui]) (3.7)
Requirement already satisfied: pycparser in /usr/local/lib/python3.8/dist-packages (from cffi>=1.12->cryptography==36.0.2->FreeTAKServer[ui]) (2.21)
Requirement already satisfied: idna>=2.0.0 in /usr/lib/python3/dist-packages (from email-validator->FreeTAKServer-UI->FreeTAKServer[ui]) (2.8)
Collecting alembic>=1.9.0
  Using cached alembic-1.9.2-py3-none-any.whl (210 kB)
Requirement already satisfied: setuptools>=3.0 in /usr/lib/python3/dist-packages (from gunicorn->FreeTAKServer-UI->FreeTAKServer[ui]) (45.2.0)
Collecting importlib-resources
  Using cached importlib_resources-5.10.2-py3-none-any.whl (34 kB)
Requirement already satisfied: Mako in /usr/lib/python3/dist-packages (from alembic>=1.9.0->flask-migrate->FreeTAKServer-UI->FreeTAKServer[ui]) (1.1.0)
Collecting importlib-metadata
  Using cached importlib_metadata-6.0.0-py3-none-any.whl (21 kB)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.8/dist-packages (from importlib-metadata->alembic>=1.9.0->flask-migrate->FreeTAKServer-UI->FreeTAKServer[ui]) (3.11.0)
Installing collected packages: psutil, protobuf, pillow, pathlib2, MarkupSafe, lxml, itsdangerous, importlib-resources, importlib-metadata, gunicorn, greenlet, geopy, dnspython, defusedxml, colorama, click, cffi, WTForms, python-socketio, pykml, Jinja2, eventlet, email-validator, cryptography, alembic, pyOpenSSL, Flask, flask-wtf, Flask-SQLAlchemy, Flask-SocketIO, Flask-Login, Flask-HTTPAuth, Flask-Cors, FreeTAKServer, flask-migrate, FreeTAKServer-UI
  Attempting uninstall: psutil
    Found existing installation: psutil 5.5.1
ERROR: Cannot uninstall 'psutil'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
SCWhite commented 1 year ago

HI @ryanalex98

I think you might already installed something. see stackoverflow link here

quote:

Most probably, you have installed this package via your OS' package manager, so you need to use that rather than pip to update or remove it, too.

simple fix will be doing: pip install --ignore-installed [package]

but I'll recommend you check your env first.

brothercorvo commented 4 months ago

this has been adressed by switching to a VirtualEnviroment in our ZeroTOuch installer