Title: Cythonized python.net code cannot find system assemblies · Issue #941 · pythonnet/pythonnet · GitHub
Open Graph Title: Cythonized python.net code cannot find system assemblies · Issue #941 · pythonnet/pythonnet
X Title: Cythonized python.net code cannot find system assemblies · Issue #941 · pythonnet/pythonnet
Description: Dup of my SO question https://stackoverflow.com/questions/57493309/cythonized-python-net-code-cannot-find-system-assemblies When I compile the python code which uses python.net to access .Net assemblies, it can't find those assemblies. W...
Open Graph Description: Dup of my SO question https://stackoverflow.com/questions/57493309/cythonized-python-net-code-cannot-find-system-assemblies When I compile the python code which uses python.net to access .Net assem...
X Description: Dup of my SO question https://stackoverflow.com/questions/57493309/cythonized-python-net-code-cannot-find-system-assemblies When I compile the python code which uses python.net to access .Net assem...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/941
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cythonized python.net code cannot find system assemblies","articleBody":"Dup of my SO question https://stackoverflow.com/questions/57493309/cythonized-python-net-code-cannot-find-system-assemblies\r\n\r\n\r\n\r\nWhen I compile the python code which uses python.net to access .Net assemblies, it can't find those assemblies. Without compilation it works ok.\r\n\r\nFor demo code, I used https://github.com/pythonnet/pythonnet/blob/master/demo/helloform.py\r\n\r\nMy setup.py file\r\n\r\n```\r\nfrom distutils.core import setup\r\nfrom distutils.extension import Extension\r\nfrom Cython.Build import cythonize\r\n\r\next_modules = [\r\n Extension(\r\n 'helloform',\r\n sources = ['helloform.py'],\r\n language = 'c++'\r\n )\r\n]\r\n\r\nsetup(\r\n name = 'helloform',\r\n ext_modules = cythonize(ext_modules),\r\n)\r\n```\r\nThen I build it with python setup.py build_ext --inplace.\r\n\r\nI wanted to load compiled module from Python prompt with import helloform but it failed with\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"helloform.py\", line 8, in init helloform\r\nModuleNotFoundError: No module named 'System'\r\n```","author":{"url":"https://github.com/crayxt","@type":"Person","name":"crayxt"},"datePublished":"2019-08-16T13:02:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/941/pythonnet/issues/941"}
| 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:b6867815-33cb-f71e-cf5d-b3e0344e57b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD12:1C5DF3:21FA6C7:2D0934F:6971B7F4 |
| html-safe-nonce | 0925a7b4e661a5b41dab82b2461267c06a2eb98e9ade227d5f76745b6c4cb695 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDEyOjFDNURGMzoyMUZBNkM3OjJEMDkzNEY6Njk3MUI3RjQiLCJ2aXNpdG9yX2lkIjoiNjM1MDA3OTEyMjc4ODY5NDAwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 58ca542dbc4186b2e451a73c57a64876846346de10ae5b3c65409185164534fb |
| hovercard-subject-tag | issue:481599170 |
| 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/941/issue_layout |
| twitter:image | https://opengraph.githubassets.com/13fdfcd80008febd47c03b54dd9e5bc1b23ef60f1b46f72e7e17549221077e90/pythonnet/pythonnet/issues/941 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/13fdfcd80008febd47c03b54dd9e5bc1b23ef60f1b46f72e7e17549221077e90/pythonnet/pythonnet/issues/941 |
| og:image:alt | Dup of my SO question https://stackoverflow.com/questions/57493309/cythonized-python-net-code-cannot-find-system-assemblies When I compile the python code which uses python.net to access .Net assem... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | crayxt |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3b677fea7de290a6c0d1c9ccd6c9909b6a527cf8ee079649e09dc78092d24f1 |
| 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 | 29d7fcca69cafb91ec8a596aaf222fd46e9bc934 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width