Title: Cannot install development environment on Python 3.12 · Issue #492 · dry-python/classes · GitHub
Open Graph Title: Cannot install development environment on Python 3.12 · Issue #492 · dry-python/classes
X Title: Cannot install development environment on Python 3.12 · Issue #492 · dry-python/classes
Description: Bug report Cannot install development environment on Python 3.12. Repro steps └➜ poetry install Installing dependencies from lock file Package operations: 114 installs, 0 updates, 0 removals - Installing smmap (5.0.0) - Installing gitdb ...
Open Graph Description: Bug report Cannot install development environment on Python 3.12. Repro steps └➜ poetry install Installing dependencies from lock file Package operations: 114 installs, 0 updates, 0 removals - Inst...
X Description: Bug report Cannot install development environment on Python 3.12. Repro steps └➜ poetry install Installing dependencies from lock file Package operations: 114 installs, 0 updates, 0 removals - Inst...
Opengraph URL: https://github.com/dry-python/classes/issues/492
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot install development environment on Python 3.12","articleBody":"# Bug report\r\n\r\nCannot install development environment on Python 3.12.\r\n\r\n## Repro steps\r\n\r\n```\r\n└➜ poetry install\r\nInstalling dependencies from lock file\r\n\r\nPackage operations: 114 installs, 0 updates, 0 removals\r\n\r\n - Installing smmap (5.0.0)\r\n - Installing gitdb (4.0.9)\r\n - Installing mccabe (0.6.1)\r\n - Installing pbr (5.8.1)\r\n - Installing pycodestyle (2.7.0)\r\n - Installing pyflakes (2.3.1)\r\n - Installing pyparsing (3.0.8)\r\n - Installing attrs (21.4.0)\r\n - Installing certifi (2022.12.7)\r\n - Installing charset-normalizer (2.0.12)\r\n - Installing docutils (0.19)\r\n - Installing flake8 (3.9.2)\r\n - Installing gitpython (3.1.27)\r\n - Installing idna (3.3)\r\n - Installing markupsafe (2.1.1)\r\n - Installing packaging (21.3)\r\n - Installing pytz (2022.1)\r\n - Installing pyyaml (6.0): Failed\r\n\r\n ChefBuildError\r\n\r\n Backend subprocess exited when trying to invoke get_requires_for_build_wheel\r\n\r\n running egg_info\r\n writing lib/PyYAML.egg-info/PKG-INFO\r\n writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt\r\n writing top-level names to lib/PyYAML.egg-info/top_level.txt\r\n Traceback (most recent call last):\r\n File \"/home/maxim/.local/share/pipx/venvs/poetry/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py\", line 389, in \u003cmodule\u003e\r\n main()\r\n File \"/home/maxim/.local/share/pipx/venvs/poetry/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py\", line 373, in main\r\n json_out[\"return_val\"] = hook(**hook_input[\"kwargs\"])\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/maxim/.local/share/pipx/venvs/poetry/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py\", line 143, in get_requires_for_build_wheel\r\n return hook(config_settings)\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/build_meta.py\", line 334, in get_requires_for_build_wheel\r\n return self._get_build_requires(config_settings, requirements=[])\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/build_meta.py\", line 304, in _get_build_requires\r\n self.run_setup()\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/build_meta.py\", line 320, in run_setup\r\n exec(code, locals())\r\n File \"\u003cstring\u003e\", line 288, in \u003cmodule\u003e\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/__init__.py\", line 117, in setup\r\n return distutils.core.setup(**attrs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/_distutils/core.py\", line 183, in setup\r\n return run_commands(dist)\r\n ^^^^^^^^^^^^^^^^^^\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/_distutils/core.py\", line 199, in run_commands\r\n dist.run_commands()\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py\", line 954, in run_commands\r\n self.run_command(cmd)\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/dist.py\", line 995, in run_command\r\n super().run_command(command)\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py\", line 973, in run_command\r\n cmd_obj.run()\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/command/egg_info.py\", line 313, in run\r\n self.find_sources()\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/command/egg_info.py\", line 321, in find_sources\r\n mm.run()\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/command/egg_info.py\", line 544, in run\r\n self.add_defaults()\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/command/egg_info.py\", line 582, in add_defaults\r\n sdist.add_defaults(self)\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/command/sdist.py\", line 109, in add_defaults\r\n super().add_defaults()\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py\", line 238, in add_defaults\r\n self._add_defaults_ext()\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py\", line 323, in _add_defaults_ext\r\n self.filelist.extend(build_ext.get_source_files())\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\u003cstring\u003e\", line 204, in get_source_files\r\n File \"/tmp/tmps0g2qzy0/.venv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py\", line 107, in __getattr__\r\n raise AttributeError(attr)\r\n AttributeError: cython_sources\r\n\r\n\r\n at ~/.local/share/pipx/venvs/poetry/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare\r\n 160│\r\n 161│ error = ChefBuildError(\"\\n\\n\".join(message_parts))\r\n 162│\r\n 163│ if error is not None:\r\n → 164│ raise error from None\r\n 165│\r\n 166│ return path\r\n 167│\r\n 168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -\u003e Path:\r\n\r\nNote: This error originates from the build backend, and is likely not a problem with poetry but with pyyaml (6.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 \"pyyaml (==6.0)\"'.\r\n\r\n - Installing six (1.16.0)\r\n - Installing snowballstemmer (2.2.0)\r\n - Installing stevedore (3.5.0)\r\n - Installing urllib3 (1.26.9)\r\n```\r\n\r\n## System info\r\n\r\nWSL2, Windows 11\r\n\r\n```\r\n└➜ uname -a\r\nLinux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n└➜ python --version\r\nPython 3.12.3\r\n\r\n└➜ poetry --version\r\nPoetry (version 1.8.5)\r\n```\r\n\r\nI suppose the problem is related to the fact that `poetry.lock` requires `pyyaml == 6.0`, but looks like there is a problem to build `pyyaml \u003c 6.0.1` for python 3.11 and newer (https://github.com/yaml/pyyaml/issues/736).\r\n\r\n## Proposed solution\r\n\r\n1. Maybe bump `pyyaml` dependency to the latest `6.0.2`?\r\n2. Update `poetry.lock` for python 3.12 and newer (for pyyaml package wheels are listed for 3.11 and older)","author":{"url":"https://github.com/ivanovmg","@type":"Person","name":"ivanovmg"},"datePublished":"2024-12-12T17:02:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/492/classes/issues/492"}
| 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:e0b142e2-b843-37be-3728-38db62178bbf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F32:1E0146:1082824:1615621:69699468 |
| html-safe-nonce | cb75e797cfbb269fd9397dfa041ccf306d5ce9c0dec398d1bbe2707df35fbf4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjMyOjFFMDE0NjoxMDgyODI0OjE2MTU2MjE6Njk2OTk0NjgiLCJ2aXNpdG9yX2lkIjoiNjkxMTE5MzY5NDk0OTk3MTA0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 13221eae33877a36ede0165f3f6eb41a47761b8cf5a2694776e48c2cb7c4dc60 |
| hovercard-subject-tag | issue:2736444340 |
| 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/dry-python/classes/492/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e829f268de067d8498ac4ce0f2e8b2daa33c0f144bf1d684f7027dfdb7cfe77b/dry-python/classes/issues/492 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e829f268de067d8498ac4ce0f2e8b2daa33c0f144bf1d684f7027dfdb7cfe77b/dry-python/classes/issues/492 |
| og:image:alt | Bug report Cannot install development environment on Python 3.12. Repro steps └➜ poetry install Installing dependencies from lock file Package operations: 114 installs, 0 updates, 0 removals - Inst... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ivanovmg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| turbo-cache-control | no-preview |
| go-import | github.com/dry-python/classes git https://github.com/dry-python/classes.git |
| octolytics-dimension-user_id | 37993755 |
| octolytics-dimension-user_login | dry-python |
| octolytics-dimension-repository_id | 217621930 |
| octolytics-dimension-repository_nwo | dry-python/classes |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 217621930 |
| octolytics-dimension-repository_network_root_nwo | dry-python/classes |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width