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

DB AssertionFInder connection() takes 0 positional arguments but 1 was given #323

Open
mhennessy8 opened this issue Mar 11, 2022 · 1 comment

Comments

@mhennessy8
Copy link

The last update to conceptnet5/db/query.py (b744e34) changed the "connection" attribute in the AssertionFinder class to be a property. However, the execution of line 231 cursor = self.connection.cursor() throws an error because the connection property is missing the self argument. This issue can be resolved easily by changing Line 128 def connection(): to def connection(self):.

As it stands, this bug breaks the master branch of conceptnet.

@basels
Copy link

basels commented Jun 3, 2022

I'm experiencing the same issue. @mhennessy8's solution indeed fixes this issue.

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