{"action":"created","issue":{"url":"https://api.github.com/repos/probcomp/bayeslite/issues/407","repository_url":"https://api.github.com/repos/probcomp/bayeslite","labels_url":"https://api.github.com/repos/probcomp/bayeslite/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/probcomp/bayeslite/issues/407/comments","events_url":"https://api.github.com/repos/probcomp/bayeslite/issues/407/events","html_url":"https://github.com/probcomp/bayeslite/issues/407","id":153675352,"number":407,"title":"Error at bayeslite.bayesdb_open(bdb_path, builtin_metamodels=False)","user":{"login":"leocasarsa","id":11274668,"avatar_url":"https://avatars.githubusercontent.com/u/11274668?v=3","gravatar_id":"","url":"https://api.github.com/users/leocasarsa","html_url":"https://github.com/leocasarsa","followers_url":"https://api.github.com/users/leocasarsa/followers","following_url":"https://api.github.com/users/leocasarsa/following{/other_user}","gists_url":"https://api.github.com/users/leocasarsa/gists{/gist_id}","starred_url":"https://api.github.com/users/leocasarsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leocasarsa/subscriptions","organizations_url":"https://api.github.com/users/leocasarsa/orgs","repos_url":"https://api.github.com/users/leocasarsa/repos","events_url":"https://api.github.com/users/leocasarsa/events{/privacy}","received_events_url":"https://api.github.com/users/leocasarsa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/probcomp/bayeslite/labels/blocked","name":"blocked","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-08T20:18:25Z","updated_at":"2016-05-08T20:21:42Z","closed_at":null,"body":"My code:\r\n```\r\nimport os\r\nos.environ['BAYESDB_WIZARD_MODE'] = '1'\r\n\r\nimport bayeslite\r\nfrom bayeslite.read_pandas import bayesdb_read_pandas_df\r\n\r\nimport bdbcontrib\r\nfrom bdbcontrib import quickstart\r\n\r\nimport gpmcc_metamodel\r\n\r\nbdb_path = './tmp/test/'\r\nwith bayeslite.bayesdb_open(bdb_path) as bdb:\r\n```\r\nError:\r\n```\r\nIn [10]: ---------------------------------------------------------------------------\r\nCantOpenError                             Traceback (most recent call last)\r\n<ipython-input-10-b6062b6af811> in <module>()\r\n----> 1 __pyfile = open('''/tmp/py1764LVV''');exec(compile(__pyfile.read(), '''/home/leo/Git/Share/gusto/gpmcc_beta/gen_test_bdb.py''', 'exec'));__pyfile.close()\r\n\r\n/home/leo/Git/Share/gusto/gpmcc_beta/gen_test_bdb.py in <module>()\r\n     11 \r\n     12 bdb_path = '/tmp/test/'\r\n---> 13 with bayeslite.bayesdb_open(bdb_path, builtin_metamodels=False) as bdb:\r\n     14     bdb.sql_execute('CREATE TABLE data (x INTEGER)')\r\n     15     bdb.sql_execute('INSERT INTO data VALUES (1), (2), (3)')\r\n\r\n/home/leo/venv/20160507-scalpbdb/local/lib/python2.7/site-packages/bayeslite/bayesdb.pyc in bayesdb_open(pathname, builtin_metamodels, seed, version, compatible)\r\n     54         builtin_metamodels = True\r\n     55     bdb = BayesDB(bayesdb_open_cookie, pathname=pathname, seed=seed,\r\n---> 56         version=version, compatible=compatible)\r\n     57     if builtin_metamodels:\r\n     58         metamodel.bayesdb_register_builtin_metamodels(bdb)\r\n\r\n/home/leo/venv/20160507-scalpbdb/local/lib/python2.7/site-packages/bayeslite/bayesdb.pyc in __init__(self, cookie, pathname, seed, version, compatible)\r\n     78             pathname = \":memory:\"\r\n     79         self.pathname = pathname\r\n---> 80         self._sqlite3 = apsw.Connection(pathname)\r\n     81         self.txn_depth = 0\r\n     82         self.metamodels = {}\r\n\r\nCantOpenError: CantOpenError: unable to open database file\r\n```"},"comment":{"url":"https://api.github.com/repos/probcomp/bayeslite/issues/comments/217743852","html_url":"https://github.com/probcomp/bayeslite/issues/407#issuecomment-217743852","issue_url":"https://api.github.com/repos/probcomp/bayeslite/issues/407","id":217743852,"user":{"login":"leocasarsa","id":11274668,"avatar_url":"https://avatars.githubusercontent.com/u/11274668?v=3","gravatar_id":"","url":"https://api.github.com/users/leocasarsa","html_url":"https://github.com/leocasarsa","followers_url":"https://api.github.com/users/leocasarsa/followers","following_url":"https://api.github.com/users/leocasarsa/following{/other_user}","gists_url":"https://api.github.com/users/leocasarsa/gists{/gist_id}","starred_url":"https://api.github.com/users/leocasarsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leocasarsa/subscriptions","organizations_url":"https://api.github.com/users/leocasarsa/orgs","repos_url":"https://api.github.com/users/leocasarsa/repos","events_url":"https://api.github.com/users/leocasarsa/events{/privacy}","received_events_url":"https://api.github.com/users/leocasarsa/received_events","type":"User","site_admin":false},"created_at":"2016-05-08T20:21:42Z","updated_at":"2016-05-08T20:21:42Z","body":"Investigation\r\n```\r\nIn [11]: bayeslite.bayesdb_open('foo.bdb')\r\nOut[18]: <bayeslite.bayesdb.BayesDB at 0x7f89e63a67d0>\r\n```\r\nworks alright."}}