[New-bugs-announce] [issue25763] I cannot use absolute path in sqlite3 , python 2.7.9, windows

jingtao chen report at bugs.python.org
Sun Nov 29 12:02:23 EST 2015


New submission from jingtao chen:

I tried the way like here https://www.sqlite.org/c3ref/open.html#urifilenamesinsqlite3open but it is useless 

what I got is 

C:\Users\CJT-6220>python D:\NKUSearch\pr_cal\main.py
Traceback (most recent call last):
  File "D:\NKUSearch\pr_cal\main.py", line 7, in <module>
    conn = sqlite3.Connection('file:///D:/NKU.db')
sqlite3.OperationalError: unable to open database file


and I tried some other ways to write the URI but none of them works and PEP 249 did not mention anything about absolute path . So what can I do ?

----------
components: Windows
messages: 255581
nosy: jingtao chen, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: I cannot use absolute path in sqlite3 , python 2.7.9, windows
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25763>
_______________________________________


More information about the New-bugs-announce mailing list