-
Notifications
You must be signed in to change notification settings - Fork 21
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
TypeError: unhashable type: 'Constant' in print_instance() #69
Comments
Thanks Emil - Now that we raise a |
Thanks for the quick fix. Is there any way I can subscribe to the pypi releases so I know when there is a new release pushed to try in my system? |
Good question - I have never seen anything like that, but it seems there's a few not-so-direct ways of doing that: https://stackoverflow.com/questions/17395151/how-can-i-subscribe-to-updates-of-a-package-on-pypi. That said, at the moment we don't have a clear/strict policy on when to update new releases to pypi. Ideally we'd want to automatically package&publish each new bugfix release, but we're not there yet.
Or use these git-based handles on your |
Worry with that is that there's a potential for build breakage every time there's a new push, so ideally I would like to only pull big releases/be able to pin the version after testing it. I will monitor the releases and do some manual testing before switching from our local version to the pypi version that incorporates this fix once it is available. Thanks! |
If this helps, you can also pin down a particular commit ID from the repo to avoid the problem you're describing, and update that ID only when desired. This is e.g. the relevant portion of the
If that doesn't work let me know and I'll push the new version to pypi, it's just 5 minutes ;-) |
(Forgot to mention, but there's similary syntax for |
Ah yeah, think I actually did that before but then forgot about it... I'll give it a try, thanks again. |
Just for the record, the newly-uploaded version |
When print_instance receives a non-None constant_objects argument, it tries to create a set of Constants here:
https://github.com/aig-upf/tarski/blob/master/src/tarski/io/fstrips.py#L181
this fails because class Constant has
hash()
defined but not__hash__()
.The text was updated successfully, but these errors were encountered: