Does Lazarus depend on Python? lazarus / 1-Linux ---------------------------------------------------------------------- jollytall · 2020-02-01 18:20 I had some problems with my Python environment, so I unistalled it. And then Lazarus disappeared too (honestly I did not check what else "apt-get remove" wanted to remove when ran it. Now I reinstalled Lazarus again, and got Python back. Why does Lazarus depend on Python, or do I misunderstand something? ---------------------------------------------------------------------- Handoko · 2020-02-01 18:38 Lazarus indirectly depends on Python. If I try to uninstall python3 package, I will be warned that will also uninstall libgdk-pixbuf2.0-dev, libglib2.0-dev, libgtk2.0-dev and some others. They are direct/indirectly required by Lazarus. https://forum.lazarus.freepascal.org/index.php/topic,45084.msg318076.h tml#msg318076 https://forum.lazarus.freepascal.org/index.php/topic,44585.msg313650.h tml#msg313650 ---------------------------------------------------------------------- Thaddy · 2020-02-02 09:31 1. If lazarus is installed through fpcdeluxe, this is the case since it does not touch and update the installed package library. 2. If lazarus is installed through a deb package - preferably from the distribution -  this issue should not exist. I have both Python 2.7 and Python 3.+ on my machine. If the second option is the case then it is a bug in the Python installer or the distribution provided lazarus installer. ---------------------------------------------------------------------- jollytall · 2020-02-02 17:35 Thanks. @Handoko: I am not sure I understand. The fact that Python and Lazarus both need some libraries should not mean that removing Python should remove Lazarus. It should remove Python and leave behind those libraries that might have been installed by Python but in the meantime somebody else (Lazarus in this case) also needs it. @Thaddy . I downloaded the .deb package (2.0.6). The one regular apt- get version is much older (1.6). Btw. is there a reason why there we do not have the latest stable version? ---------------------------------------------------------------------- lucamar · 2020-02-02 18:49 Quote from: jollytall on February 02, 2020, 06:35:37 pmThe one regular apt-get version is much older (1.6). Btw. is there a reason why there we do not have the latest stable version? It depends on the repository maintainers but the usual rationale behind those kind of decisions boils down to "if it ain't broke ...". When doing a release of a distro the packages making it up (both default and optional) are "frozen" for that release and don't ever change, unless some serious bug is discovered (and fixed) in which case the corresponding package is updated, but then only to a "fixes" build, almost never to a new version. That rationale and the problems it causes sometimes (as in this case) is why some distros adopted a "rolling release" paradigm: you get updated and upgraded packages at the cost of (almost) never being able to tell which "version" of the distro you're using. Nevetheless, no distro should be distributing a Lazarus 1.6 by now. Are you using a (relatively) old version of yours? ---------------------------------------------------------------------- Handoko · 2020-02-02 19:08 Quote from: jollytall on February 02, 2020, 06:35:37 pm@Handoko: I am not sure I understand. The fact that Python and Lazarus both need some libraries should not mean that removing Python should remove Lazarus. It should remove Python and leave behind those libraries that might have been installed by Python but in the meantime somebody else (Lazarus in this case) also needs it. You misunderstood what I said. Do you have Synaptic Package Manager installed? You can use that tool to inspect and learn any package/library. There, you will know Lazarus needs libgdk-pixbuf2.0-dev, libglib2.0-dev, libgtk2.0-dev. And those three libraries need Python. ---------------------------------------------------------------------- jollytall · 2020-02-03 08:56 @Handoko Indeed I misunderstood. It is clear now. Thanks. @lucamar I use Debian9 and when I open Synaptic, I see Lazarus 1.6.2. I run regularly apt-get update, so I guess it is the latest I can see there. ---------------------------------------------------------------------- lucamar · 2020-02-03 10:10 Quote from: jollytall on February 03, 2020, 09:56:46 amI use Debian9 and when I open Synaptic, I see Lazarus 1.6.2. I run regularly apt-get update, so I guess it is the latest I can see there. Debian 9 was released, IIRC, in Summer, 2017, so it was frozen some months earlier. They are notoriously conservative so instead of releasing the then new 1.6.4 they used the 1.6.2 I'm not sure (never use the distro's repos for Lazarus) but IIRC one could add "sid" to sources.list to get mostly up to date packages. I wouldn't recommend it, but the option is there (I think) ...