Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 6.2 does not work under Unbuntu 18.04 anymore #2987

Closed
dewagter opened this issue Feb 11, 2023 · 4 comments
Closed

Release 6.2 does not work under Unbuntu 18.04 anymore #2987

dewagter opened this issue Feb 11, 2023 · 4 comments
Milestone

Comments

@dewagter
Copy link
Member

When installing paparazzi release 6.2 on a fresh ubuntu 18.04, it does not even start paparazzi center

  • missing lxml (sudo apt-get install python3-lxml)
  • missing numpy (sudo pip3 install numpy)
  • missing PyQt5 (sudo apt-get install python3-pyqt5)
  • missing dataclasses (sudo pip3 install dataclasses)
  • syntax error: supervision/python/paparazzicenter.py utils.py line 21: def remove_prefix(string: str, prefix: str, ,/) -> str
    does not understand this /) -> removed the ", /"
  • missing future annotations: (tried: git clone -b legacy_py3.6 http://github.com/QUVA-Lab/e2cnn.git && cd e2cnn && sudo python3 setup.py install, but required python3.8)
  • unable to fix: recommend minimum python3.7
  • sudo add-apt-repository ppa:deadsnakes/ppa
  • sudo apt-get update
  • apt list | grep python3.8
  • sudo apt-get install python3.8
  • sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
  • sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
  • sudo update-alternatives --config python3 (and then type 2)
  • check python3 -V
  • sudo apt-get remove gpsd (gives errors with pkg)
  • missing PyQt5.Widget etc....

Tried removing old pythons

  • sudo apt purge python2.7-minimal
  • sudo apt purge python3.6
  • sudo ln -s /usr/bin/python2 /usr/bin/python
  • sudo apt install -y python3-pip
  • sudo ln -s /usr/bin/pip3 /usr/bin/pip
  • sudo apt autoremove
  • ls -al /usr/bin | grep python
@dewagter dewagter added the Blocking an issue that is essential to use of paparazzi label Feb 11, 2023
@dewagter dewagter added this to the v6.2 milestone Feb 11, 2023
@Fabien-B
Copy link
Contributor

Fabien-B commented Feb 11, 2023

Ubuntu 18.04 is being rolled out of support in 2 months.
I think it's not worth fixing, knowing that you can use the old paparazzi center.
Just launch it with ./paparazzi -legacy.

I don't think we should restrains ourself to use the "new" nice things to keep it compatible with the old end of life distributions.
The shift to Qt is due to the end of support of Gtk2 and ocaml-gtk bindings in Ubuntu 20.04 and later.
We choosed to provide no support for the new GCS and paparazzi center in 18.04, as the old tools are working fine in this version.

@Fabien-B Fabien-B removed the Blocking an issue that is essential to use of paparazzi label Feb 11, 2023
@gautierhattenberger
Copy link
Member

The paparazzi-dev package have not been updated in include the python libraries for the new pprz center. I also don't think it is worthy to change that. We might test for the ubuntu version to decide if the legacy version should be used by default or not.

@dewagter
Copy link
Member Author

Updated documentation so people know what to do and the start.py still works like before.

@dewagter
Copy link
Member Author

In summary: solving the python issues seems very challenging but as suggested by @gautierhattenberger the legacy mode still works great. This is now reflected in the documentation so this issue is resolved.

dewagter added a commit to tudelft/paparazzi that referenced this issue Feb 12, 2023
dewagter added a commit to tudelft/paparazzi that referenced this issue Feb 12, 2023
Squashed commit of the following:

commit ff469c3899baa5f1324ef62a23474194f5234874
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sun Feb 12 08:36:39 2023 -0800

    Detect OS update

commit ce8449ecbd123502e02cee05834b62fb989cf145
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sun Feb 12 01:37:21 2023 -0800

    Installer GUI

commit d991c16d3a235bc43261282332506e8ea1b8776d
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sat Feb 11 13:55:53 2023 -0800

    [ubuntu18.04] Update documentation + legacy: solves paparazzi#2987

commit 33b4126bc0813390f8179dfd40007a2ebfd7cd2b
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sun Feb 12 15:10:31 2023 +0100

    Different IVY

commit 8bb42f1818c92d0e9e1586fe69433268492556d4
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sun Feb 12 15:05:50 2023 +0100

    Extra for NatNet

commit 118effb7e0a0e808ffffde42f3d03173e735fa3d
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sun Feb 12 14:30:31 2023 +0100

    Removed user prompts

commit e83f323d9fa8498ffc9576211c669f8384912787
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Fri Jan 6 22:43:16 2023 +0100

    [install] Ease installation with a GUI that automatically adapts to the OS

    Installer GUI

    Wait ready + typo

    GO

commit cd5e2b625ed5e7e5bdcaa45d06bff9a7fe438d54
Author: Fabien-B <fabien.bonneval@gmail.com>
Date:   Sat Feb 11 17:55:41 2023 +0100

    Update targets only. (paparazzi#2983)
dewagter added a commit that referenced this issue Feb 12, 2023
dewagter added a commit that referenced this issue Feb 12, 2023
dewagter added a commit to tudelft/paparazzi that referenced this issue Feb 12, 2023
gautierhattenberger pushed a commit that referenced this issue Feb 13, 2023
Fabien-B pushed a commit that referenced this issue Feb 13, 2023
dewagter added a commit to tudelft/paparazzi that referenced this issue Feb 13, 2023
Squashed commit of the following:

commit ff469c3899baa5f1324ef62a23474194f5234874
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sun Feb 12 08:36:39 2023 -0800

    Detect OS update

commit ce8449ecbd123502e02cee05834b62fb989cf145
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sun Feb 12 01:37:21 2023 -0800

    Installer GUI

commit d991c16d3a235bc43261282332506e8ea1b8776d
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sat Feb 11 13:55:53 2023 -0800

    [ubuntu18.04] Update documentation + legacy: solves paparazzi#2987

commit 33b4126bc0813390f8179dfd40007a2ebfd7cd2b
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sun Feb 12 15:10:31 2023 +0100

    Different IVY

commit 8bb42f1818c92d0e9e1586fe69433268492556d4
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sun Feb 12 15:05:50 2023 +0100

    Extra for NatNet

commit 118effb7e0a0e808ffffde42f3d03173e735fa3d
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Sun Feb 12 14:30:31 2023 +0100

    Removed user prompts

commit e83f323d9fa8498ffc9576211c669f8384912787
Author: Christophe De Wagter <dewagter@gmail.com>
Date:   Fri Jan 6 22:43:16 2023 +0100

    [install] Ease installation with a GUI that automatically adapts to the OS

    Installer GUI

    Wait ready + typo

    GO

commit cd5e2b625ed5e7e5bdcaa45d06bff9a7fe438d54
Author: Fabien-B <fabien.bonneval@gmail.com>
Date:   Sat Feb 11 17:55:41 2023 +0100

    Update targets only. (paparazzi#2983)
dewagter added a commit that referenced this issue Feb 13, 2023
FlorianSan pushed a commit to enacuavlab/paparazzi that referenced this issue May 30, 2023
dewagter added a commit that referenced this issue Sep 21, 2023
* [c++17] Increase the C++ standard to 2017 (#2992)

* [ubuntu18.04] Update documentation + legacy: solves #2987 (#2990)

Fix for newer ubuntus

* Wider range of orange, so it avoids rather too much than too little to start with.

* [ubuntu22] Silent warnings and fix compile errors

* Silent compile warnings

* [install] Ease installation with a GUI (#2991)

* [install] Ease installation with a GUI that automatically adapts to the OS

---------

Co-authored-by: Fabien-B <fabien.bonneval@gmal.com>

* [supervision] Fix session save programs. (#2999)

Arguments like "-ac a b" was previously parsed as "-ac b".

---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
Co-authored-by: Fabien-B <fabien.bonneval@gmal.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants