0

I have a Python script that uses the pydblite database library. when I run the code once the database is created and records added. if I run the code again an error is generated..Help

Code

db = Base('Storys.pdl')
db.create('FeatureID', 'StoryID', 'Passed', 'Failed', 'Unexecuted', 'Deferred', 'Blocked', mode="open")    
db.insert("123", "456", 0, 0, 0, 0, 0)
db.insert("123", "456", 0, 0, 0, 0, 0)
db.commit()
print len(db)
for r in db:
    print r
    print db.exists()

error on second running;

 File "build\bdist.win32\egg\pydblite\pydblite.py", line 277, in insert
AttributeError: '_BasePy2' object has no attribute 'field_values'

1 Answer 1

0

This is a bug which has been fixed in version 3.0.1. See the changelog

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.