Skip to content

Sqlobject store plugin error #7

@ghost

Description

jagg...@gmail.com, 2007-12-14T10:43:45.000Z

When executing the following code: 

plugin.get('sqlobject', Store)(id)

the following error occurs:

store = plugin.get('sqlobject', Store)(id)
File "build\bdist.win32\egg\rdflib\plugin.py", line 20, in get
File "build\bdist.win32\egg\rdflib\store\_sqlobject.py", line 34, in 
File "build\bdist.win32\egg\rdflib\store\_sqlobject.py", line 37, in Literals
NameError: name 'validators' is not defined

I'm using rdflib 2.4.0 on windows xp professional (and also tested on
windows vista).

We send the file as an attachment. 


Best regards

Comment 1 by eike...@gmail.com



Comment 2 by gjhigg...@gmail.com
Acquired dependency? The sqlobject store module now depends on Formencode's validators package.

from formencode import validators


Comment 3 by gjhigg...@gmail.com
As well as the formencode import, the version of SQLObject needs to match - SQLObject 0.7 works with the 
following diffs applied -- they need to be perused for sense.


Comment 4 by eik...@gmail.com



Comment 5 by eik...@gmail.com
The sqlobject store has been removed from rdflib proper.

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