Skip to content

APT Update to 0.13 fails with requirement for Python 3.9, when system uses 3.10 #6154

Closed

Description

@bhotrock

Deployment Method

  • Installer
  • Docker Development
  • Docker Production
  • Bare metal Development
  • Bare metal Production
  • Digital Ocean image
  • Other (please provide a link Steps to Reproduce

Describe the problem*

As very well documented in issue #6139, (closed by the submitter), the requirements for python3.9, python3.9-venv, and python3.9-dev prohibit using the command: apt install --only-upgrade inventree on systems that are running python3.10, such as Ubuntu 22.04. It seems to ME that if a system running 0.12.8 works okay with python3.10, then we should be able to upgrade to 0.13. However, I'm not a programmer. :-) I'm wondering if the requirement for python3.9 was to avoid installation on python3.8 systems, or if it was intended to also avoid python3.10.

Steps to Reproduce

  1. Running Inventree 0.12.8, originally installed using the Installer Script, on Ubuntu 22.04 with python3.10.
  2. Attempted update to Inventree to version 0.13 using apt install --only-update inventree which had been used successfully to update to 0.12.8.
  3. Update was not possible due to dependencies for python3.9

Relevant log output

apt install --only-upgrade inventree
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 inventree : Depends: python3.9 but it is not installable
             Depends: python3.9-venv but it is not installable
             Depends: python3.9-dev but it is not installable
E: Unable to correct problems, you have held broken packages.

Activity

  1. added
    question
    setup
    triage:not-checked
    on Jan 3, 2024
  2. SchrodingersGat commented on Jan 10, 2024

    @SchrodingersGat
    Member

    It seems like the .pkgr.yml file is the culprit here, forcing 3.9. Currently 3.9 to 3.11 are "known good".

    @matmair is there a path forward here to loosen the python version requirements for the installer?

  3. matmair commented on Jan 10, 2024

    @matmair
    Member

    I am unaware of built-in tooling for this. A common solution would be to release different packages for different python versions.
    The "problem" is that the generic package (ex python3-venv) is pointing to Python 3.8 on Ubuntu 20.04 LTS - so it would fail in the setup steps.

  4. added
    bug
    and removed
    triage:not-checked
    question
    on Jan 10, 2024
  5. added this to the 0.14.0 milestone on Jan 10, 2024
  6. removed this from the 0.14.0 milestone on Feb 15, 2024
  7. erikpt commented on Feb 29, 2024

    @erikpt

    I've never built a packager deployment myself, but I'm having the same issue as op. After a bunch of reading about packager, could this be fixed with a yaml array for the python dependency?

    replace

    python3.9
    python3.9-venv
    python3.9-dev
    

    with

    "python3.9 | python3.10 | python3.11"
    "python3.9-venv | python3.10-venv | python3.11-venv"
    "python3.9-dev | python3.10-dev | python3.11-dev"
    

    Source: dependencies section on this page: https://doc.packager.io/documentation/customizing-the-build/

  8. added a commit that references this issue on Feb 29, 2024
  9. SchrodingersGat commented on Feb 29, 2024

    @SchrodingersGat
    Member

    @erikpt nice spot, worth a try? #6608

  10. added this to the 0.14.0 milestone on Feb 29, 2024
  11. added a commit that references this issue on Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginstallersetup

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions