python3, pyscard, setuptools ModuleNotFound. Why?


Mauro Ziliani
 

Hi all.

I'd like to include pyscard from pypi in my bsp.

I'm using zeus and python3.


The recipe for pyscard is placed in recipes-devtools/python of my layer

The recipe name s python3-pyscard_1.9.9.bb

This is the recipe


# PYScard
#
#
LICENSE="LGPL-2.1"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d0227c3c90dc0a9eae8b0a64acd8c6e1"

PYPI_PACKAGE="pyscard"


inherit pypi setuptools3

SRC_URI[md5sum] = "a8e94032ca8dec22a6c559a7afd41998"
SRC_URI[sha256sum] = "e6bde541990183858740793806b1c7f4e798670519ae4c96145f35d5d7944c20"


DEPENDS = " \
    swig \
"

Why bitbake tell this error?

Sstate summary: Wanted 5 Found 0 Missed 5 Current 168 (0% match, 97% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
NOTE: Running task 678 of 773 (/home/mauro/yocto/zeus/sources/meta-custom/recipes-devtools/python/python3-pyscard_1.9.9.bb:do_configure)
NOTE: recipe python3-pyscard-1.9.9-r0: task do_configure: Started
ERROR: python3-pyscard-1.9.9-r0 do_configure: Execution of '/home/mauro/yocto/zeus/qt10-build/tmp-glibc/work/core2-32-oe-linux/python3-pyscard/1.9.9-r0/temp/run.do_configure.1232' failed with exit code 1:
Traceback (most recent call last):
  File "setup.py", line 31, in <module>
    from setuptools import setup, Extension
ModuleNotFoundError: No module named 'setuptools'
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/mauro/yocto/zeus/qt10-build/tmp-glibc/work/core2-32-oe-linux/python3-pyscard/1.9.9-r0/temp/log.do_configure.1232
Log data follows:
| DEBUG: Executing shell function do_configure
| Traceback (most recent call last):
|   File "setup.py", line 31, in <module>
|     from setuptools import setup, Extension
| ModuleNotFoundError: No module named 'setuptools'
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/mauro/yocto/zeus/qt10-build/tmp-glibc/work/core2-32-oe-linux/python3-pyscard/1.9.9-r0/temp/run.do_configure.1232' failed with exit code 1:
| Traceback (most recent call last):
|   File "setup.py", line 31, in <module>
|     from setuptools import setup, Extension
| ModuleNotFoundError: No module named 'setuptools'
| WARNING: exit code 1 from a shell command.
|
NOTE: recipe python3-pyscard-1.9.9-r0: task do_configure: Failed
ERROR: Task (/home/mauro/yocto/zeus/sources/meta-custom/recipes-devtools/python/python3-pyscard_1.9.9.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 765 tasks of which 764 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/mauro/yocto/zeus/sources/meta-custom/recipes-devtools/python/python3-pyscard_1.9.9.bb:do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.


Thanks all

MZ

Join yocto@lists.yoctoproject.org to automatically receive all group messages.