From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Yocto recipe for scikit-learn To: openembedded-devel@lists.openembedded.org From: kodali13451@gmail.com X-Originating-Location: Frisco, Texas, US (107.204.20.30) X-Originating-Platform: Mac Chrome 87 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 12 Jan 2021 07:35:44 -0800 Message-ID: Content-Type: multipart/alternative; boundary="qYw8Lj3ogIkBwieKnuic" --qYw8Lj3ogIkBwieKnuic Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I am trying to create a `yocto` `recipe` for `scikit-learn` package. It dep= ends on `scipy` pacakge. I was able to successfully build the `scipy` packa= ge using : https://github.com/gpanders/ meta-scipy ( https://github.com/gpa= nders/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 th= e `meta-scipy`, i am running `bitbake python3-scipy` and the build was succ= essful. 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 =3D "scikit-learn" LICENSE =3D "BSD" LIC_FILES_CHKSUM=C2=A0 =3D "file://PKG-INFO;beginline=3D8; endline=3D8;md5= = =3D 40ee42dc5a49f1617c5c78f16c50e0 65" SRC_URI[sha256sum] =3D " 20766f515e6cd6f954554387dfae70 5d93c7b544ec0e6c6a= 5d8e006f6f7e f480" inherit pypi setuptools3 #DEPENDS =3D "${PYTHON_PN}-numpy-native ${PYTHON_PN}-numpy ${PYTHON_PN}-sc= ipy ${PYTHON_PN}-joblib ${PYTHON_PN}" DEPENDS =3D "${PYTHON_PN}-numpy-native ${PYTHON_PN}-numpy ${PYTHON_PN}-sci= py ${PYTHON_PN}" RDEPENDS_${PN} +=3D "${PYTHON_PN}-numpy ${PYTHON_PN}-scipy" ``` When I run the `bitbake python3-scikit-learn`, i am getting this `ModuleNo= tFoundError: 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- sysroo= t-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 tha= t it will be included/copied to the `devshell`. Or do I need to update/fix = something else. Appreciate any guidance on this. --qYw8Lj3ogIkBwieKnuic Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
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-scip= y
 
When I run `bitbake python3-scikit-learn`, i am getting t= he 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 pat= ches listed in the `meta-scipy`, i am running `bitbake python3-scipy` and t= he build was successful.
 
Then, I created a `recipe` file with the name `python3-= scikit-learn_0.23.2.bb` and the contents are as below.
 
```
PYPI_PACKAGE =3D "scikit-learn"
 
LICENSE =3D "BSD"
LIC_FILES_CHKSUM  =3D "file://PKG-INFO;beginline=3D8= ;endline=3D8;md5=3D40ee42dc5a49f1617c5c78f16c50e065"
 
SRC_URI[sha256sum] =3D "20766f515e6cd6f954554387df= ae705d93c7b544ec0e6c6a5d8e006f6f7ef480"
 
inherit pypi setuptools3
 
#DEPENDS =3D "${PYTHON_PN}-numpy-native ${PYTHON_PN}-nump= y ${PYTHON_PN}-scipy ${PYTHON_PN}-joblib ${PYTHON_PN}"
DEPENDS =3D "${PYTHON_PN}-numpy-native ${PYTHON_PN}-numpy= ${PYTHON_PN}-scipy ${PYTHON_PN}"
 
RDEPENDS_${PN} +=3D "${PYTHON_PN}-numpy ${PYTHON_PN}-scip= y"
```
 
When I run the `bitbake python3-scikit-learn`, i am getti= ng 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-l= earn/0.23.2-r0/recipe-sysroot-native/usr/lib/python3.8/site-p= ackages`), and i can only see the `numpy` package there, but `scipy` packag= e 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 ne= ed to update/fix something else. 
 
Appreciate any guidance on this. 
--qYw8Lj3ogIkBwieKnuic--