dupeguru icon indicating copy to clipboard operation
dupeguru copied to clipboard

Install under mint 19.3 not possible

Open wolfgang-58 opened this issue 2 years ago • 4 comments

Good Morning unfortunately it is not possible to install the ppa under mint 19.3. Even one with >make< doesn't work. Is there a solution for this? Thanks! greeting wolfgang

wolfgang@Atlas ~/src/dupeguru $ python3.7 -V
Python 3.7.9
wolfgang@Atlas ~/src/dupeguru $ make && make run
Makefile:57: *** "Python 3.7+ required. Aborting.".  Schluss.
wolfgang@Atlas ~/src/dupeguru $ sudo apt install dupeguru
[sudo] Passwort für wolfgang:       
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 dupeguru : Hängt ab von: python3 (>= 3.7) aber 3.6.7-1~18.04 soll installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.

wolfgang-58 avatar May 25 '22 10:05 wolfgang-58

It looks like your system has python3 as 3.6.7 and you have an additional python python3.7?

The install from PPA will check the python3 package version effectively. You can build from source using python3.7 to create a venv. The makefile can use a different python by setting PYTHON before calling it, or you can build by following the instructions at https://github.com/arsenetar/dupeguru#building-without-make, which can be done with python3.7.

arsenetar avatar May 26 '22 02:05 arsenetar

Ubuntu Bionic here. I can't upgrade from my current version to latest:

$ apt-cache policy dupeguru
dupeguru:
  Instal·lat: 4.2.0-1~ppa~bionic1
  Candidat:   4.2.1-2~ppa~bionic1
  Taula de versió:
     4.2.1-2~ppa~bionic1 500
        500 http://ppa.launchpad.net/dupeguru/ppa/ubuntu bionic/main amd64 Packages
 *** 4.2.0-1~ppa~bionic1 100
        100 /var/lib/dpkg/status

When I attempt to apt install, it errors with:

Els següents paquets tenen dependències sense satisfer:
 dupeguru : Depèn: python3 (>= 3.7) però s'instal·larà 3.6.7-1~18.04

Even installing the python3.7 package available for my OS version from Ubuntu's repos does not work, since dupeguru package depends on python3 package, which on my OS depends on python3.6.

Package: python3
Version: 3.6.7-1~18.04
Priority: important
Section: python
Source: python3-defaults
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Matthias Klose <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 191 kB
Provides: python3-profiler
Pre-Depends: python3-minimal (= 3.6.7-1~18.04)
Depends: python3.6 (>= 3.6.7-1~), libpython3-stdlib (= 3.6.7-1~18.04)
Suggests: python3-doc (>= 3.6.7-1~18.04), python3-tk (>= 3.6.7-1~), python3-venv (>= 3.6.7-1~18.04)
Replaces: python3-minimal (<< 3.1.2-2)
Homepage: https://www.python.org/
Task: minimal, ubuntu-core
Cnf-Extra-Commands: python
Cnf-Priority-Bonus: 5
Supported: 5y
Download-Size: 47,2 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
Description: lenguaje interactivo de alto nivel orientado a objetos (versión predeterminada python3)
 Python es un lenguaje de alto nivel, interactivo y orientado a objetos que
 incluye una extensa biblioteca de clases con un montón de ayudas para
 programas de red, administración del sistema, sonidos y gráficos.
 .
 This package is a dependency package, which depends on Debian's default
 Python 3 version (currently v3.6).

@arsenetar I guess, wouldn't it be enough to depend on python3.7 instead of python3?

Package: python3.7
Version: 3.7.5-2ubuntu1~18.04.2
Priority: optional
Section: universe/python
Origin: Ubuntu
Maintainer: Ubuntu Core Developers <[email protected]>
Original-Maintainer: Matthias Klose <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 435 kB
Depends: python3.7-minimal (= 3.7.5-2ubuntu1~18.04.2), libpython3.7-stdlib (= 3.7.5-2ubuntu1~18.04.2), mime-support
Suggests: python3.7-venv, python3.7-doc, binutils
Breaks: python3-all (<< 3.6.5~rc1-1), python3-dev (<< 3.6.5~rc1-1), python3-venv (<< 3.6.5-2)
Download-Size: 301 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
Description: Interactive high-level object-oriented language (version 3.7)
 Python is a high-level, interactive, object-oriented language. Its 3.7 version
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.

pataquets avatar Jun 13 '22 17:06 pataquets

@pataquets, depending on python3.7 I believe would cause issues on systems using newer versions of python3 (such as 3.8 as they would not be installed under that package). There might be a way to use python3.7 as an alternative package. I will look into that to see if that is a viable solution.

arsenetar avatar Jun 13 '22 23:06 arsenetar

Looks like its not quite as simple as adding the alternative package either. I have verified you can build it from source with python3.7 on 18.04 and run it. There are additional packages that cause issues as all the dependencies would need to be fetched for python3.7 instead of python3, and it seems there are not packages for those as well. I don't see a good way to install dupeguru via apt on 18.04 due to these. Seems like the best option is building and running from a python3.7 venv.

arsenetar avatar Jun 14 '22 01:06 arsenetar