cancel
Showing results for 
Search instead for 
Did you mean: 

stm32mp157a ycoto build error :python3-setuptools-scm_2.1.0.bb:do_install

Kaushendra
Associate II

Hi,

I'm trying to build yocto environment setup for stm32mp157a Board with link https://github.com/dh-electronics/manifest-av96

during build operation i'm facing below python related error:

| + printf %b\0 bbfatal_log 'python3 setup.py install --root=/home/kaushendra/Avenger96/build-openstlinuxweston-stm32mp1-av96/tmp-glibc/work/x86_64-linux/python3-setuptools-scm-native/2.1.0-r0/image    --prefix=/home/kaushendra/Avenger96/build-openstlinuxweston-stm32mp1-av96/tmp-glibc/work/x86_64-linux/python3-setuptools-scm-native/2.1.0-r0/recipe-sysroot-native/usr    --install-lib=/home/kaushendra/Avenger96/build-openstlinuxweston-stm32mp1-av96/tmp-glibc/work/x86_64-linux/python3-setuptools-scm-native/2.1.0-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages    --install-data=/home/kaushendra/Avenger96/build-openstlinuxweston-stm32mp1-av96/tmp-glibc/work/x86_64-linux/python3-setuptools-scm-native/2.1.0-r0/recipe-sysroot-native/usr/share' execution failed.
 
 | + exit 1
 
 | + bb_exit_handler
 
 | + ret=1
 
 | + echo WARNING: exit code 1 from a shell command.
 
 | WARNING: exit code 1 from a shell command.
 
 | + exit 1
 
 |
 
 | + printf %b\0 bbfatal_log 'python3 setup.py install --root=/home/kaushendra/Avenger96/build-openstlinuxweston-stm32mp1-av96/tmp-glibc/work/x86_64-linux/python3-setuptools-scm-native/2.1.0-r0/image    --prefix=/home/kaushendra/Avenger96/build-openstlinuxweston-stm32mp1-av96/tmp-glibc/work/x86_64-linux/python3-setuptools-scm-native/2.1.0-r0/recipe-sysroot-native/usr    --install-lib=/home/kaushendra/Avenger96/build-openstlinuxweston-stm32mp1-av96/tmp-glibc/work/x86_64-linux/python3-setuptools-scm-native/2.1.0-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages    --install-data=/home/kaushendra/Avenger96/build-openstlinuxweston-stm32mp1-av96/tmp-glibc/work/x86_64-linux/python3-setuptools-scm-native/2.1.0-r0/recipe-sysroot-native/usr/share' execution failed.
 
 | + exit 1
 
 | + bb_exit_handler
 
 | + ret=1
 
 | + echo WARNING: exit code 1 from a shell command.
 
 | WARNING: exit code 1 from a shell command.
 
 | + exit 1
 
 | ERROR: Function failed: do_install (log file is located at /home/kaushendra/Avenger96/build-openstlinuxweston-stm32mp1-av96/tmp-glibc/work/x86_64-linux/python3-setuptools-scm-native/2.1.0-r0/temp/log.do_install.29074)
 
 DEBUG: Inheriting /home/kaushendra/Avenger96/layers/openembedded-core/meta/classes/python3-dir.bbclass (from /home/kaushendra/Avenger96/layers/openembedded-core/meta/classes/python3native.bbclass:1)
 
 ERROR: Task (virtual:native:/home/kaushendra/Avenger96/layers/meta-openembedded/meta-python/recipes-devtools/python/python3-setuptools-scm_2.1.0.bb:do_install) failed with exit code '1'

I searched over google but didn't find any proper solution for it

help will be appreciated.

Regards,

kaushendra

2 REPLIES 2
OlivierK
ST Employee

Hi Kaushendra (Community Member)

No issues so far on my side. At what stage of the bitbake you get this error message? right at the start of bitbake?

Have you accepted the EULA? I use Python 2.7.12.

Other suggestions, have you installed the 3.2 chapter "extra packages" mentioned in the PC prerequisites?

https://wiki.st.com/stm32mpu/wiki/PC_prerequisites

Best Regards,

Olivier

Kaushendra
Associate II

Hi @OlivierK​ 

Thanks for the feedback.

I have followed the pre-requisites.

But i'm using Ubuntu18.04.

I was able to resolve the issue by upgrading the package to python-setuptools-scm

Please find the changes done as given below:

 meta-python/recipes-devtools/python/python-setuptools-scm.inc | 4 ++--
 ...setuptools-scm_2.1.0.bb => python-setuptools-scm_3.3.3.bb} | 0
 ...etuptools-scm_2.1.0.bb => python3-setuptools-scm_3.3.3.bb} | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python-setuptools-scm_2.1.0.bb => python-setuptools-scm_3.3.3.bb} (100%)
 rename meta-python/recipes-devtools/python/{python3-setuptools-scm_2.1.0.bb => python3-setuptools-scm_3.3.3.bb} (100%)
 
diff --git a/meta-python/recipes-devtools/python/python-setuptools-scm.inc b/meta-python/recipes-devtools/python/python-setuptools-scm.inc
index 98883ec39..a7e1bf6ad 100644
--- a/meta-python/recipes-devtools/python/python-setuptools-scm.inc
+++ b/meta-python/recipes-devtools/python/python-setuptools-scm.inc
@@ -2,8 +2,8 @@ SUMMARY = "the blessed package to manage your versions by scm tags"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489"
 
-SRC_URI[md5sum] = "cfec5d2dbbd0a85c40066f79035b5878"
-SRC_URI[sha256sum] = "a767141fecdab1c0b3c8e4c788ac912d7c94a0d6c452d40777ba84f918316379"
+SRC_URI[md5sum] = "50b2199082fe808d032ec1710c9d7415"
+SRC_URI[sha256sum] = "bd25e1fb5e4d603dcf490f1fde40fb4c595b357795674c3e5cb7f6217ab39ea5"
 
 PYPI_PACKAGE = "setuptools_scm"
 inherit pypi
diff --git a/meta-python/recipes-devtools/python/python-setuptools-scm_2.1.0.bb b/meta-python/recipes-devtools/python/python-setuptools-scm_3.3.3.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python-setuptools-scm_2.1.0.bb
rename to meta-python/recipes-devtools/python/python-setuptools-scm_3.3.3.bb
diff --git a/meta-python/recipes-devtools/python/python3-setuptools-scm_2.1.0.bb b/meta-python/recipes-devtools/python/python3-setuptools-scm_3.3.3.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-setuptools-scm_2.1.0.bb
rename to meta-python/recipes-devtools/python/python3-setuptools-scm_3.3.3.bb

Regards,

kaushenra