On Fri, May 3, 2019 at 1:32 AM Parthiban Nallathambi
<[email protected]> wrote:
>
> Hello Khem,
>
> On 5/2/19 11:07 PM, Khem Raj wrote:
> > On Wed, May 1, 2019 at 10:36 AM Parthiban <[email protected]> wrote:
> >>
> >> Hello All,
> >>
> >> I am trying to compile the python3-tinydb and the compilation is 
> >> successful, but install
> >> fails with below error,
> >>
> >> *| ModuleNotFoundError: No module named '_sysconfigdata'*
> >>
> >> I could fix this error by copying,
> >>
> >> cp ./recipe-sysroot-native/usr/lib/python-sysconfigdata/_sysconfigdata.py 
> >> recipe-sysroot-native/usr/lib/python3.7/
> >>
> >
> > this should be done via do_install to move this file into
> > ${D}${libdir}/${PYTHON_DIR}
>
> Do you meant to fix this in python3_3.7.2.bb by copying it?
>

yes

> Thanks,
> Parthiban N
> >
> >> But not sure the way to fix it in build environment and not sure about the 
> >> proper
> >> way to make this module visible during build.
> >>
> >> Thanks,
> >> Parthiban N
> >>
> >> *Full error log:*
> >> ERROR: python3-tinydb-3.13.0-r0 do_install: 'python3 setup.py install 
> >> --root=/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/image
> >>      --prefix=/usr     --install-lib=/usr/lib/python3.7/site-packages     
> >> --install-data=/usr/share' execution failed.
> >> ERROR: python3-tinydb-3.13.0-r0 do_install: Function failed: do_install 
> >> (log file is located at 
> >> /work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/temp/log.do_install.3000311)
> >> ERROR: Logfile of failure stored in: 
> >> /work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/temp/log.do_install.3000311
> >> Log data follows:
> >> | DEBUG: Executing python function extend_recipe_sysroot
> >> | NOTE: Direct dependencies are 
> >> ['virtual:native:/work/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot',
> >>  '/work/meta/recipes-core/glibc/glibc_2.29.bb:do_populate_sysroot', 
> >> 'virtual:native:/work/meta/recipes-devtools/python/python3_3.7.2.bb:do_populate_sysroot',
> >>  
> >> 'virtual:native:/work/meta-openembedded/meta-python/recipes-devtools/python/python3-pytest-runner_4.2.bb:do_populate_sysroot',
> >>  '/work/meta/recipes-devtools/gcc/gcc-runtime_8.3.bb:do_populate_sysroot', 
> >> '/work/meta/recipes-devtools/gcc/gcc-cross_8.3.bb:do_populate_sysroot', 
> >> '/work/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot']
> >> | NOTE: Installed into sysroot: []
> >> | NOTE: Skipping as already exists in sysroot: ['pseudo-native', 'glibc', 
> >> 'python3-native', 'python3-pytest-runner-native', 'gcc-runtime', 
> >> 'gcc-cross-arm', 'quilt-native', 'python3-setuptools-native', 
> >> 'python3-py-native', 'python3-setuptools-scm-native', 
> >> 'linux-libc-headers', 'gdbm-native', 'xz-native', 'sqlite3-native', 
> >> 'util-linux-native', 'automake-native', 'autoconf-native', 
> >> 'pkgconfig-native', 'libffi-native', 'libtirpc-native', 'readline-native', 
> >> 'gnu-config-native', 'openssl-native', 'libtool-native', 'libnsl2-native', 
> >> 'zlib-native', 'bzip2-native', 'libgcc', 'binutils-cross-arm', 
> >> 'texinfo-dummy-native', 'libmpc-native', 'mpfr-native', 'flex-native', 
> >> 'gmp-native', 'unzip-native', 'gettext-minimal-native', 'ncurses-native', 
> >> 'm4-native']
> >> | DEBUG: Python function extend_recipe_sysroot finished
> >> | DEBUG: Executing shell function do_install
> >> | running install
> >> | Traceback (most recent call last):
> >> |   File "setup.py", line 59, in <module>
> >> |     long_description=read('README.rst'),
> >> |   File 
> >> "/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/recipe-sysroot-native/usr/lib/python3.7/site-packages/setuptools/__init__.py",
> >>  line 145, in setup
> >> |     return distutils.core.setup(**attrs)
> >> |   File 
> >> "/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/recipe-sysroot-native/usr/lib/python3.7/distutils/core.py",
> >>  line 148, in setup
> >> |     dist.run_commands()
> >> |   File 
> >> "/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/recipe-sysroot-native/usr/lib/python3.7/distutils/dist.py",
> >>  line 966, in run_commands
> >> |     self.run_command(cmd)
> >> |   File 
> >> "/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/recipe-sysroot-native/usr/lib/python3.7/distutils/dist.py",
> >>  line 984, in run_command
> >> |     cmd_obj.ensure_finalized()
> >> |   File 
> >> "/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/recipe-sysroot-native/usr/lib/python3.7/distutils/cmd.py",
> >>  line 107, in ensure_finalized
> >> |     self.finalize_options()
> >> |   File 
> >> "/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/recipe-sysroot-native/usr/lib/python3.7/site-packages/setuptools/command/install.py",
> >>  line 38, in finalize_options
> >> |     orig.install.finalize_options(self)
> >> |   File 
> >> "/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/recipe-sysroot-native/usr/lib/python3.7/distutils/command/install.py",
> >>  line 284, in finalize_options
> >> |     (prefix, exec_prefix) = get_config_vars('prefix', 'exec_prefix')
> >> |   File 
> >> "/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/recipe-sysroot-native/usr/lib/python3.7/distutils/sysconfig.py",
> >>  line 472, in get_config_vars
> >> |     func()
> >> |   File 
> >> "/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/recipe-sysroot-native/usr/lib/python3.7/distutils/sysconfig.py",
> >>  line 432, in _init_posix
> >> |     _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
> >> | ModuleNotFoundError: No module named '_sysconfigdata'
> >> | ERROR: 'python3 setup.py install 
> >> --root=/work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/image
> >>      --prefix=/usr     --install-lib=/usr/lib/python3.7/site-packages     
> >> --install-data=/usr/share' execution failed.
> >> | WARNING: 
> >> /work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/temp/run.do_install.3000311:1
> >>  exit 1 from 'exit 1'
> >> | ERROR: Function failed: do_install (log file is located at 
> >> /work/build/tmp/work/armv7at2hf-neon-metr-linux-gnueabi/python3-tinydb/3.13.0-r0/temp/log.do_install.3000311)
> >> ERROR: Task 
> >> (/work/meta-openembedded/meta-python/recipes-devtools/python/python3-tinydb_3.13.0.bb:do_install)
> >>  failed with exit code '1'
> >> NOTE: Tasks Summary: Attempted 920 tasks of which 919 didn't need to be 
> >> rerun and 1 failed.
> >>
> >> Summary: 1 task failed:
> >>    
> >> /work/meta-openembedded/meta-python/recipes-devtools/python/python3-tinydb_3.13.0.bb:do_install
> >> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
> >> --
> >> _______________________________________________
> >> Openembedded-devel mailing list
> >> [email protected]
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to