On Mon, Jan 22, 2024 at 7:33 PM Tim Orling <ticot...@gmail.com> wrote: > > 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/1705972804-25125-1-git-send-email-wan...@fujitsu.com/T/#u which does the right things. Its also staged in master-next atm. Please try that. > On Mon, Jan 22, 2024 at 6:23 PM wangmy <wan...@fujitsu.com> wrote: >> >> 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: wan...@fujitsu.com >> http://www.fujitsu.com/cn/fnst/ >> >> > -----Original Message----- >> > From: openembedded-devel@lists.openembedded.org >> > <openembedded-devel@lists.openembedded.org> On Behalf Of Khem Raj >> > Sent: Tuesday, January 23, 2024 8:24 AM >> > To: p35420...@gmail.com >> > Cc: openembedded-devel@lists.openembedded.org >> > Subject: Re: [oe] Add python3-apscheduler #error >> > >> > can you try adding >> > >> > DEPENDS += "python3-pip-native" >> > >> > On Mon, Jan 22, 2024 at 2:04 PM <p35420...@gmail.com> 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/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 >> > > | 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. >> > > | 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.1 >> > 0.4-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/setuptools/install >> > er.py", line 82, in fetch_build_egg >> > > | 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 >> > > | 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. >> > > | >> > > | 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> >> > > | 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 >> > > | _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 >> > > | 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 >> > > | 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 >> > > | 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 >> > > | 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 >> > > | 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 >> > > | 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 >> > > | 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. >> > > | 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' >> > > 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-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 (#108433): https://lists.openembedded.org/g/openembedded-devel/message/108433 Mute This Topic: https://lists.openembedded.org/mt/103897332/21656 Mute #error:https://lists.openembedded.org/g/openembedded-devel/mutehashtag/error Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-