Title: Libraries missing after setup.py install on OSX · Issue #392 · pythonnet/pythonnet · GitHub
Open Graph Title: Libraries missing after setup.py install on OSX · Issue #392 · pythonnet/pythonnet
X Title: Libraries missing after setup.py install on OSX · Issue #392 · pythonnet/pythonnet
Description: Environment Pythonnet version: v2.2.0-dev1-26-gb1cd3d1 (git describe --tags), branch mac-osx Python version: Python 3.5.2 :: Anaconda 4.3.0 (x86_64) Operating System: OSX El Capitan 10.11.6 Details Checked out the branch, and run python ...
Open Graph Description: Environment Pythonnet version: v2.2.0-dev1-26-gb1cd3d1 (git describe --tags), branch mac-osx Python version: Python 3.5.2 :: Anaconda 4.3.0 (x86_64) Operating System: OSX El Capitan 10.11.6 Details...
X Description: Environment Pythonnet version: v2.2.0-dev1-26-gb1cd3d1 (git describe --tags), branch mac-osx Python version: Python 3.5.2 :: Anaconda 4.3.0 (x86_64) Operating System: OSX El Capitan 10.11.6 Details...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/392
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Libraries missing after setup.py install on OSX","articleBody":"### Environment\r\n\r\n- Pythonnet version: v2.2.0-dev1-26-gb1cd3d1 (`git describe --tags`), branch `mac-osx`\r\n- Python version: Python 3.5.2 :: Anaconda 4.3.0 (x86_64)\r\n- Operating System: OSX El Capitan 10.11.6\r\n\r\n### Details\r\n\r\n1. Checked out the branch, and run `python setup.py install`. This worked, after setting \r\n'PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/4.6.2/lib/pkgconfig`\r\n(see dump below)\r\n\r\n2. Import fails\r\n```python \r\n(py35) vasilios@exumas:~/Temp/pythonnet [mac-osx | ✚1 …2]\r\n└─ $ python -c \"import clr\"\r\nThe assembly mscorlib.dll was not found or could not be loaded.\r\nIt should have been installed in the `/usr/local/anaconda/envs/py35/lib/mono/4.5/mscorlib.dll' directory.\r\n```\r\n\r\n3. Manually added a symbolic link to the respective mono folder, and trying import again\r\n```bash\r\nvasilios@exumas: /usr/local/anaconda/envs/py35/lib\r\n└─ $ ln -s /Library/Frameworks/Mono.framework/Versions/Current/lib/mono\r\n```\r\n\r\n```python\r\n(py35) vasilios@exumas:~/Temp/pythonnet [mac-osx | ✚1 …2]\r\n└─ $ python -c \"import clr\"\r\nTraceback (most recent call last):\r\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\r\nImportError: System.TypeInitializationException: The type initializer for 'Mono.Unix.Native.Stdlib' threw an exception. ---\u003e System.DllNotFoundException: MonoPosixHelper\r\n at (wrapper managed-to-native) Mono.Unix.Native.Stdlib:GetDefaultSignal ()\r\n at Mono.Unix.Native.Stdlib..cctor () [0x00006] in \u003cebe430c916fe49219627b20fd4c89313\u003e:0 \r\n --- End of inner exception stack trace ---\r\n at Mono.Unix.UnixMarshal.AllocHeap (System.Int64 size) [0x00018] in \u003cebe430c916fe49219627b20fd4c89313\u003e:0 \r\n at Mono.Unix.UnixMarshal.StringToHeap (System.String s, System.Int32 index, System.Int32 count, System.Text.Encoding encoding) [0x00061] in \u003cebe430c916fe49219627b20fd4c89313\u003e:0 \r\n at Mono.Unix.UnixMarshal.StringToHeap (System.String s, System.Text.Encoding encoding) [0x00008] in \u003cebe430c916fe49219627b20fd4c89313\u003e:0 \r\n at Python.Runtime.Utf32Marshaler.MarshalManagedToNative (System.Object obj) [0x00019] in \u003ce8f6e1fa95374383b3f862986f3e768c\u003e:0 \r\n at (wrapper managed-to-native) Python.Runtime.Runtime:PyUnicode_FromKindAndString (int,string,int)\r\n at Python.Runtime.Runtime.PyUnicode_FromUnicode (System.String s, System.Int32 size) [0x00000] in \u003ce8f6e1fa95374383b3f862986f3e768c\u003e:0 \r\n at Python.Runtime.Runtime.PyUnicode_FromString (System.String s) [0x00007] in \u003ce8f6e1fa95374383b3f862986f3e768c\u003e:0 \r\n at Python.Runtime.Runtime.Initialize () [0x0010f] in \u003ce8f6e1fa95374383b3f862986f3e768c\u003e:0 \r\n at Python.Runtime.PythonEngine.Initialize () [0x00014] in \u003ce8f6e1fa95374383b3f862986f3e768c\u003e:0 \r\n at Python.Runtime.PythonEngine.InitExt () [0x00000] in \u003ce8f6e1fa95374383b3f862986f3e768c\u003e:0 \r\n```\r\n\r\nStill looking at this issue, just though this may take you a step further. Any help would appreciated.\r\n\r\n\r\n#### Output of Step 1\r\n```python\r\n(py35) vasilios@exumas:~/Temp/pythonnet [mac-osx | ✔]\r\n└─ $ set | grep PKG\r\nPKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/4.6.2/lib/pkgconfig\r\n\r\n(py35) vasilios@exumas:~/Temp/pythonnet [mac-osx | ✔]\r\n└─ $ python setup.py install\r\n/usr/local/anaconda/envs/py35/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/setuptools/dist.py:331: UserWarning: Normalizing '2.2.0-dev1' to '2.2.0.dev1'\r\nrunning install\r\nrunning bdist_egg\r\nrunning egg_info\r\nwriting pythonnet.egg-info/PKG-INFO\r\nwriting top-level names to pythonnet.egg-info/top_level.txt\r\nwriting dependency_links to pythonnet.egg-info/dependency_links.txt\r\nreading manifest file 'pythonnet.egg-info/SOURCES.txt'\r\nwriting manifest file 'pythonnet.egg-info/SOURCES.txt'\r\ninstalling library code to build/bdist.macosx-10.6-x86_64/egg\r\nrunning install_lib\r\nrunning build_ext\r\nChecking for updates from https://www.nuget.org/api/v2/.\r\nCurrently running NuGet.exe 3.5.0.\r\nNuGet.exe is up to date.\r\nMSBuild auto-detection: using msbuild version '14.1' from '/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/msbuild/14.1/bin/'.\r\nAll packages listed in packages.config are already installed.\r\nXBuild Engine Version 14.0\r\nMono, Version 4.6.2.0\r\nCopyright (C) 2005-2013 Various Mono authors\r\n/Users/vasilios/Temp/pythonnet/pythonnet.sln: warning : The project configuration for project 'clrmodule' corresponding to the solution configuration 'ReleaseMono|x64' was not found.\r\nXBuild Engine Version 14.0\r\nMono, Version 4.6.2.0\r\nCopyright (C) 2005-2013 Various Mono authors\r\n\t\tConfiguration: ReleaseMono Platform: x64\r\nassemblymanager.cs(206,37): warning CS0168: The variable `e' is declared but never used\r\nclassderived.cs(143,26): warning CS0219: The variable `fb' is assigned but its value is never used\r\nclassderived.cs(832,17): warning CS0219: The variable `t' is assigned but its value is never used\r\nmethodbinder.cs(145,36): warning CS0219: The variable `typeArgs' is assigned but its value is never used\r\nmethodbinding.cs(114,25): warning CS0219: The variable `len' is assigned but its value is never used\r\nmethodbinding.cs(153,24): warning CS0219: The variable `superType' is assigned but its value is never used\r\nruntime.cs(2063,16): warning CS0472: The result of comparing value type `System.IntPtr' with null is always `true'\r\nconverter.cs(26,21): warning CS0414: The private field `Python.Runtime.Converter.decimalType' is assigned but its value is never used\r\n/Users/vasilios/Temp/pythonnet/pythonnet.sln: warning : The project configuration for project 'clrmodule' corresponding to the solution configuration 'ReleaseMono|x64' was not found.\r\nConfiguration: ReleaseMono Platform: x64\r\nfieldtest.cs(21,17): warning CS0219: The variable `i' is assigned but its value is never used\r\nfieldtest.cs(22,17): warning CS0219: The variable `j' is assigned but its value is never used\r\narraytest.cs(45,23): warning CS0414: The private field `Python.Test.PrivateArrayTest.items' is assigned but its value is never used\r\nConfiguration: ReleaseMono Platform: x64\r\npyimport.cs(47,17): warning CS0219: The variable `r' is assigned but its value is never used\r\nConfiguration: Release Platform: x64\r\nassemblyinfo.cs(13,50): warning CS0618: `System.Security.Permissions.SecurityAction.RequestMinimum' is obsolete: `This requests should not be used'\r\npythonconsole.cs(18,28): warning CS0219: The variable `a' is assigned but its value is never used\r\ncreating build/bdist.macosx-10.6-x86_64\r\ncreating build/bdist.macosx-10.6-x86_64/egg\r\ncopying build/lib.macosx-10.6-x86_64-3.5/clr.cpython-35m-darwin.so -\u003e build/bdist.macosx-10.6-x86_64/egg\r\ncreating stub loader for clr.cpython-35m-darwin.so\r\nbyte-compiling build/bdist.macosx-10.6-x86_64/egg/clr.py to clr.cpython-35.pyc\r\ninstalling package data to build/bdist.macosx-10.6-x86_64/egg\r\nrunning install_data\r\ncopying /Users/vasilios/Temp/pythonnet/build/lib.macosx-10.6-x86_64-3.5/Python.Runtime.dll -\u003e build/bdist.macosx-10.6-x86_64/egg/../../../../../../../usr/local/anaconda/envs/py35/lib/python3.5/site-packages\r\ncreating build/bdist.macosx-10.6-x86_64/egg/EGG-INFO\r\ncopying pythonnet.egg-info/PKG-INFO -\u003e build/bdist.macosx-10.6-x86_64/egg/EGG-INFO\r\ncopying pythonnet.egg-info/SOURCES.txt -\u003e build/bdist.macosx-10.6-x86_64/egg/EGG-INFO\r\ncopying pythonnet.egg-info/dependency_links.txt -\u003e build/bdist.macosx-10.6-x86_64/egg/EGG-INFO\r\ncopying pythonnet.egg-info/not-zip-safe -\u003e build/bdist.macosx-10.6-x86_64/egg/EGG-INFO\r\ncopying pythonnet.egg-info/top_level.txt -\u003e build/bdist.macosx-10.6-x86_64/egg/EGG-INFO\r\nwriting build/bdist.macosx-10.6-x86_64/egg/EGG-INFO/native_libs.txt\r\ncreating 'dist/pythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.egg' and adding 'build/bdist.macosx-10.6-x86_64/egg' to it\r\nremoving 'build/bdist.macosx-10.6-x86_64/egg' (and everything under it)\r\nProcessing pythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.egg\r\nremoving '/usr/local/anaconda/envs/py35/lib/python3.5/site-packages/pythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.egg' (and everything under it)\r\ncreating /usr/local/anaconda/envs/py35/lib/python3.5/site-packages/pythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.egg\r\nExtracting pythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.egg to /usr/local/anaconda/envs/py35/lib/python3.5/site-packages\r\npythonnet 2.2.0.dev1 is already the active version in easy-install.pth\r\n\r\nInstalled /usr/local/anaconda/envs/py35/lib/python3.5/site-packages/pythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.egg\r\nProcessing dependencies for pythonnet==2.2.0.dev1\r\nFinished processing dependencies for pythonnet==2.2.0.dev1\r\n```\r\n\r\n","author":{"url":"https://github.com/fractus","@type":"Person","name":"fractus"},"datePublished":"2017-02-18T15:42:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/392/pythonnet/issues/392"}
| 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:ac34e0c3-6385-93a6-2ed3-3ee78caf1ee4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCBC:199F7E:2A86FAD:3BCE7FC:69710381 |
| html-safe-nonce | f74931bde347deda52937cb2a525a9a8de263d95c17fa1edf97ddacf3ba3bc8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0JDOjE5OUY3RToyQTg2RkFEOjNCQ0U3RkM6Njk3MTAzODEiLCJ2aXNpdG9yX2lkIjoiNTE0NTQ3ODc5MzU1OTg2ODI4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf7b15542ad33f1ab4851b3ed96d18eb15760d9eadfa747434e6e2761ccfc7df |
| hovercard-subject-tag | issue:208649187 |
| 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/392/issue_layout |
| twitter:image | https://opengraph.githubassets.com/936c00959e37315f037685d6a3ed902123249d1dbf719a8ac3991ed630696539/pythonnet/pythonnet/issues/392 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/936c00959e37315f037685d6a3ed902123249d1dbf719a8ac3991ed630696539/pythonnet/pythonnet/issues/392 |
| og:image:alt | Environment Pythonnet version: v2.2.0-dev1-26-gb1cd3d1 (git describe --tags), branch mac-osx Python version: Python 3.5.2 :: Anaconda 4.3.0 (x86_64) Operating System: OSX El Capitan 10.11.6 Details... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fractus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d17fd2bbd784dc91f3a78a2f1d2c41d9f4f8ce86136d09833e3cf21b2bde1b7 |
| 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 | e053d923fb27a9d948f8cefae8ba3bf43f7b938f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width