Open PaoloPangallo opened 3 months ago
I don't think this has anything to do with clingo. It might be that you have to use an older version. I'll transfer the issue to the asprin repo.
Yes @PaoloPangallo , you are right! We are just restarting to refactor asprin, but AFAIK it works fine in the settings given in the README:
asprin has been tested with Python 2.7.13 and 3.5.3, using clingo 5.4.0.
I have issues installing your configuration because clingo 5.4.0 doesnt work with the python version given, what do you suggest?
I have issues installing your configuration because clingo 5.4.0 doesnt work with the python version given, what do you suggest?
I would use at least python 3.8. Anything before is end of life. Most likely asprin will work with that too.
I'm afraid we need to wait for this until @javier-romero is. Ack from vacation
Hi @PaoloPangallo,
I am not sure about what is the problem in your case.
In my machine it works well with the versions of the README. For example, using conda:
conda create -n asprin -c conda-forge -c potassco python=3.5.3 clingo=5.4.0 asprin
These other installations (with other Python versions) should also work:
conda create -c potassco -n asprin python=3.7 clingo=5.4 asprin=3.1
conda create --strict-channel-priority -c conda-forge -c potassco -n asprin python=3.9 clingo=5.4 asprin=3.1
I have clingo 5.7.1 and asprin 3.1.0 and it seems that I can t run asprin proprerly
the same error shows up when i try to run the followingcode on pycharm :
import sys print("Python version:") print(sys.version)
try: import clingo print("Clingo imported successfully") print("Clingo version:") print(clingo.version) except ImportError as e: print("Failed to import clingo:", e)
import subprocess
def run_asprin(): try: result = subprocess.run(['asprin', '--version'], capture_output=True, text=True, check=True) print("Asprin ok, output:") print(result.stdout) except subprocess.CalledProcessError as e: print("Error:", e) print("stdout:", e.stdout) print("stderr:", e.stderr) except Exception as e: print("Unexpected error", e)
# run_asprin()