All of lore.kernel.org
 help / color / mirror / Atom feed
* Yocto recipe for scikit-learn
@ 2021-01-12 15:35 kodali13451
  2021-01-12 16:41 ` [oe] " Jack Mitchell
  0 siblings, 1 reply; 8+ messages in thread
From: kodali13451 @ 2021-01-12 15:35 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2059 bytes --]

I am trying to create a `yocto` `recipe` for `scikit-learn` package. It depends on `scipy` pacakge. I was able to successfully build the `scipy` package using : https://github.com/gpanders/ meta-scipy ( https://github.com/gpanders/meta-scipy ).

When I run `bitbake python3-scikit-learn`, i am getting the below error:
`ModuleNotFoundError: No module named 'scipy'`

I am executing the commands in the below order.

Once I have cloned/copied the `scipy` recipes and the patches listed in the `meta-scipy`, i am running `bitbake python3-scipy` and the build was successful.

Then, I created a `recipe` file with the name ` python3-scikit-learn_0.23.2. bb ( http://python3-scikit-learn_0.23.2.bb/ ) ` and the contents are as below.

```
PYPI_PACKAGE = "scikit-learn"

LICENSE = "BSD"
LIC_FILES_CHKSUM  = "file://PKG-INFO;beginline=8; endline=8;md5= 40ee42dc5a49f1617c5c78f16c50e0 65"

SRC_URI[sha256sum] = " 20766f515e6cd6f954554387dfae70 5d93c7b544ec0e6c6a5d8e006f6f7e f480"

inherit pypi setuptools3

#DEPENDS = "${PYTHON_PN}-numpy-native ${PYTHON_PN}-numpy ${PYTHON_PN}-scipy ${PYTHON_PN}-joblib ${PYTHON_PN}"
DEPENDS = "${PYTHON_PN}-numpy-native ${PYTHON_PN}-numpy ${PYTHON_PN}-scipy ${PYTHON_PN}"

RDEPENDS_${PN} += "${PYTHON_PN}-numpy ${PYTHON_PN}-scipy"
```

When I run the `bitbake python3-scikit-learn`, i am getting this `ModuleNotFoundError: No module named 'scipy'`

Checked the path where the `devshell python3` is looking (`poky/build/tmp-glibc/work/ aarch64-oe-linux/python3- scikit-learn/0.23.2-r0/recipe- sysroot-native/usr/lib/ python3.8/site-packages`), and i can only see the `numpy` package there, but `scipy` package is not there.

`ls` command output :
```easy_install.py
numpy
numpy-1.17.4-py3.8.egg-info
pkg_resources
__pycache__
README.txt
setuptools
setuptools-45.2.0-py3.8.egg- info
```

Can someone point me on how to include the `python3-scipy` package, so that it will be included/copied to the `devshell`. Or do I need to update/fix something else.

Appreciate any guidance on this.

[-- Attachment #2: Type: text/html, Size: 7095 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-01-13 21:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 15:35 Yocto recipe for scikit-learn kodali13451
2021-01-12 16:41 ` [oe] " Jack Mitchell
2021-01-12 16:57   ` Marek Belisko
2021-01-13 12:02     ` Jack Mitchell
2021-01-13 16:19       ` kodali13451
2021-01-13 16:28         ` [oe] " Jack Mitchell
2021-01-13 21:31           ` kodali13451
2021-01-13 21:18       ` [oe] " Marek Belisko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.