Title: CLR not working on 32 bit Linux · Issue #1210 · pythonnet/pythonnet · GitHub
Open Graph Title: CLR not working on 32 bit Linux · Issue #1210 · pythonnet/pythonnet
X Title: CLR not working on 32 bit Linux · Issue #1210 · pythonnet/pythonnet
Description: Environment Pythonnet version: 2.5.1 and also 3.0.0-dev Python version: 3.5.3, 2.7.13 and also 3.8.5 (from Debian repositories and also if compiled locally with --enable-shared) MONO Versions: 6.10, 5.16 and also 5.20 Operating System: L...
Open Graph Description: Environment Pythonnet version: 2.5.1 and also 3.0.0-dev Python version: 3.5.3, 2.7.13 and also 3.8.5 (from Debian repositories and also if compiled locally with --enable-shared) MONO Versions: 6.10...
X Description: Environment Pythonnet version: 2.5.1 and also 3.0.0-dev Python version: 3.5.3, 2.7.13 and also 3.8.5 (from Debian repositories and also if compiled locally with --enable-shared) MONO Versions: 6.10...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1210
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CLR not working on 32 bit Linux","articleBody":"### Environment\r\n\r\n- Pythonnet version: 2.5.1 and also 3.0.0-dev\r\n- Python version: 3.5.3, 2.7.13 and also 3.8.5 (from Debian repositories and also if compiled locally with --enable-shared)\r\n- MONO Versions: 6.10, 5.16 and also 5.20\r\n- Operating System: Linux (Debian 9 'stretch' Live, i686)\r\n\r\n### Details\r\n\r\nPythonnet seems not to be working on a Linux 32-Bit environment (i686) at all. I tested it on a \"Debian live\" (USB) system in two different computers, using Python from the Debian repositories and also building python from source code, here are the results:\r\n\r\n* Using Python from the Debian repositories:\r\nThe python execution crashes just doing `import clr`\r\nSee attachment: [mono_crash.4383a3eb2.0.zip](https://github.com/pythonnet/pythonnet/files/5121987/mono_crash.4383a3eb2.0.zip), [trace.txt](https://github.com/pythonnet/pythonnet/files/5122028/trace.txt)\r\n\r\n* Building Python from source code (with `--enable-shared`):\r\n\r\nIt doesn't crash, but clr throws an error when trying to load an assembly (\"AttributeError: module 'clr' has no attribute 'AddReference'\"). This was reported in some places around internet, but I don't have any `clr` module already installed which could cause a name collision. See output:\r\n\r\n```\r\nuser@debian:~$ /opt/python/python3.5.3/bin/python3\r\nPython 3.5.3 (default, Sep 27 2018, 17:25:39) \r\n[GCC 6.3.0 20170516] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import clr\r\n\u003e\u003e\u003e dir(clr)\r\n['__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'facade']\r\n\u003e\u003e\u003e str(clr)\r\n\"\u003cmodule 'clr' from '/opt/python/python3.5.3/lib/python3.5/site-packages/clr.cpython-35m-i386-linux-gnu.so'\u003e\"\r\n\u003e\u003e\u003e \r\nuser@debian:~$ /opt/python/python3.5.3/bin/pip3 list\r\nclang (11.0)\r\npip (9.0.1)\r\npycparser (2.20)\r\npythonnet (2.5.1)\r\nsetuptools (28.8.0)\r\nwheel (0.35.1)\r\n```\r\n\r\n### Notes\r\n\r\n- On a x64-System it works, using the same version of Debian, Pythonnet and Python.\r\n- If this is really a limitation of 32-Bit-Systems that cannot be fixed, it should be documented on the \"readme\".","author":{"url":"https://github.com/daniol","@type":"Person","name":"daniol"},"datePublished":"2020-08-25T07:39:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/1210/pythonnet/issues/1210"}
| 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:e2aae8fd-9e8d-2505-b22e-6098f9526041 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4C0:2736BD:1FBC8C9:2AF61F7:697083AB |
| html-safe-nonce | f3c17c2ba56e6c41a74a799fd664c34f5105fdf9b46dd837be888c9c645a9d7b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEMwOjI3MzZCRDoxRkJDOEM5OjJBRjYxRjc6Njk3MDgzQUIiLCJ2aXNpdG9yX2lkIjoiMjA4MDM5MTg0OTY3NDA0ODQyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 53f9e771a3450f50fdb678d8c7d1c6b1b6abd35cb9074130d21bf5ee00d7571f |
| hovercard-subject-tag | issue:685252703 |
| 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/1210/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd1fd7c4249cfc34eb91c50d86f5ba62409dd77a79e5585ff3fcf930b13b4760/pythonnet/pythonnet/issues/1210 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd1fd7c4249cfc34eb91c50d86f5ba62409dd77a79e5585ff3fcf930b13b4760/pythonnet/pythonnet/issues/1210 |
| og:image:alt | Environment Pythonnet version: 2.5.1 and also 3.0.0-dev Python version: 3.5.3, 2.7.13 and also 3.8.5 (from Debian repositories and also if compiled locally with --enable-shared) MONO Versions: 6.10... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daniol |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width