potassco / telingo

🕰️ A solver for temporal programs.
MIT License
22 stars 7 forks source link

AttributeError: module 'clingo.ast' has no attribute 'Transformer' #14

Closed ArdalanKhazraei closed 3 years ago

ArdalanKhazraei commented 3 years ago

Hello, when I try to run telingo-related commands on the Anaconda command prompt, I get the message below. Would you know how to solve this problem? Thanks in advance.

Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Scripts\telingo-script.py", line 5, in from telingo import main File "C:\Users\khazraei\AppData\Roaming\Python\Python37\site-packages\telingo__init__.py", line 13, in from . import transformers as _tf File "C:\Users\khazraei\AppData\Roaming\Python\Python37\site-packages\telingo\transformers__init__.py", line 70, in from . import program as _prg File "C:\Users\khazraei\AppData\Roaming\Python\Python37\site-packages\telingo\transformers\program.py", line 9, in from . import term as _tt File "C:\Users\khazraei\AppData\Roaming\Python\Python37\site-packages\telingo\transformers\term.py", line 14, in class TermTransformer(_ast.Transformer): AttributeError: module 'clingo.ast' has no attribute 'Transformer'

rkaminsk commented 3 years ago

There was a bug in the telingo 2.1.0 release. I already published a bugfix release. You can update with

pip install --upgrade telingo clingo