Title: Libopenblas issues in conda build when adding
Open Graph Title: Libopenblas issues in conda build when adding
X Title: Libopenblas issues in conda build when adding
Description: If I clone this repo, it works great. If I add some simple pybind11/numpy functionality (passing a numpy array in and out), I run into trouble on OSX, when trying to build a conda package. Doing a pip install in my conda env is fine; com...
Open Graph Description: If I clone this repo, it works great. If I add some simple pybind11/numpy functionality (passing a numpy array in and out), I run into trouble on OSX, when trying to build a conda package. Doing a ...
X Description: If I clone this repo, it works great. If I add some simple pybind11/numpy functionality (passing a numpy array in and out), I run into trouble on OSX, when trying to build a conda package. Doing a ...
Opengraph URL: https://github.com/pybind/python_example/issues/66
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Libopenblas issues in conda build when adding \u003cpybind11/numpy.h\u003e functionality on OSX","articleBody":"If I clone this repo, it works great. If I add some simple pybind11/numpy functionality (passing a numpy array in and out), I run into trouble on OSX, when trying to build a conda package. \r\n\r\n- Doing a pip install in my conda env is fine; compiles, links, passes tests. Though I have not tried relocating the wheel to another env than the one it is built in, which I suspect might trigger the same problem.\r\n- The conda build works just fine on linux.\r\n- Obviously, I did add numpy to both my host and run requirements. But it cant find libopenblas when invoking the test. libopenblas and liblapack are in the test environment as you would expect, them being a numpy dependency.\r\n- Problem happens regardless of python version on OSX\r\n\r\nPerhaps adding a little pybind/numpy to this example repo would be cool. Probably this is something simple that more seasoned OSX-linking-gurus can spot easily, but it eludes me after a few days of messing around with it.\r\n\r\nHere is what the conda build tests have to say:\r\n```\r\nHint: make sure your test modules/packages have valid Python names.\r\nTraceback:\r\n../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.8/importlib/__init__.py:127: in import_module\r\n return _bootstrap._gcd_import(name[level:], package, level)\r\ntests/test_pyopcode.py:1: in \u003cmodule\u003e\r\n import numpy as np\r\n../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.8/site-packages/numpy/__init__.py:142: in \u003cmodule\u003e\r\n from . import add_newdocs\r\n../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.8/site-packages/numpy/add_newdocs.py:13: in \u003cmodule\u003e\r\n from numpy.lib import add_newdoc\r\n../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.8/site-packages/numpy/lib/__init__.py:8: in \u003cmodule\u003e\r\n from .type_check import *\r\n../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.8/site-packages/numpy/lib/type_check.py:11: in \u003cmodule\u003e\r\n import numpy.core.numeric as _nx\r\n../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.8/site-packages/numpy/core/__init__.py:14: in \u003cmodule\u003e\r\n from . import multiarray\r\nE ImportError: dlopen($PREFIX/lib/python3.8/site-packages/numpy/core/multiarray.cpython-38-darwin.so, 2): Library not loaded: @rpath/libopenblas.dylib\r\nE Referenced from: $PREFIX/lib/python3.8/site-packages/numpy/core/multiarray.cpython-38-darwin.so\r\nE Reason: image not found\r\n\r\n```","author":{"url":"https://github.com/EelcoHoogendoorn","@type":"Person","name":"EelcoHoogendoorn"},"datePublished":"2020-11-23T19:33:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/66/python_example/issues/66"}
| 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:2b8a831d-59a6-9244-087c-5871066ba81e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5D0:5F86D:1039F04:1571A60:69717FFB |
| html-safe-nonce | 27dde199f0c46fd0790ff0d833b0674fbe3d7f33d599199180ceb64202b99c85 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUQwOjVGODZEOjEwMzlGMDQ6MTU3MUE2MDo2OTcxN0ZGQiIsInZpc2l0b3JfaWQiOiIzNDExNjQ3MDkyMjY0ODk0NDU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cda69bed88b1d27266e2410f9abb8d3d21fe137132107e12ec7b589d1cf51b60 |
| hovercard-subject-tag | issue:749069130 |
| 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/pybind/python_example/66/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41e35fc36f83b7311faa88bba8f27be703195ac01d6cb65cb533a19f522682b5/pybind/python_example/issues/66 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41e35fc36f83b7311faa88bba8f27be703195ac01d6cb65cb533a19f522682b5/pybind/python_example/issues/66 |
| og:image:alt | If I clone this repo, it works great. If I add some simple pybind11/numpy functionality (passing a numpy array in and out), I run into trouble on OSX, when trying to build a conda package. Doing a ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EelcoHoogendoorn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83f241b6f7605f8428e9ff3118ca968f3a377f07904e088dfd9465a7c12cc367 |
| turbo-cache-control | no-preview |
| go-import | github.com/pybind/python_example git https://github.com/pybind/python_example.git |
| octolytics-dimension-user_id | 17565521 |
| octolytics-dimension-user_login | pybind |
| octolytics-dimension-repository_id | 50649061 |
| octolytics-dimension-repository_nwo | pybind/python_example |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50649061 |
| octolytics-dimension-repository_network_root_nwo | pybind/python_example |
| 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 | 742da896705f64f8f87756c8e5cc3175bdbeb85e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width