Skip to content

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

Open

Description

@mhennessy8

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.

Activity

  1. basels commented on Jun 3, 2022

    @basels

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions