Title: Environment variables are not synchronized · Issue #2538 · pythonnet/pythonnet · GitHub
Open Graph Title: Environment variables are not synchronized · Issue #2538 · pythonnet/pythonnet
X Title: Environment variables are not synchronized · Issue #2538 · pythonnet/pythonnet
Description: Environment Pythonnet version:3.0.5 Python version:3.12 Operating System:win11 .NET Runtime:.net8 Details Describe what you were trying to get done. I tested the virtual environment created with Poetry and it always failed. The test foun...
Open Graph Description: Environment Pythonnet version:3.0.5 Python version:3.12 Operating System:win11 .NET Runtime:.net8 Details Describe what you were trying to get done. I tested the virtual environment created with Po...
X Description: Environment Pythonnet version:3.0.5 Python version:3.12 Operating System:win11 .NET Runtime:.net8 Details Describe what you were trying to get done. I tested the virtual environment created with Po...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/2538
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Environment variables are not synchronized","articleBody":"### Environment\r\n\r\n- Pythonnet version:3.0.5\r\n- Python version:3.12\r\n- Operating System:win11\r\n- .NET Runtime:.net8\r\n\r\n### Details\r\n\r\n- Describe what you were trying to get done.\r\n\r\n I tested the virtual environment created with Poetry and it always failed. The test found that there were issues with the environment variables\r\n\r\n \r\n```python\r\nEnvironment.SetEnvironmentVariable(\"AA\",\"BB\");\r\n\r\nRuntime.PythonDLL = @\"D:\\Program Files\\Python312\\python312.dll\";\r\nPythonEngine.Initialize();\r\n\r\nPythonEngine.RunSimpleString(\"\"\"\r\n\r\n import os\r\n \r\n for e in os.environ:\r\n print(e,':', os.environ[e])\r\n \"\"\");\r\n```\r\nno AA in os.environ, so Environment variables in https://github.com/pythonnet/pythonnet/wiki/Using-Python.NET-with-Virtual-Environments no effect, So it leads to the inability to call Python in virtual environments?\r\n\r\n","author":{"url":"https://github.com/gitlsl","@type":"Person","name":"gitlsl"},"datePublished":"2025-01-04T13:29:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2538/pythonnet/issues/2538"}
| 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:02185bfc-50cc-7463-113f-7364c8fc595d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E2A:3381E4:149F1FB:1CDC9B4:6970D27D |
| html-safe-nonce | 1879af1b21ce185bf8426ecbac18248fcc796a82b8af68bd1b8b3cd792e76145 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTJBOjMzODFFNDoxNDlGMUZCOjFDREM5QjQ6Njk3MEQyN0QiLCJ2aXNpdG9yX2lkIjoiOTQ4NDM4Njc2MDU0MDA0MzUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 76290fba7b327ca7777e48c979d1b9f8650457b7a4c150fd5f9de7e124ab5155 |
| hovercard-subject-tag | issue:2768845067 |
| 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/pythonnet/pythonnet/2538/issue_layout |
| twitter:image | https://opengraph.githubassets.com/daf17597923e372ea3098e590cbff05cad7ac181d2f77b2cc48b5c0c120013ee/pythonnet/pythonnet/issues/2538 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/daf17597923e372ea3098e590cbff05cad7ac181d2f77b2cc48b5c0c120013ee/pythonnet/pythonnet/issues/2538 |
| og:image:alt | Environment Pythonnet version:3.0.5 Python version:3.12 Operating System:win11 .NET Runtime:.net8 Details Describe what you were trying to get done. I tested the virtual environment created with Po... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gitlsl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 034aaee9edccd455c18591b13122193c6e12dc773e8a203be73abe934f3e3a72 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| 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 | 52d1d534d0b88c64972e852deb460d09b433b8b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width