Title: 0.16.2 giving errors with ast · Issue #256 · python-quantities/python-quantities · GitHub
Open Graph Title: 0.16.2 giving errors with ast · Issue #256 · python-quantities/python-quantities
X Title: 0.16.2 giving errors with ast · Issue #256 · python-quantities/python-quantities
Description: After upgrading to version 0.16.2 I get the following error: .pixi/envs/py311/lib/python3.11/site-packages/quantities/registry.py:82: in getitem return self.__registry[label] .pixi/envs/py311/lib/python3.11/site-packages/quantities/regis...
Open Graph Description: After upgrading to version 0.16.2 I get the following error: .pixi/envs/py311/lib/python3.11/site-packages/quantities/registry.py:82: in getitem return self.__registry[label] .pixi/envs/py311/lib/p...
X Description: After upgrading to version 0.16.2 I get the following error: .pixi/envs/py311/lib/python3.11/site-packages/quantities/registry.py:82: in getitem return self.__registry[label] .pixi/envs/py311/lib/p...
Opengraph URL: https://github.com/python-quantities/python-quantities/issues/256
X: @github
Domain: www.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"0.16.2 giving errors with ast","articleBody":"After upgrading to version 0.16.2 I get the following error:\n---\n.pixi/envs/py311/lib/python3.11/site-packages/quantities/registry.py:82: in __getitem__\nreturn self.__registry[label]\n.pixi/envs/py311/lib/python3.11/site-packages/quantities/registry.py:32: in __getitem__\ntree = ast.parse(string, mode=\"eval\")\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\nsource = ' W', filename = '\u003cunknown\u003e', mode = 'eval'\ndef parse(source, filename='\u003cunknown\u003e', mode='exec', *,\ntype_comments=False, feature_version=None):\n\"\"\"\nParse the source into an AST node.\nEquivalent to compile(source, filename, mode, PyCF_ONLY_AST).\nPass type_comments=True to get back type comments where the syntax allows.\n\"\"\"\nflags = PyCF_ONLY_AST\nif type_comments:\nflags |= PyCF_TYPE_COMMENTS\nif isinstance(feature_version, tuple):\nmajor, minor = feature_version # Should be a 2-tuple.\nassert major == 3\nfeature_version = minor\nelif feature_version is None:\nfeature_version = -1\n# Else it should be an int giving the minor version for 3.x.\n\u003e return compile(source, filename, mode, flags,\n_feature_version=feature_version)\nE File \"\u003cunknown\u003e\", line 1\nE W\nE IndentationError: unexpected indent\n.pixi/envs/py311/lib/python3.11/ast.py:50: IndentationError","author":{"url":"https://github.com/j-emils","@type":"Person","name":"j-emils"},"datePublished":"2025-04-16T07:20:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/256/python-quantities/issues/256"}
| 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:cae182d9-792f-43f7-dc07-3c748e5bbc74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9912:319547:FB8B48:144D34F:696B0C3C |
| html-safe-nonce | b03a0d45e609dcf5ba681cca943cb675ee1b9a93913744835130a1401eb05db6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTEyOjMxOTU0NzpGQjhCNDg6MTQ0RDM0Rjo2OTZCMEMzQyIsInZpc2l0b3JfaWQiOiIxMDU2MTcwMzI4NTgxNjcxOTk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 87bd5a83a8b26314d885e7d950b18dc158419cdb90ab1c99daaf97e26ba6eb3c |
| hovercard-subject-tag | issue:2998711232 |
| 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-quantities/python-quantities/256/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9efea0b78668fc64d6864b30b58f1ad0535135e947ee23bfd65b164cd5d08b5c/python-quantities/python-quantities/issues/256 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9efea0b78668fc64d6864b30b58f1ad0535135e947ee23bfd65b164cd5d08b5c/python-quantities/python-quantities/issues/256 |
| og:image:alt | After upgrading to version 0.16.2 I get the following error: .pixi/envs/py311/lib/python3.11/site-packages/quantities/registry.py:82: in getitem return self.__registry[label] .pixi/envs/py311/lib/p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | j-emils |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-quantities/python-quantities git https://github.com/python-quantities/python-quantities.git |
| octolytics-dimension-user_id | 222003 |
| octolytics-dimension-user_login | python-quantities |
| octolytics-dimension-repository_id | 560911 |
| octolytics-dimension-repository_nwo | python-quantities/python-quantities |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 560911 |
| octolytics-dimension-repository_network_root_nwo | python-quantities/python-quantities |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width