Title: Error on multiprocessing.log_to_stderr(level=None) · Issue #115461 · python/cpython · GitHub
Open Graph Title: Error on multiprocessing.log_to_stderr(level=None) · Issue #115461 · python/cpython
X Title: Error on multiprocessing.log_to_stderr(level=None) · Issue #115461 · python/cpython
Description: Bug report Bug description: The function multiprocessing.log_to_stderr() throws an error: Python 3.10.13 (main, Sep 11 2023, 08:16:02) [Clang 14.0.6 ] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> i...
Open Graph Description: Bug report Bug description: The function multiprocessing.log_to_stderr() throws an error: Python 3.10.13 (main, Sep 11 2023, 08:16:02) [Clang 14.0.6 ] on darwin Type "help", "copyright", "credits" ...
X Description: Bug report Bug description: The function multiprocessing.log_to_stderr() throws an error: Python 3.10.13 (main, Sep 11 2023, 08:16:02) [Clang 14.0.6 ] on darwin Type "help", "copyrig...
Opengraph URL: https://github.com/python/cpython/issues/115461
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error on multiprocessing.log_to_stderr(level=None)","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\nThe function [`multiprocessing.log_to_stderr()`](https://docs.python.org/3.11/library/multiprocessing.html#logging) throws an error:\r\n\r\n```python\r\nPython 3.10.13 (main, Sep 11 2023, 08:16:02) [Clang 14.0.6 ] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import multiprocessing\r\n\u003e\u003e\u003e logger = multiprocessing.log_to_stderr()\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/Users/amasson/micromamba/envs/nf_cloud/lib/python3.10/multiprocessing/context.py\", line 162, in log_to_stderr\r\n return log_to_stderr(level)\r\n File \"/Users/amasson/micromamba/envs/nf_cloud/lib/python3.10/multiprocessing/util.py\", line 94, in log_to_stderr\r\n logger = get_logger()\r\n File \"/Users/amasson/micromamba/envs/nf_cloud/lib/python3.10/multiprocessing/util.py\", line 67, in get_logger\r\n logging._acquireLock()\r\nAttributeError: module 'logging' has no attribute '_acquireLock'\r\n\u003e\u003e\u003e \r\n```\r\n\r\nSame thing with Python 12.0:\r\n\r\n```python\r\nPython 3.12.0 (v3.12.0:0fb18b02c8, Oct 2 2023, 09:45:56) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import multiprocessing\r\n\u003e\u003e\u003e logger = multiprocessing.log_to_stderr()\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/multiprocessing/context.py\", line 162, in log_to_stderr\r\n return log_to_stderr(level)\r\n ^^^^^^^^^^^^^^^^^^^^\r\n File \"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/multiprocessing/util.py\", line 94, in log_to_stderr\r\n logger = get_logger()\r\n ^^^^^^^^^^^^\r\n File \"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/multiprocessing/util.py\", line 67, in get_logger\r\n logging._acquireLock()\r\n ^^^^^^^^^^^^^^^^^^^^\r\nAttributeError: module 'logging' has no attribute '_acquireLock'\r\n```\r\n\r\n\r\n\r\n### CPython versions tested on:\r\n\r\n3.10, 3.12\r\n\r\n### Operating systems tested on:\r\n\r\nmacOS","author":{"url":"https://github.com/arthursw","@type":"Person","name":"arthursw"},"datePublished":"2024-02-14T15:33:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/115461/cpython/issues/115461"}
| 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:56423b32-bc11-b296-14ab-93a6eb1e7901 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8428:475D7:AF4FD0:ED4307:6A4D7584 |
| html-safe-nonce | 23580357e996790da80efe81afe80ea62b8e068cbb2a4dce08168d57c5a558ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDI4OjQ3NUQ3OkFGNEZEMDpFRDQzMDc6NkE0RDc1ODQiLCJ2aXNpdG9yX2lkIjoiNzQyODQ1OTg5ODAyOTgzMTU1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2dc1c6a63d86af467eb7321c4fd3990d672f0838ec6b72ffb118f59d707b8b5d |
| hovercard-subject-tag | issue:2134621207 |
| 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/cpython/115461/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9fa83fca3e56f8f3dd99e1b9f86086887a147f7ba429340026519bb19d23cbe8/python/cpython/issues/115461 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9fa83fca3e56f8f3dd99e1b9f86086887a147f7ba429340026519bb19d23cbe8/python/cpython/issues/115461 |
| og:image:alt | Bug report Bug description: The function multiprocessing.log_to_stderr() throws an error: Python 3.10.13 (main, Sep 11 2023, 08:16:02) [Clang 14.0.6 ] on darwin Type "help", "copyright", "credits" ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arthursw |
| hostname | github.com |
| expected-hostname | github.com |
| None | c78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| 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 | 399fff412f48461d435721c009efc17ea44be72f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width