potassco / plingo

🍀 A system for probabilistic reasoning in clingo
MIT License
15 stars 2 forks source link

Installation does not work #16

Closed domoritz closed 2 years ago

domoritz commented 2 years ago
conda install -c potassco plingo
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - plingo

Current channels:

  - https://conda.anaconda.org/potassco/osx-arm64
  - https://conda.anaconda.org/potassco/noarch
  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/osx-arm64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-arm64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
pip install plingo
Looking in indexes: https://pypi.python.org/simple
ERROR: Could not find a version that satisfies the requirement plingo (from versions: none)
ERROR: No matching distribution found for plingo

This is with Python 3.10.4 in a condo environment. I am on an M1 Mac.

zhunyoung commented 2 years ago

I met the same error messages for the 2 commands on Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-143-generic x86_64). I'm using a conda environment with Python 3.7.13.

$ conda install -c potassco plingo
$ pip install plingo

I succeeded in installing this package from the source but met another error message.

$ plingo examples/lpmln/birds.plp --frontend lpmln-alt
*** ERROR: (plingo): In context '<plingo>': unknown option: 'frontend'
*** Info : (plingo): Try '--help' for usage information
nrueh commented 2 years ago

Hey, sorry for the late reply. The following two commands should be working soon...

$ conda install -c potassco plingo
$ pip install plingo

Until then, the package can be installed with (I am not sure about the conda command at the moment)

pip install --extra-index-url https://test.pypi.org/simple/ --upgrade plingo-solver

When installing like this the --frontend option should also work

rkaminsk commented 2 years ago

The release package are out now. To install development packages you can use (including @nrueh suggestion):

# conda
conda install -c potassco/label/dev plingo
# pip
pip install --extra-index-url https://test.pypi.org/simple/ --upgrade plingo-solver
# ubuntu
sudo add-apt-repository ppa:potassco/wip
sudo apt install python3-plingo

And for releases:

# conda
conda install -c potassco plingo
# pip
pip install --upgrade plingo
# ubuntu
sudo add-apt-repository ppa:potassco/stable
sudo apt install python3-plingo