Error while importing u1db-qt created db using python-u1db module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Client Developer Experience |
Confirmed
|
Low
|
Zoltan Balogh | ||
U1DB |
New
|
Undecided
|
Unassigned | ||
U1DB Qt/ QML |
New
|
Undecided
|
Unassigned | ||
Utudu |
New
|
Undecided
|
Unassigned |
Bug Description
Dear all,
I am trying to process the u1db database which was created by the utudu Ubuntu touch application using the python-u1db module.
The Utudu Ubuntu touch application (https:/
import U1db 1.0 as U1db
...
// Setup the database
U1db.Database {
id: db
path: "utudu.u1db"
}
property var db_settings_
"theme": "Gray"
}
// Declare a document
U1db.Document {
database: db
docId: "settings"
id: settings
create: true
defaults: db_settings_
}
....
I tried to import and analyze the Utudu database file which is located in ~/.local/
import u1db
db = u1db.open(
and getting the following error messages:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
path, create=create, document_
File "/usr/lib/
sqlite_file, document_
File "/usr/lib/
v, err = cls._which_
File "/usr/lib/
return c.fetchone()[0], None
TypeError: 'NoneType' object has no attribute '__getitem__'
Please note that this error only occurs if I use a database file which was created by using the u1db-qt package.
Furthermore, it is possible to open the utudu.u1db database file using the python-sqlite3 module.
I attach an example utudu.u1db file if you want to debug the behaviour yourself.
Thanks
Changed in canonical-developer-experience: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
status: | New → Confirmed |
Are there any news on this bug?
Since many apps in Ubuntu Touch are relying on the U1DB it is IMHO really a big obstacle. Especially since I would like to access the U1DB to write a synchronisation python script which would sync the contents of a note app to owncloud.