Title: yocto recipe for this example · Issue #189 · pybind/python_example · GitHub
Open Graph Title: yocto recipe for this example · Issue #189 · pybind/python_example
X Title: yocto recipe for this example · Issue #189 · pybind/python_example
Description: I have a very basic idea about Yocto. I have added python3-pybind11 package into IMAGE_INSTALL and I checked if it is in the target: root@qemuarm64:~# python3 Python 3.8.18 (default, Aug 24 2023, 19:48:18) [GCC 9.5.0] on linux Type "help...
Open Graph Description: I have a very basic idea about Yocto. I have added python3-pybind11 package into IMAGE_INSTALL and I checked if it is in the target: root@qemuarm64:~# python3 Python 3.8.18 (default, Aug 24 2023, 1...
X Description: I have a very basic idea about Yocto. I have added python3-pybind11 package into IMAGE_INSTALL and I checked if it is in the target: root@qemuarm64:~# python3 Python 3.8.18 (default, Aug 24 2023, 1...
Opengraph URL: https://github.com/pybind/python_example/issues/189
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"yocto recipe for this example","articleBody":"I have a very basic idea about Yocto. I have added `python3-pybind11` package into `IMAGE_INSTALL` and I checked if it is in the target:\r\n```\r\nroot@qemuarm64:~# python3\r\nPython 3.8.18 (default, Aug 24 2023, 19:48:18) \r\n[GCC 9.5.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import pybind11\r\n\u003e\u003e\u003e pybind11.__version__\r\n'2.4.3'\r\n```\r\nThe version is a bit old. Anyway I have changed `pyproject.toml` by lowering the version in the example:\r\n```\r\n[build-system]\r\nrequires = [\r\n \"setuptools\u003e=42\",\r\n \"pybind11\u003e=2.4.0\", # \u003c\u003c changed this\r\n]\r\n...\r\n```\r\nWith this change, I still can build and run the example locally.\r\n\r\nI created this recipe by `devtool add`:\r\n```\r\nSUMMARY = \"A test project using pybind11\"\r\nHOMEPAGE = \"https://github.com/pybind/python_example\"\r\nLICENSE = \"Unknown\"\r\nLIC_FILES_CHKSUM = \"file://LICENSE;md5=153b3e05cd731791777324af9f7219b3\"\r\n\r\nSRC_URI = \"git://git@gitlab.com/sharedlib/python-example-pybind.git;protocol=ssh;branch=master\"\r\n\r\nPV = \"1.0+git${SRCPV}\"\r\nSRCREV = \"e2350ed9dad1c5b424f840c21079d51976463e41\"\r\n\r\nS = \"${WORKDIR}/git\"\r\n\r\ninherit setuptools3\r\n\r\nRDEPENDS_${PN} += \"python3-pybind11\"\r\n\r\nFILES_${PN} += \"/usr/lib/\"\r\n\r\n```\r\n\r\nAnd I got this error:\r\n```\r\nERROR: python-example-1.0+git999-r0 do_compile: 'python3 setup.py build ' execution failed.\r\nERROR: python-example-1.0+git999-r0 do_compile: Execution of '/workspaces/devcontainer-do/build/tmp/work/aarch64-poky-linux/python-example/1.0+git999-r0/temp/run.do_compile.701172' failed with exit code 1\r\nERROR: Logfile of failure stored in: /workspaces/devcontainer-do/build/tmp/work/aarch64-poky-linux/python-example/1.0+git999-r0/temp/log.do_compile.701172\r\nLog data follows:\r\n| DEBUG: Executing python function externalsrc_compile_prefunc\r\n| NOTE: python-example: compiling from external source tree /workspaces/devcontainer-do/build/workspace/sources/python-example\r\n| DEBUG: Python function externalsrc_compile_prefunc finished\r\n| DEBUG: Executing shell function do_compile\r\n| Traceback (most recent call last):\r\n| File \"setup.py\", line 2, in \u003cmodule\u003e\r\n| from pybind11.setup_helpers import Pybind11Extension, build_ext\r\n| ModuleNotFoundError: No module named 'pybind11'\r\n| ERROR: 'python3 setup.py build ' execution failed.\r\n| WARNING: exit code 1 from a shell command.\r\n```\r\n\r\nCan you help me?","author":{"url":"https://github.com/ymkim92","@type":"Person","name":"ymkim92"},"datePublished":"2024-02-04T03:50:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/189/python_example/issues/189"}
| 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:a52b2ecc-df93-76a2-71de-48f2048541e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84D8:1C5DF3:FF53C5:1504F23:69717FF7 |
| html-safe-nonce | 9cbbaa43282b4c3b091f9d5b3b49aceb410bccd3050a286475fd977b3e1f8465 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEQ4OjFDNURGMzpGRjUzQzU6MTUwNEYyMzo2OTcxN0ZGNyIsInZpc2l0b3JfaWQiOiIyNjYxNTQ2OTMyNTEyNTg3NzY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bb60df8cc463e53e0660b1221b1a5993ee65be67285494be47e54fd31ee22741 |
| hovercard-subject-tag | issue:2116868365 |
| 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/189/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e83fc47e7d9bda6e5397273d3efc8f7c55a5a310d985f3edfded64c0051286c/pybind/python_example/issues/189 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e83fc47e7d9bda6e5397273d3efc8f7c55a5a310d985f3edfded64c0051286c/pybind/python_example/issues/189 |
| og:image:alt | I have a very basic idea about Yocto. I have added python3-pybind11 package into IMAGE_INSTALL and I checked if it is in the target: root@qemuarm64:~# python3 Python 3.8.18 (default, Aug 24 2023, 1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ymkim92 |
| 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