Title: Python.Runtime.dll.config under Mac OSX, Anaconda and brew mono · Issue #120 · pythonnet/pythonnet · GitHub
Open Graph Title: Python.Runtime.dll.config under Mac OSX, Anaconda and brew mono · Issue #120 · pythonnet/pythonnet
X Title: Python.Runtime.dll.config under Mac OSX, Anaconda and brew mono · Issue #120 · pythonnet/pythonnet
Description: Hi, First I installed mono with brew: brew install mono With anaconda under OSX El Capitan I managed to install pythonnet with no issues the development version with pip install --pre pythonnet Then, when trying to import clr in python I...
Open Graph Description: Hi, First I installed mono with brew: brew install mono With anaconda under OSX El Capitan I managed to install pythonnet with no issues the development version with pip install --pre pythonnet The...
X Description: Hi, First I installed mono with brew: brew install mono With anaconda under OSX El Capitan I managed to install pythonnet with no issues the development version with pip install --pre pythonnet The...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/120
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python.Runtime.dll.config under Mac OSX, Anaconda and brew mono","articleBody":"Hi,\n\nFirst I installed mono with brew:\nbrew install mono\n\nWith anaconda under OSX El Capitan I managed to install pythonnet with no issues the development version with\npip install --pre pythonnet\n\nThen, when trying to import clr in python I got the error\nImportError: System.DllNotFoundException: libpython2.7.so\n\nI noticed the error was in Python.Runtime.dll.config since it assumes that any non-windows OS will have **.so** as extension for the libpython library; by example libpython2.7**.so** , but in anaconda and OSX, this should be libpython2.7.**dylib**.\n\nThis can be easily fixed by being more specific in Python.Runtime.dll.config about the os, such as:\n\n`\u003cdllmap dll=\"python27.dll\" target=\"libpython2.7.dylib\" os=\"osx\" /\u003e`\n`\u003cdllmap dll=\"python27\" target=\"libpython2.7.so\" os=\"linux\" /\u003e`\n\nafter modifying lib/python2.7/site-packages/Python.Runtime.dll.config using the previous convention then \"import clr\" works. All my code that uses pythonnet in Windows works with no issues in OSX. I'm attaching the modified Python.Runtime.dll.config. I do not know if other python installations in OSX have a different extension other than .dylib. AFAIR, Canopy uses also dylib, which is the standard for OSX dynamic libraries.\n\nRegards\n\nSam\n[Python.Runtime.dll.config.zip](https://github.com/pythonnet/pythonnet/files/104365/Python.Runtime.dll.config.zip)\n","author":{"url":"https://github.com/spichardo","@type":"Person","name":"spichardo"},"datePublished":"2016-01-26T03:09:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/120/pythonnet/issues/120"}
| 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:c99ad69b-c771-bfed-9d80-9a8de30b2ba1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4D0:25EF8D:1C0549D:258D9E9:69704EAB |
| html-safe-nonce | 599d34364dd9302869cf1f812b4e0f0a74e74df6ffa809ae3372b3ec60f5af64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEQwOjI1RUY4RDoxQzA1NDlEOjI1OEQ5RTk6Njk3MDRFQUIiLCJ2aXNpdG9yX2lkIjoiODkwMDAzMDI2MDYxODQwMDQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dcddaa31a5298d50ccbe4e215c3610b786c9c940ce3c9126589dfd002c081a80 |
| hovercard-subject-tag | issue:128710176 |
| 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/120/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4fc578d31ea50aa5f242ed2813d49cde27ca8062f9a3801f2945db558e5ebde9/pythonnet/pythonnet/issues/120 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4fc578d31ea50aa5f242ed2813d49cde27ca8062f9a3801f2945db558e5ebde9/pythonnet/pythonnet/issues/120 |
| og:image:alt | Hi, First I installed mono with brew: brew install mono With anaconda under OSX El Capitan I managed to install pythonnet with no issues the development version with pip install --pre pythonnet The... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | spichardo |
| 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 | f643964067a552f02067066d6a910b2f90a5721f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width