Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Issues with 'pip install unified-planning[engines]' on manjaro #634

Open
Core5563 opened this issue Oct 10, 2024 · 1 comment

Comments

@Core5563
Copy link

Describe the bug
When installing unified_planning (on Manjaro) on an virtual environment with the command
'pip install unified-planning[engines]'
the installation defaults back to unified-planning version 0.4.0
Trying to force version 1.1.0 with
"pip install 'unified-planning[engines]==1.1.0'"
gives the following errors:
ERROR: Ignored the following yanked versions: 0.0.1, 0.0.4.0, 0.0.4.1
ERROR: Could not find a version that satisfies the requirement up-lpg==0.0.10; extra == "engines" (from unified-planning[engines]) (from versions: none)
ERROR: No matching distribution found for up-lpg==0.0.10; extra == "engines"

To Reproduce
Steps to reproduce the behavior:
All done in one Terminal session:

  1. make new project directory: mkdir unified-planning-test
  2. go into project directory: cd unified-planning-test
  3. set up virtual environment: python3 -m venv .venv
  4. activate virtual environment: source .venv/bin/activate
  5. install unified_planning: pip install 'unified-planning[engines]'
  6. see version: pip list
    or
    steps 1. - 4. same as above
  7. install unified_planning: pip install 'unified-planning[engines]==1.1.0'

Expected behavior
I expected the newest version with all available planners installed.

Screenshots
output of 'pip list' after "pip install 'unified-planning[engines]'":
Package Version


graphviz 0.20.3
networkx 3.3
pip 24.2
pyparsing 3.1.4
unified-planning 0.4.0

Desktop (please complete the following information):
OS: ManjaroLinux 24.1.1 Xahea
Python: Python 3.12.6

Additional context
The problem is probably somewhere with the LPG engine (package 'up-lpg').
if i install the planning engines separately with the commands:
pip install unified-planning[Fast-Downward]
pip install unified-planning[ENHSP]
pip install unified-planning[Tamer]
pip install unified-planning[Aries]
pip install unified-planning[Pyperplan]
then the correct version of unified planning is installed (albeit not with the lpg engine).
After that the output of 'pip list' is:
Package Version


ConfigSpace 1.2.0
grpcio 1.66.2
grpcio-tools 1.66.2
iniconfig 2.0.0
more-itertools 10.5.0
networkx 3.3
numpy 2.1.2
packaging 24.1
pip 24.2
pluggy 1.5.0
protobuf 5.28.2
pyparsing 3.1.4
pyperplan 2.1
pytamer 0.1.19
pytest 8.3.3
scipy 1.14.1
setuptools 75.1.0
typing_extensions 4.12.2
unified-planning 1.1.0
up_aries 0.3.4
up-enhsp 0.0.27
up-fast-downward 0.4.1
up-pyperplan 1.1.0
up-tamer 1.1.3
wheel 0.44.0

Additionally i tried 'pip cache purge' with no success.
Also installing up-lpg separately via git with "pip install ‘git+https://github.com/aiplan4eu/up-lpg’" did install up_lpg,
but after "pip install 'unified-planning[engines]'" the same behavior occurs.

@mikand
Copy link
Member

mikand commented Oct 10, 2024

@Core5563 Thanks for the report!

As you can see here, up-lpg is distributed for a limited number of python versions and architectures, in particular, they currently do not support python 3.12 (even though I expect there should be no issue in the source code to run on 3.12, hence installing manually from git seems to work).

@IvanSerina maybe you can add python 3.12 in the up-lpg distribution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants