Title: 'SqliteMetadataStore' object has no attribute 'db' · Issue #21277 · python/mypy · GitHub
Open Graph Title: 'SqliteMetadataStore' object has no attribute 'db' · Issue #21277 · python/mypy
X Title: 'SqliteMetadataStore' object has no attribute 'db' · Issue #21277 · python/mypy
Description: When running mypy in CI with FreeBSD container (https://builds.sr.ht/~mcepl/job/1737686) I get this error: + cd m2crypto ++ readlink -f build/lib.freebsd-15.0-RELEASE-p5-amd64-cpython-311 + PYTHONPATH=/home/build/m2crypto/build/lib.freeb...
Open Graph Description: When running mypy in CI with FreeBSD container (https://builds.sr.ht/~mcepl/job/1737686) I get this error: + cd m2crypto ++ readlink -f build/lib.freebsd-15.0-RELEASE-p5-amd64-cpython-311 + PYTHONP...
X Description: When running mypy in CI with FreeBSD container (https://builds.sr.ht/~mcepl/job/1737686) I get this error: + cd m2crypto ++ readlink -f build/lib.freebsd-15.0-RELEASE-p5-amd64-cpython-311 + PYTHONP...
Opengraph URL: https://github.com/python/mypy/issues/21277
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'SqliteMetadataStore' object has no attribute 'db'","articleBody":"When running `mypy` in CI with FreeBSD container (https://builds.sr.ht/~mcepl/job/1737686) I get this error:\n\n```\n+ cd m2crypto\n++ readlink -f build/lib.freebsd-15.0-RELEASE-p5-amd64-cpython-311\n+ PYTHONPATH=/home/build/m2crypto/build/lib.freebsd-15.0-RELEASE-p5-amd64-cpython-311\n+ python3 -m mypy --no-color-output -p M2Crypto\nerror: INTERNAL ERROR -- Please try using mypy master on GitHub:\nhttps://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build\nIf this issue continues with mypy master, please report a bug at https://github.com/python/mypy/issues\nversion: 1.20.0\nnote: please use --show-traceback to print a traceback when reporting a bug\nException ignored in: \u003cfunction SqliteMetadataStore.__del__ at 0x1160822b2020>\nTraceback (most recent call last):\n File \"/usr/local/lib/python3.11/site-packages/mypy/metastore.py\", line 242, in __del__\n self.close()\n File \"/usr/local/lib/python3.11/site-packages/mypy/metastore.py\", line 236, in close\n if self.db:\n ^^^^^^^\nAttributeError: 'SqliteMetadataStore' object has no attribute 'db'\n```\n\n**To Reproduce**\n\n**Your Environment**\n\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\n\n- Mypy version used: 1.20.0\n- Mypy command-line flags: see above\n- Mypy configuration options from `mypy.ini` (and other config files):\n https://git.sr.ht/~mcepl/m2crypto/tree/master/item/setup.cfg has:\n\n```ini\n[mypy]\n\n[mypy-M2Crypto.m2crypto]\n# Mypy fails to resolve the relative import of the C-extension\n# in the SWIG-generated wrapper file.\ndisable_error_code = import-not-found\n```\n- Python version used: 3.11 of whatever is the FreeBSD standard (apparently, 3.11.15_2)\n- Operating system and version: FreeBSD/latest\n\n\u003c!--\nYou can freely edit this text, please remove all the lines\nyou believe are unnecessary.\n-->\n","author":{"url":"https://github.com/mcepl","@type":"Person","name":"mcepl"},"datePublished":"2026-04-20T18:12:16Z","url":"https://github.com/python/mypy/issues/21277"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:9e82c64d-dd86-9df9-8ace-6cf1444d1fd7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D76:1CC39D:382E95:4EF888:6B005E4B |
| html-safe-nonce | 9c69c2eb7fa948e4ba7ecd8c862eea2052af2cf0e780393db405cdf4a221a87b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDc2OjFDQzM5RDozODJFOTU6NEVGODg4OjZCMDA1RTRCIiwidmlzaXRvcl9pZCI6IjUzNzgyNTY2MDIxNjU5NjAyNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 500d05cd8d95bee316e2d54a209b76a4d8a85cc807361f2ccfa6d55b7a2fff9e |
| hovercard-subject-tag | issue:4297739185 |
| 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/python/mypy/21277/issue_layout |
| twitter:image | https://opengraph.githubassets.com/71d2e46c736eeea14dfebd0464105fa42917538e7f3f85ba7e83505f206db8be/python/mypy/issues/21277 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/71d2e46c736eeea14dfebd0464105fa42917538e7f3f85ba7e83505f206db8be/python/mypy/issues/21277 |
| og:image:alt | When running mypy in CI with FreeBSD container (https://builds.sr.ht/~mcepl/job/1737686) I get this error: + cd m2crypto ++ readlink -f build/lib.freebsd-15.0-RELEASE-p5-amd64-cpython-311 + PYTHONP... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mcepl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width