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: patch-diff.githubusercontent.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:45f80752-502d-9fae-eb0b-bfbb9239f512 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB9E:2FF188:9C37B3:D47DE0:6972898A |
| html-safe-nonce | 821e2f18aa7ece98080cd1930399d1e37f01b6ee4bfe851add288edbc2e70914 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjlFOjJGRjE4ODo5QzM3QjM6RDQ3REUwOjY5NzI4OThBIiwidmlzaXRvcl9pZCI6IjI2NzUxMzYzNTA3NzExMjA1MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 97a1bb4fcec438b0f6482c9f4fb47f4842e329f7ec78df97fd5c7b50fa4a11e5 |
| 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 | 7631aa5e32c11c73e45f19f2aaeaa7e0305d2ec80414866e8b020f3c2144ccae |
| 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 | 40f44656d2185a364dd710032a2e10ee2f1d7e20 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width