←  [EN] Test Feedback

Forums

»

OpenPLi-py3

Beeker's Photo Beeker 6 Aug 2023

Working on it.

Quote

Beeker's Photo Beeker 7 Aug 2023

When next build is ready, re-install plugin or install python3-icalendar and python3-pytz.

Quote

Beeker's Photo Beeker 7 Aug 2023

https://github.com/O...lugins/pull/953


Edited by Beeker, 7 August 2023 - 13:24.
Quote

WanWizard's Photo WanWizard 7 Aug 2023

All merged.

Quote

Beeker's Photo Beeker 7 Aug 2023

Thanks.

Quote

Stan's Photo Stan 8 Aug 2023

Thanks for updating LCD4 Linux.

 

About the required python3-icalendar, when I manually install it from the feed, it installs two more packages, python3-pytz and python3-doctest. However, when I uninstall python3-icalendar, opkg leaves the other two packages on the box. Shoudn't these packages, that are now no longer needed, be removed automatically?


Edited by Stan, 8 August 2023 - 07:35.
Quote

Beeker's Photo Beeker 8 Aug 2023

No. That's the normal behavior AFAIK.

You need to remove the run-time dependencies explicitly.

It could be used by other packages.

 

Opkg has options like '--autoremove' and '--force-removal-of-dependent-packages', but that does work the other way around. It removes packages which 'python3-icalendar' using as runtime-dep.


Edited by Beeker, 8 August 2023 - 08:25.
Quote

Stan's Photo Stan 8 Aug 2023

The opkg option '--autoremove' does the job.

Quote

Stan's Photo Stan 8 Aug 2023

Does this mean that '--autoremove' should always be used when manually uninstalling a package?

 

The plugin manager seems to use '--autoremove' by default.


Edited by Stan, 8 August 2023 - 08:38.
Quote

Beeker's Photo Beeker 8 Aug 2023

root@gbtrio4k:~# opkg remove python3-icalendar --autoremove
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - package enigma2-plugin-extensions-lcd4linux-git5670+34ee252-r0.cortexa15hf-neon-vfpv4 requires python3-icalendar, but none of the providers can be installed
 *   - conflicting requests
 *   - problem with installed package enigma2-plugin-extensions-lcd4linux-git5670+34ee252-r0.cortexa15hf-neon-vfpv4
 * 
 * Solution 1:
 *   - allow deinstallation of enigma2-plugin-extensions-lcd4linux-git5670+34ee252-r0.cortexa15hf-neon-vfpv4


 * Solution 2:
 *   - do not ask to deinstall python3-icalendar

 *   - do not ask to deinstall python3-icalendar


root@gbtrio4k:~# opkg remove python3-icalendar --autoremove --force-depends
Removing python3-icalendar (4.0.6) from root...
root@gbtrio4k:~# opkg remove python3-pytz --autoremove --force-depends
Removing python3-pytz (2021.1) from root...
Removing python3-doctest (3.9.9) from root...

 

Quote

Stan's Photo Stan 8 Aug 2023

If you uninstall LCD4Linux manually, does it uninstall the depend packages?

Quote

Beeker's Photo Beeker 8 Aug 2023

If you uninstall LCD4Linux manually, does it uninstall the depend packages?

No.

oot@gbtrio4k:~# opkg remove enigma2-plugin-extensions-lcd4linux
Removing enigma2-plugin-extensions-lcd4linux (git5670+34ee252) from root...
root@gbtrio4k:~# 

 

Quote

Beeker's Photo Beeker 8 Aug 2023

root@gbtrio4k:~# opkg remove enigma2-plugin-extensions-lcd4linux --autoremove
Removing enigma2-plugin-extensions-lcd4linux (git5670+34ee252) from root...
Removing python3-image (3.9.9) from root...
Removing python3-mutagen (1.45.1) from root...
Removing python3-pillow (8.2.0) from root...
Removing python3-pyusb (1.1.1) from root...
Removing python3-simplejson (3.17.2) from root...
Removing openjpeg (2.4.0) from root...
Removing libusb-1.0-0 (1.0.24) from root...
Removing lcms (2.12) from root...
Removing libtiff5 (4.2.0) from root...
root@gbtrio4k:~# 

 

Quote

Beeker's Photo Beeker 8 Aug 2023

It is a bit confusing.

 

python3-pytz and python3-doctest are runtime-dependencies of python3-icalendar.

 

python3-pytz is a runtime dependency of lcd4linux plugin as well and python3-doctest not.


Edited by Beeker, 8 August 2023 - 08:58.
Quote

Stan's Photo Stan 8 Aug 2023

That means, you should not need to add python3-pytz as depend to LCD4Linux, because python3-icalendar will already install it.


Edited by Stan, 8 August 2023 - 09:09.
Quote

Beeker's Photo Beeker 8 Aug 2023

Yes that's correct. although It's not a big deal

 

The runtime dependencies need a cleanup anyway.

 

https://github.com/O...TROL/control#L6


Edited by Beeker, 8 August 2023 - 09:13.
Quote

Stan's Photo Stan 8 Aug 2023

Found a bug in LCD4Linux. Would you correct it if I send you a PM?

Quote

Beeker's Photo Beeker 8 Aug 2023

That's OK.

Quote

Beeker's Photo Beeker 8 Aug 2023

Although it's better to post bugs here, so others are aware of it and can help to fix it.

Quote