Title: Strange import errors with Python 3.12 on Windows · Issue #104820 · python/cpython · GitHub
Open Graph Title: Strange import errors with Python 3.12 on Windows · Issue #104820 · python/cpython
X Title: Strange import errors with Python 3.12 on Windows · Issue #104820 · python/cpython
Description: I tried to test our project with Python 3.12 beta 1 on Windows but everything failed. After some debugging I noticed that module imports seem to fail when modules aren't on my C-drive: C:\Users\peke>echo print(1) > test312.py C:\Users\pe...
Open Graph Description: I tried to test our project with Python 3.12 beta 1 on Windows but everything failed. After some debugging I noticed that module imports seem to fail when modules aren't on my C-drive: C:\Users\pek...
X Description: I tried to test our project with Python 3.12 beta 1 on Windows but everything failed. After some debugging I noticed that module imports seem to fail when modules aren't on my C-drive: C:\Users...
Opengraph URL: https://github.com/python/cpython/issues/104820
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strange import errors with Python 3.12 on Windows","articleBody":"I tried to test our project with Python 3.12 beta 1 on Windows but everything failed. After some debugging I noticed that module imports seem to fail when modules aren't on my C-drive:\r\n\r\n```\r\nC:\\Users\\peke\u003eecho print(1) \u003e test312.py\r\n\r\nC:\\Users\\peke\u003epy -3.12 -c \"import test312\"\r\n1\r\n\r\nC:\\Users\\peke\u003ee:\r\n\r\nE:\\\u003eecho print(1) \u003e test312.py\r\n\r\nE:\\\u003epy -3.12 -c \"import test312\"\r\nTraceback (most recent call last):\r\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\r\nModuleNotFoundError: No module named 'test312'\r\n```\r\n\r\nNo problems with earlier Python versions:\r\n```\r\nE:\\\u003epy -3.11 -c \"import test312\"\r\n1\r\n```\r\n\r\nNot sure does it matter, but I'm running Windows on VirtualBox and that E-drive is mapped to a directory on the Linux host.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104892\n* gh-104905\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/pekkaklarck","@type":"Person","name":"pekkaklarck"},"datePublished":"2023-05-23T20:57:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/104820/cpython/issues/104820"}
| 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:56fefe2e-baf5-c0a8-0a50-19692112782e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 954C:739BE:560D2C:74B64E:6969DA42 |
| html-safe-nonce | 58364476a97ac99d08e870c7520687487f868fd1479756979b0fb7b31a52b090 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTRDOjczOUJFOjU2MEQyQzo3NEI2NEU6Njk2OURBNDIiLCJ2aXNpdG9yX2lkIjoiMzAzNTM0MTgyMzIyODM2OTQ3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 259fd67cd9315f317ba63606a014f422895a29031a2e6307865819226188790c |
| hovercard-subject-tag | issue:1722776845 |
| 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/104820/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e22fcd771adce7e43e67b00e7e58ee9c25a5dfeb442f677dee4d8b9420438a9/python/cpython/issues/104820 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e22fcd771adce7e43e67b00e7e58ee9c25a5dfeb442f677dee4d8b9420438a9/python/cpython/issues/104820 |
| og:image:alt | I tried to test our project with Python 3.12 beta 1 on Windows but everything failed. After some debugging I noticed that module imports seem to fail when modules aren't on my C-drive: C:\Users\pek... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pekkaklarck |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width