Title: sqlite3 fails on python3 RISC OS · Issue #19 · c-jo/cpython · GitHub
Open Graph Title: sqlite3 fails on python3 RISC OS · Issue #19 · c-jo/cpython
X Title: sqlite3 fails on python3 RISC OS · Issue #19 · c-jo/cpython
Description: Please accept my my apologies if this is not the correct place to report a problem with RISC OS Python. Gerph suggested I post this to "issues" The following python script runs to completion on Linux and creates a database file "test_db"...
Open Graph Description: Please accept my my apologies if this is not the correct place to report a problem with RISC OS Python. Gerph suggested I post this to "issues" The following python script runs to completion on Lin...
X Description: Please accept my my apologies if this is not the correct place to report a problem with RISC OS Python. Gerph suggested I post this to "issues" The following python script runs to complet...
Opengraph URL: https://github.com/c-jo/cpython/issues/19
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sqlite3 fails on python3 RISC OS","articleBody":"Please accept my my apologies if this is not the correct place to report a problem with RISC OS Python. \r\nGerph suggested I post this to \"issues\"\r\n\r\n\r\nThe following python script runs to completion on Linux and creates a database file \"test_db\" in the same directory as the script.\r\n\u003cpre\u003e\u003ccode\u003e\r\nimport sqlite3\r\ncon = sqlite3.connect('test_db')\r\ncur = con.cursor()\r\ncur.execute(\"CREATE TABLE tab1 (name, phone)\")\r\ncur.execute(\"INSERT INTO tab1 VALUES('Bob',1234)\")\r\ncon.close()\r\nprint(\"reached end of script\")\r\n\u003c/code\u003e\u003c/pre\u003e\r\nOn RISC OS Python3 the same code fails with error:-\r\n\u003cpre\u003e\u003ccode\u003e\r\n File \"testSQL/py\", line 4, in \u003cmodule\u003e\r\n cur.execute(\"CREATE TABLE tab1 (name, phone)\")\r\n sqlite3.DatabaseError: file is not a database\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\nIt does create a file but it does not put it in the same directory as the python script, but in the parent directory. It also mangles the name.\r\nThe created file has the parent directory name appended to it using a / separator.\r\nEg the script file is \"testSQL/py\" in directory \"sqlite\"\r\nThe new database file is not in \"sqlite\", but in the directory above and has a filename of \"sqlite/test_db\"\r\nIt looks as if the unix to RISC OS file conversion algorithm is going wrong.\r\n\r\n","author":{"url":"https://github.com/riscman","@type":"Person","name":"riscman"},"datePublished":"2021-05-18T17:29:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/19/cpython/issues/19"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:567ce07d-b3a6-7657-9ebc-74f6f2003cbc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B410:89F46:BA470B:F0A09F:69928FD7 |
| html-safe-nonce | b3ea030723517f49d05895c6fee0aaa9f9fa478e02e23accb8bec6311854e233 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDEwOjg5RjQ2OkJBNDcwQjpGMEEwOUY6Njk5MjhGRDciLCJ2aXNpdG9yX2lkIjoiNjM5MDI5MzQ0Mjc0OTE3MzcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ea1da2489c3b6f4c8353614808a4fbe08d3518d6a6a6f0e7f2b785df32504dc7 |
| hovercard-subject-tag | issue:894613900 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/c-jo/cpython/19/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d40466ce3080ab5f19cd3fc6040ab192142eefeeba8a760398439d4e33614e9/c-jo/cpython/issues/19 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d40466ce3080ab5f19cd3fc6040ab192142eefeeba8a760398439d4e33614e9/c-jo/cpython/issues/19 |
| og:image:alt | Please accept my my apologies if this is not the correct place to report a problem with RISC OS Python. Gerph suggested I post this to "issues" The following python script runs to completion on Lin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | riscman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/c-jo/cpython git https://github.com/c-jo/cpython.git |
| octolytics-dimension-user_id | 1500011 |
| octolytics-dimension-user_login | c-jo |
| octolytics-dimension-repository_id | 218255957 |
| octolytics-dimension-repository_nwo | c-jo/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 81598961 |
| octolytics-dimension-repository_parent_nwo | python/cpython |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width