Skip to contentSkip to conversation

Add python3-apscheduler #error

DISCUSSION [email protected] 4 participants 5 messages Jan 22, 2024 – Jan 23, 2024

lore
Share & tools
lore
#0 lore raw

SUMMARY = "In-process task scheduler with Cron-like capabilities" HOMEPAGE = "https://github.com/agronholm/apscheduler"

SECTION = "devel/python"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f0e423eea5c91e7aa21bdb70184b3e53"

PYPI_PACKAGE = "APScheduler"

SRC_URI[sha256sum] = "e6df071b27d9be898e486bc7940a7be50b4af2e9da7c08f0744a96d4bd4cef4a"

RDEPENDS:${PN} += "\
python3-six \
python3-pytz \
python3-tzlocal \
"

inherit pypi setuptools3

ERROR: python3-apscheduler-3.10.4-r0 do_compile: 'python3 setup.py bdist_wheel ' execution failed.
ERROR: python3-apscheduler-3.10.4-r0 do_compile: ExecutionError('/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/temp/run.do_compile.531694', 1, None, None)
ERROR: Logfile of failure stored in: /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/temp/log.do_compile.531694
Log data follows:

| DEBUG: Executing shell function do_compile
| /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.py:720: UserWarning: Usage of dash-separated 'upload-dir' will not be supported in future versions. Please use the underscore name 'upload_dir' instead
|   warnings.warn(
| /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
|   warnings.warn(
| /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3: No module named pip
| Traceback (most recent call last):
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/installer.py", line 82, in fetch_build_egg
|     subprocess.check_call(cmd)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/subprocess.py", line 369, in check_call
|     raise CalledProcessError(retcode, cmd)
| subprocess.CalledProcessError: Command '['/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpmh5cnujt', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/APScheduler-3.10.4/setup.py", line 10, in <module>
|     setup(
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 152, in setup
|     _install_setup_requires(attrs)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
|     dist.fetch_build_eggs(dist.setup_requires)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.py", line 809, in fetch_build_eggs
|     resolved_dists = pkg_resources.working_set.resolve(
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 771, in resolve
|     dist = best[req.key] = env.best_match(
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1056, in best_match
|     return self.obtain(req, installer)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1068, in obtain
|     return installer(requirement)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.py", line 880, in fetch_build_egg
|     return fetch_build_egg(self, req)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/installer.py", line 84, in fetch_build_egg
|     raise DistutilsError(str(e)) from e
| distutils.errors.DistutilsError: Command '['/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpmh5cnujt', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.
| ERROR: 'python3 setup.py bdist_wheel ' execution failed.
| WARNING: exit code 1 from a shell command.

ERROR: Task (/home/iot-yocto/src/poky/../meta-openembedded/meta-python/recipes-devtools/python/python3-apscheduler_3.10.4.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7610 tasks of which 7603 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/iot-yocto/src/poky/../meta-openembedded/meta-python/recipes-devtools/python/python3-apscheduler_3.10.4.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

#1 lore raw

can you try adding

DEPENDS += "python3-pip-native"

Quoted 79 lines · On Mon, Jan 22, 2024 at 2:04 PM <[email protected]> wrote:

SUMMARY = "In-process task scheduler with Cron-like capabilities" HOMEPAGE = "https://github.com/agronholm/apscheduler"

SECTION = "devel/python"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f0e423eea5c91e7aa21bdb70184b3e53"

PYPI_PACKAGE = "APScheduler"

SRC_URI[sha256sum] = "e6df071b27d9be898e486bc7940a7be50b4af2e9da7c08f0744a96d4bd4cef4a"

RDEPENDS:${PN} += "\
python3-six \
python3-pytz \
python3-tzlocal \
"

inherit pypi setuptools3

ERROR: python3-apscheduler-3.10.4-r0 do_compile: 'python3 setup.py bdist_wheel ' execution failed.
ERROR: python3-apscheduler-3.10.4-r0 do_compile: ExecutionError('/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/temp/run.do_compile.531694', 1, None, None)
ERROR: Logfile of failure stored in: /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/temp/log.do_compile.531694
Log data follows:

| DEBUG: Executing shell function do_compile
| /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.py:720: UserWarning: Usage of dash-separated 'upload-dir' will not be supported in future versions. Please use the underscore name 'upload_dir' instead
|   warnings.warn(
| /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
|   warnings.warn(
| /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3: No module named pip
| Traceback (most recent call last):
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/installer.py", line 82, in fetch_build_egg
|     subprocess.check_call(cmd)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/subprocess.py", line 369, in check_call
|     raise CalledProcessError(retcode, cmd)
| subprocess.CalledProcessError: Command '['/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpmh5cnujt', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/APScheduler-3.10.4/setup.py", line 10, in <module>
|     setup(
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 152, in setup
|     _install_setup_requires(attrs)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
|     dist.fetch_build_eggs(dist.setup_requires)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.py", line 809, in fetch_build_eggs
|     resolved_dists = pkg_resources.working_set.resolve(
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 771, in resolve
|     dist = best[req.key] = env.best_match(
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1056, in best_match
|     return self.obtain(req, installer)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1068, in obtain
|     return installer(requirement)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.py", line 880, in fetch_build_egg
|     return fetch_build_egg(self, req)
|   File "/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/installer.py", line 84, in fetch_build_egg
|     raise DistutilsError(str(e)) from e
| distutils.errors.DistutilsError: Command '['/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpmh5cnujt', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.
| ERROR: 'python3 setup.py bdist_wheel ' execution failed.
| WARNING: exit code 1 from a shell command.

ERROR: Task (/home/iot-yocto/src/poky/../meta-openembedded/meta-python/recipes-devtools/python/python3-apscheduler_3.10.4.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7610 tasks of which 7603 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/iot-yocto/src/poky/../meta-openembedded/meta-python/recipes-devtools/python/python3-apscheduler_3.10.4.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#108376): https://lists.openembedded.org/g/openembedded-devel/message/108376
Mute This Topic: https://lists.openembedded.org/mt/103897332/1997914
Mute #error:https://lists.openembedded.org/g/openembedded-devel/mutehashtag/error Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

I tried DEPENDS += "python3-pip-native", but there is an error:

| ERROR Missing dependencies:
| setuptools_scm

If I tried
DEPENDS += "python3-pip-native \
python3-setuptools-scm-native"
the compile succeeded.

  --
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 146 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Khem Raj
Sent: Tuesday, January 23, 2024 8:24 AM
To: [email protected]
Cc: [email protected]
Subject: Re: [oe] Add python3-apscheduler #error

can you try adding

DEPENDS += "python3-pip-native"

Quoted 8 lines · On Mon, Jan 22, 2024 at 2:04 PM <[email protected]> wrote:

SUMMARY = "In-process task scheduler with Cron-like capabilities" HOMEPAGE = "https://github.com/agronholm/apscheduler"

SECTION = "devel/python"

LICENSE = "MIT"
LIC_FILES_CHKSUM =

"file://LICENSE.txt;md5=f0e423eea5c91e7aa21bdb70184b3e53"

Quoted 4 lines

PYPI_PACKAGE = "APScheduler"

SRC_URI[sha256sum] =

"e6df071b27d9be898e486bc7940a7be50b4af2e9da7c08f0744a96d4bd4cef4a"

Quoted 10 lines

RDEPENDS:${PN} += "\
python3-six \
python3-pytz \
python3-tzlocal \
"

inherit pypi setuptools3

ERROR: python3-apscheduler-3.10.4-r0 do_compile: 'python3 setup.py

bdist_wheel ' execution failed.

Quoted 9 lines

ERROR: python3-apscheduler-3.10.4-r0 do_compile:
ExecutionError('/home/iot-yocto/build/tmp/work/armv8a-poky-linux/pytho n3-apscheduler/3.10.4-r0/temp/run.do_compile.531694', 1, None, None)
ERROR: Logfile of failure stored in:
/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3 .10.4-r0/temp/log.do_compile.531694
Log data follows:
| DEBUG: Executing shell function do_compile
|

/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10 .4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.py:
720: UserWarning: Usage of dash-separated 'upload-dir' will not be supported in future versions. Please use the underscore name 'upload_dir' instead

Quoted 2 lines

| warnings.warn(
|

/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10 .4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/installe r.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.

Quoted 3 lines
|   warnings.warn(
| /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler
| /3.10.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3: No

module named pip Traceback (most recent call last):

Quoted 1 line

| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/install er.py", line 82, in fetch_build_egg

Quoted 2 lines

| subprocess.check_call(cmd)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/subprocess.py", line 369, in check_call

Quoted 2 lines

| raise CalledProcessError(retcode, cmd)
| subprocess.CalledProcessError: Command

'['/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpmh5cnujt', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.

Quoted 5 lines
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
|   File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/APScheduler-3.10.4/setup.py", line 10, in <module>

Quoted 2 lines

| setup(
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/__init __.py", line 152, in setup

Quoted 2 lines

| _install_setup_requires(attrs)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/__init __.py", line 147, in _install_setup_requires

Quoted 2 lines

| dist.fetch_build_eggs(dist.setup_requires)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.p y", line 809, in fetch_build_eggs

Quoted 2 lines

| resolved_dists = pkg_resources.working_set.resolve(
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/_ _init__.py", line 771, in resolve

Quoted 2 lines

| dist = best[req.key] = env.best_match(
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/_ _init__.py", line 1056, in best_match

Quoted 2 lines

| return self.obtain(req, installer)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/_ _init__.py", line 1068, in obtain

Quoted 2 lines

| return installer(requirement)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.p y", line 880, in fetch_build_egg

Quoted 2 lines

| return fetch_build_egg(self, req)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/install er.py", line 84, in fetch_build_egg

Quoted 2 lines

| raise DistutilsError(str(e)) from e
| distutils.errors.DistutilsError: Command

'['/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpmh5cnujt', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.

Quoted 3 lines

| ERROR: 'python3 setup.py bdist_wheel ' execution failed. | WARNING: exit code 1 from a shell command.
ERROR: Task

(/home/iot-yocto/src/poky/../meta-openembedded/meta-python/recipes-devto ols/python/python3-apscheduler_3.10.4.bb:do_compile) failed with exit code '1'

Quoted 1 line

NOTE: Tasks Summary: Attempted 7610 tasks of which 7603 didn't need to be

rerun and 1 failed.

Quoted 10 lines

Summary: 1 task failed:

/home/iot-yocto/src/poky/../meta-openembedded/meta-python/recipes-devt ools/python/python3-apscheduler_3.10.4.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

#3 lore raw

This project uses setuptools.build_meta:
https://github.com/agronholm/apscheduler/blob/master/pyproject.toml#L6

Instead of “inherit setuptools3” please use “inherit python_setuptools_build_meta”
https://git.yoctoproject.org/poky/tree/meta/classes-recipe/python_setuptools_build_meta.bbclass

If you had used “devtool add” it would have detected this.

Quoted 207 lines · wangmy

I tried DEPENDS += "python3-pip-native", but there is an error:

| ERROR Missing dependencies:
| setuptools_scm

If I tried
DEPENDS += "python3-pip-native \
python3-setuptools-scm-native"
the compile succeeded.

--
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210
<https://www.google.com/maps/search/ST)+No.+6+Wenzhu+Road,+Nanjing,+210?entry=gmail&source=g>012,
China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 47 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Khem Raj
Sent: Tuesday, January 23, 2024 8:24 AM
To: [email protected]
Cc: [email protected]
Subject: Re: [oe] Add python3-apscheduler #error

can you try adding

DEPENDS += "python3-pip-native"

Quoted 8 lines · On Mon, Jan 22, 2024 at 2:04 PM <[email protected]> wrote:

SUMMARY = "In-process task scheduler with Cron-like capabilities" HOMEPAGE = "https://github.com/agronholm/apscheduler"

SECTION = "devel/python"

LICENSE = "MIT"
LIC_FILES_CHKSUM =

"file://LICENSE.txt;md5=f0e423eea5c91e7aa21bdb70184b3e53"

Quoted 4 lines

PYPI_PACKAGE = "APScheduler"

SRC_URI[sha256sum] =

"e6df071b27d9be898e486bc7940a7be50b4af2e9da7c08f0744a96d4bd4cef4a"

Quoted 10 lines

RDEPENDS:${PN} += "\
python3-six \
python3-pytz \
python3-tzlocal \
"

inherit pypi setuptools3

ERROR: python3-apscheduler-3.10.4-r0 do_compile: 'python3 setup.py

bdist_wheel ' execution failed.

Quoted 9 lines

ERROR: python3-apscheduler-3.10.4-r0 do_compile:
ExecutionError('/home/iot-yocto/build/tmp/work/armv8a-poky-linux/pytho n3-apscheduler/3.10.4-r0/temp/run.do_compile.531694', 1, None, None)
ERROR: Logfile of failure stored in:
/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3 .10.4-r0/temp/log.do_compile.531694
Log data follows:
| DEBUG: Executing shell function do_compile
|

Quoted 2 lines

/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10

.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.py:

Quoted 1 line

720: UserWarning: Usage of dash-separated 'upload-dir' will not be

supported in

Quoted 5 lines

future versions. Please use the underscore name 'upload_dir' instead

Quoted 2 lines

| warnings.warn(
|

/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10

.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/installe

Quoted 1 line

r.py:27: SetuptoolsDeprecationWarning: setuptools.installer is

deprecated.

Quoted 8 lines

Requirements should be satisfied by a PEP 517 installer.

Quoted 3 lines
|   warnings.warn(
| /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler
| /3.10.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3: No

module named pip Traceback (most recent call last):

Quoted 1 line

| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/install

Quoted 5 lines

er.py", line 82, in fetch_build_egg

Quoted 2 lines

| subprocess.check_call(cmd)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/subprocess.py", line

369, in

Quoted 4 lines

check_call

Quoted 2 lines

| raise CalledProcessError(retcode, cmd)
| subprocess.CalledProcessError: Command

'['/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

Quoted 1 line

0.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3', '-m',

'pip',

Quoted 1 line

'--disable-pip-version-check', 'wheel', '--no-deps', '-w',

'/tmp/tmpmh5cnujt',

Quoted 6 lines

'--quiet', 'setuptools_scm']' returned non-zero exit status 1.

Quoted 5 lines
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
|   File
Quoted 6 lines

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/APScheduler-3.10.4/setup.py", line 10, in <module>

Quoted 2 lines

| setup(
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/__init

Quoted 5 lines

__.py", line 152, in setup

Quoted 2 lines

| _install_setup_requires(attrs)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/__init

Quoted 5 lines

__.py", line 147, in _install_setup_requires

Quoted 2 lines

| dist.fetch_build_eggs(dist.setup_requires)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.p

Quoted 5 lines

y", line 809, in fetch_build_eggs

Quoted 2 lines

| resolved_dists = pkg_resources.working_set.resolve(
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/_

Quoted 5 lines

_init__.py", line 771, in resolve

Quoted 2 lines

| dist = best[req.key] = env.best_match(
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/_

Quoted 5 lines

_init__.py", line 1056, in best_match

Quoted 2 lines

| return self.obtain(req, installer)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/_

Quoted 5 lines

_init__.py", line 1068, in obtain

Quoted 2 lines

| return installer(requirement)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.p

Quoted 5 lines

y", line 880, in fetch_build_egg

Quoted 2 lines

| return fetch_build_egg(self, req)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/install

Quoted 4 lines

er.py", line 84, in fetch_build_egg

Quoted 2 lines

| raise DistutilsError(str(e)) from e
| distutils.errors.DistutilsError: Command

'['/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1

Quoted 1 line

0.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3', '-m',

'pip',

Quoted 1 line

'--disable-pip-version-check', 'wheel', '--no-deps', '-w',

'/tmp/tmpmh5cnujt',

Quoted 6 lines

'--quiet', 'setuptools_scm']' returned non-zero exit status 1.

Quoted 3 lines

| ERROR: 'python3 setup.py bdist_wheel ' execution failed. | WARNING: exit code 1 from a shell command.
ERROR: Task

(/home/iot-yocto/src/poky/../meta-openembedded/meta-python/recipes-devto ols/python/python3-apscheduler_3.10.4.bb:do_compile) failed with exit

code '1'

Quoted 1 line
Quoted 1 line

NOTE: Tasks Summary: Attempted 7610 tasks of which 7603 didn't need to

be

Quoted 11 lines

rerun and 1 failed.

Quoted 10 lines

Summary: 1 task failed:

/home/iot-yocto/src/poky/../meta-openembedded/meta-python/recipes-devt ools/python/python3-apscheduler_3.10.4.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#108431):
https://lists.openembedded.org/g/openembedded-devel/message/108431
Mute This Topic: https://lists.openembedded.org/mt/103897332/924729
Mute #error:
https://lists.openembedded.org/g/openembedded-devel/mutehashtag/error
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
Quoted 9 lines · Tim Orling

This project uses setuptools.build_meta:
https://github.com/agronholm/apscheduler/blob/master/pyproject.toml#L6

Instead of “inherit setuptools3” please use “inherit python_setuptools_build_meta”
https://git.yoctoproject.org/poky/tree/meta/classes-recipe/python_setuptools_build_meta.bbclass

If you had used “devtool add” it would have detected this.

There is a patch here
https://lore.kernel.org/openembedded-devel/[email protected]/T/#u
which does the right things. Its also staged in master-next atm. Please try that.

Quoted 180 lines · wangmy
Quoted 179 lines

I tried DEPENDS += "python3-pip-native", but there is an error:

| ERROR Missing dependencies:
| setuptools_scm

If I tried
DEPENDS += "python3-pip-native \
python3-setuptools-scm-native"
the compile succeeded.

--
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 129 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Khem Raj
Sent: Tuesday, January 23, 2024 8:24 AM
To: [email protected]
Cc: [email protected]
Subject: Re: [oe] Add python3-apscheduler #error

can you try adding

DEPENDS += "python3-pip-native"

Quoted 8 lines · On Mon, Jan 22, 2024 at 2:04 PM <[email protected]> wrote:

SUMMARY = "In-process task scheduler with Cron-like capabilities" HOMEPAGE = "https://github.com/agronholm/apscheduler"

SECTION = "devel/python"

LICENSE = "MIT"
LIC_FILES_CHKSUM =

"file://LICENSE.txt;md5=f0e423eea5c91e7aa21bdb70184b3e53"

Quoted 4 lines

PYPI_PACKAGE = "APScheduler"

SRC_URI[sha256sum] =

"e6df071b27d9be898e486bc7940a7be50b4af2e9da7c08f0744a96d4bd4cef4a"

Quoted 10 lines

RDEPENDS:${PN} += "\
python3-six \
python3-pytz \
python3-tzlocal \
"

inherit pypi setuptools3

ERROR: python3-apscheduler-3.10.4-r0 do_compile: 'python3 setup.py

bdist_wheel ' execution failed.

Quoted 9 lines

ERROR: python3-apscheduler-3.10.4-r0 do_compile:
ExecutionError('/home/iot-yocto/build/tmp/work/armv8a-poky-linux/pytho n3-apscheduler/3.10.4-r0/temp/run.do_compile.531694', 1, None, None)
ERROR: Logfile of failure stored in:
/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3 .10.4-r0/temp/log.do_compile.531694
Log data follows:
| DEBUG: Executing shell function do_compile
|

/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10 .4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.py:
720: UserWarning: Usage of dash-separated 'upload-dir' will not be supported in future versions. Please use the underscore name 'upload_dir' instead

Quoted 2 lines

| warnings.warn(
|

/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.10 .4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/installe r.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.

Quoted 3 lines
|   warnings.warn(
| /home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler
| /3.10.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3: No

module named pip Traceback (most recent call last):

Quoted 1 line

| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/install er.py", line 82, in fetch_build_egg

Quoted 2 lines

| subprocess.check_call(cmd)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/subprocess.py", line 369, in check_call

Quoted 2 lines

| raise CalledProcessError(retcode, cmd)
| subprocess.CalledProcessError: Command

'['/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpmh5cnujt', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.

Quoted 5 lines
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
|   File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/APScheduler-3.10.4/setup.py", line 10, in <module>

Quoted 2 lines

| setup(
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/__init __.py", line 152, in setup

Quoted 2 lines

| _install_setup_requires(attrs)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/__init __.py", line 147, in _install_setup_requires

Quoted 2 lines

| dist.fetch_build_eggs(dist.setup_requires)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.p y", line 809, in fetch_build_eggs

Quoted 2 lines

| resolved_dists = pkg_resources.working_set.resolve(
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/_ _init__.py", line 771, in resolve

Quoted 2 lines

| dist = best[req.key] = env.best_match(
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/_ _init__.py", line 1056, in best_match

Quoted 2 lines

| return self.obtain(req, installer)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/pkg_resources/_ _init__.py", line 1068, in obtain

Quoted 2 lines

| return installer(requirement)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/dist.p y", line 880, in fetch_build_egg

Quoted 2 lines

| return fetch_build_egg(self, req)
| File

"/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/install er.py", line 84, in fetch_build_egg

Quoted 2 lines

| raise DistutilsError(str(e)) from e
| distutils.errors.DistutilsError: Command

'['/home/iot-yocto/build/tmp/work/armv8a-poky-linux/python3-apscheduler/3.1 0.4-r0/recipe-sysroot-native/usr/bin/python3-native/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpmh5cnujt', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.

Quoted 17 lines
Quoted 3 lines

| ERROR: 'python3 setup.py bdist_wheel ' execution failed. | WARNING: exit code 1 from a shell command.
ERROR: Task

(/home/iot-yocto/src/poky/../meta-openembedded/meta-python/recipes-devto ols/python/python3-apscheduler_3.10.4.bb:do_compile) failed with exit code '1'

Quoted 1 line

NOTE: Tasks Summary: Attempted 7610 tasks of which 7603 didn't need to be

rerun and 1 failed.

Quoted 10 lines

Summary: 1 task failed:

/home/iot-yocto/src/poky/../meta-openembedded/meta-python/recipes-devt ools/python/python3-apscheduler_3.10.4.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#108431): https://lists.openembedded.org/g/openembedded-devel/message/108431
Mute This Topic: https://lists.openembedded.org/mt/103897332/924729
Mute #error:https://lists.openembedded.org/g/openembedded-devel/mutehashtag/error Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-