Can not create a new database

Bug #907710 reported by Thomas Bechtold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
U1DB
Won't Fix
Undecided
Unassigned

Bug Description

Hi,

i use precise (i386) with python 2.7 and sqlite3 installed and can not create a new database as decribed at [1]. Steps to reproduce:

1) bzr branch lp:u1db
2) cd u1db
3) python
4) import u1db
5) db = u1db.open("~/u1test.db", True)

Then i get:
>>> db = u1db.open("~/u1test.db", True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "u1db/__init__.py", line 33, in open
    return sqlite_backend.SQLiteDatabase.open_database(path, create=create)
  File "u1db/backends/sqlite_backend.py", line 92, in open_database
    return backend_cls(sqlite_file)
  File "u1db/backends/sqlite_backend.py", line 39, in __init__
    self._db_handle = dbapi2.connect(sqlite_file)
sqlite3.OperationalError: unable to open database file

[1] http://people.canonical.com/~aquarius/u1db-docs/reference-implementation.html#reference-implementation

Rick McBride (rmcbride)
Changed in u1db:
status: New → Triaged
Revision history for this message
John A Meinel (jameinel) wrote :

We decided that if you want to create in ~ you can use "os.path.expanduser()" yourself, rather than doing it internally.

Changed in u1db:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.