You are not logged in.

#1 2020-12-25 01:36:52

Komisch
Member
Registered: 2018-05-30
Posts: 43

Install aur/cplex with python 3.7.x

I am trying to install CPLEX with the dependency python 3.7.x to do so I created a virtualenv, accessed it and executed the makepg -si

git clone https://aur.archlinux.org/cplex.git
cd cplex
virtualenv3 venv --python=/usr/bin/python3.7
source venv/bin/activate
makepkg -si

as result I receive:

==> Making package: cplex 12.10-2 (Fri 25 Dec 2020 02:34:21 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
error: target not found: python<3.8
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> python<3.8
==> ERROR: Could not resolve all dependencies.

python --version gives:

Python 3.7.9

Could you explain to me what I am doing wrong?

Thank you very much in advance for your help!

Offline

#2 2020-12-25 02:51:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,246

Re: Install aur/cplex with python 3.7.x

Adjust the pkgbuild and drop the explicit package version check.

Offline

#3 2020-12-25 02:51:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,106
Website

Re: Install aur/cplex with python 3.7.x

The error is clear: the package you are trying to build lists as a dependency a python package with a verion less than 3.8.  You may have a virtualenv with python 3.7, but there is no package providing the dependency (as the virtualenv, almost by definition, is not packaged).  Use the python37 package for this.

EDIT: sorry, it seems the AUR package python37 does not actually "provide" python ... which is silly and should be fixed.

Last edited by Trilby (2020-12-25 13:29:32)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2020-12-25 08:51:27

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,201
Website

Re: Install aur/cplex with python 3.7.x

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2020-12-25 11:00:16

Komisch
Member
Registered: 2018-05-30
Posts: 43

Re: Install aur/cplex with python 3.7.x

The error is clear: the package you are trying to build lists as a dependency a python package with a verion less than 3.8.  You may have a virtualenv with python 3.7, but there is no package providing the dependency (as the virtualenv, almost by definition, is not packaged).  Use the python37 package for this.

I have of course installed the python37 aur package before.

Adjust the pkgbuild and drop the explicit package version check.

For the cplex package it is known, that it only builds with python 3.7.x. Will the build process then run with pyhton 3.7?

Offline

#6 2020-12-25 11:26:06

Komisch
Member
Registered: 2018-05-30
Posts: 43

Re: Install aur/cplex with python 3.7.x

It did work to just disable the version check. I also had to skip the validation process (md5sum) afterwards since the current version 20.10 is different from 12.10.2 for which the PKGBUILD has been written. Thank you for your support!

Offline

#7 2020-12-25 11:27:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,246

Re: Install aur/cplex with python 3.7.x

Assuming your general env is set up like indicated in the first post that should be what's happening yes. Otherwise you'll want to actually check the pkgbuild and ensure any python binaries called there explicitly refer to their 3.7 equivalents.

Offline

#8 2020-12-27 16:49:42

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,936

Re: Install aur/cplex with python 3.7.x

The AUR package should be updated to make/depend on python37, and invoke `python3.7 setup.py install`.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB