Skip to contentSkip to conversation

OPencv 3.1 with Rocko #rocko

DISCUSSION [email protected] 2 participants 4 messages Apr 1, 2021

lore
Share & tools
lore
#0 lore raw

Observing following error
while generationg rootfs with Packages of opencv 2.4 and 3.1

RROR: opencv-3.1+gitAUTOINC+92387b1ef8-r0 do_package: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:populate_packages(d)
0003:
File: '/home/tel/imx_yocto_Rocko/sources/poky/meta/classes/package.bbclass', lineno: 1109, function: populate_packages 1105:        d.setVar('FILES_%s' % src_package_name, '/usr/src/debug')
1106:
1107:    # Sanity check PACKAGES for duplicates
1108:    # Sanity should be moved to sanity.bbclass once we have the infrastucture
*** 1109:    package_list = []
1110:
1111:    for pkg in packages.split():
1112:        if pkg in package_list:
1113:            msg = "%s is listed in PACKAGES multiple times, this leads to packaging errors." % pkg
Exception: AttributeError: module 'bb.data' has no attribute 'setVar'

ERROR: opencv-3.1+gitAUTOINC+92387b1ef8-r0 do_package: Function failed: populate_packages
ERROR: Logfile of failure stored in: /home/tel/imx_yocto_Rocko/build_imx6ull/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/opencv/3.1+gitAUTOINC+92387b1ef8-r0/temp/log.do_package.17885
ERROR: Task (/home/tel/imx_yocto_Rocko/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_3.1.bb:do_package) failed with exit code

does any one guide me throgh this ?

#1 lore raw

Did you try doing a cleansstate on opencv and attempting the build again?

..Ch:W..

Quoted 40 lines · On Thu, Apr 1, 2021 at 5:28 AM <[email protected]> wrote:

Observing following error
while generationg rootfs with Packages of opencv 2.4 and 3.1

RROR: opencv-3.1+gitAUTOINC+92387b1ef8-r0 do_package: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>

     0001:
 *** 0002:populate_packages(d)
     0003:

File:
'/home/tel/imx_yocto_Rocko/sources/poky/meta/classes/package.bbclass',
lineno: 1109, function: populate_packages
1105: d.setVar('FILES_%s' % src_package_name, '/usr/src/debug')
1106:
1107: # Sanity check PACKAGES for duplicates
1108: # Sanity should be moved to sanity.bbclass once we have the
infrastucture
*** 1109: package_list = []
1110:
1111: for pkg in packages.split():
1112: if pkg in package_list:
1113: msg = "%s is listed in PACKAGES multiple times, this
leads to packaging errors." % pkg
Exception: AttributeError: module 'bb.data' has no attribute 'setVar'

ERROR: opencv-3.1+gitAUTOINC+92387b1ef8-r0 do_package: Function failed:
populate_packages
ERROR: Logfile of failure stored in:
/home/tel/imx_yocto_Rocko/build_imx6ull/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/opencv/3.1+gitAUTOINC+92387b1ef8-r0/temp/log.do_package.17885
ERROR: Task
(/home/tel/imx_yocto_Rocko/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_3.1.bb:do_package)
failed with exit code

does any one guide me throgh this ?

Signature · 2 lines
*"Perfection must be reached by degrees; she requires the slow hand of
time." - Voltaire*
#2 lore raw

Thank you Chuck Wolber for valuable response.
Yeah I have tried it with cleanstate on opencv  and build it again but still did not worked.