Hellooo Python Team!

I was trying to package 'python-asyncmy',
Upstream: https://github.com/long2ice/asyncmy

This is my current working Salsa repo :
https://salsa.debian.org/kathara/python-asyncmy

There's no ITP yet. While building this package within the chroot, I got this error message:

root@ivy:/build/python-asyncmy-0.2.9# pybuild --build -i python{version} -p 
3.12 -v
D: pybuild pybuild:602: version: 6.20240603
D: pybuild pybuild:603: ['/usr/bin/pybuild', '--build', '-i', 
'python{version}', '-p', '3.12', '-v']
D: pybuild pybuild:39: cfg: Namespace(verbose=True, quiet=False, 
really_quiet=False, detect_only=False, clean_only=False, configure_only=False, 
build_only=True, install_only=False, test_only=False, autopkgtest_only=False, 
list_systems=False, print_args=None, before_clean=None, clean_args=None, 
after_clean=None, before_configure=None, configure_args=None, 
after_configure=None, before_build=None, build_args=None, after_build=None, 
before_install=None, install_args=None, after_install=None, before_test=None, 
test_args=None, after_test=None, test_nose=False, test_nose2=False, 
test_pytest=False, test_tox=False, test_stestr=False, test_custom=False, 
dir='/build/python-asyncmy-0.2.9', destdir='debian/tmp', ext_destdir=None, 
ext_pattern='\\.so(\\.[^/]*)?$', ext_sub_pattern=None, ext_sub_repl=None, 
install_dir=None, name=None, system=None, versions=['3.12'], 
interpreter=['python{version}'], disable=None, custom_tests=False)
D: pybuild __init__:37: cannot initialize 'cmake' plugin: Missing command 
'cmake'
D: pybuild __init__:37: cannot initialize 'meson' plugin: Missing command 
'meson'
D: pybuild tools:231: invoking: /usr/bin/dpkg-architecture
D: pybuild debhelper:174: source=python-asyncmy, binary 
packages=['python3-asyncmy']
D: pybuild pybuild:151: detected build system: pyproject (certainty: 99%)
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" 
module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /build/python-asyncmy-0.2.9/.pybuild/cpython3_3.12 D: pybuild tools:231: invoking: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /build/python-asyncmy-0.2.9/.pybuild/cpython3_3.12 I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module
E: pybuild pybuild:389: build: plugin pyproject failed with: argument should be 
a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'
Traceback (most recent call last):
  File "/usr/bin/pybuild", line 387, in main
    run(func, i, version, c)
  File "/usr/bin/pybuild", line 325, in run
    result = func(context, args)
             ^^^^^^^^^^^^^^^^^^^
  File "/usr/share/dh-python/dhpython/build/plugin_pyproject.py", line 109, in 
build
    self.unpack_wheel(context, args)
  File "/usr/share/dh-python/dhpython/build/plugin_pyproject.py", line 166, in 
unpack_wheel
    wheel = Path(self.built_wheel(context, args))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/pathlib.py", line 1164, in __init__
    super().__init__(*args)
  File "/usr/lib/python3.12/pathlib.py", line 373, in __init__
    raise TypeError(
TypeError: argument should be a str or an os.PathLike object where __fspath__ 
returns a str, not 'NoneType'
root@ivy:/build/python-asyncmy-0.2.9#


But when I run 'poetry build' directly, it builds the binary.

root@ivy:/build/python-asyncmy-0.2.9# poetry build
Creating virtualenv asyncmy-RSge6BJw-py3.12 in 
/home/kathara/.cache/pypoetry/virtualenvs
Preparing build environment with build-system requirements poetry-core, 
setuptools, cython
Building asyncmy (0.2.9)
  - Building sdist
  - Built asyncmy-0.2.9.tar.gz
  - Building wheel
Compiling asyncmy/charset.pyx because it changed.
...
-0.2.9/build/temp.linux-x86_64-cpython-312/asyncmy/protocol.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 
/build/python-asyncmy-0.2.9/build/temp.linux-x86_64-cpython-312/asyncmy/protocol.o
 -L/usr/lib/x86_64-linux-gnu -o 
/build/python-asyncmy-0.2.9/build/lib.linux-x86_64-cpython-312/asyncmy/protocol.cpython-312-x86_64-linux-gnu.so
  - Built asyncmy-0.2.9-cp312-cp312-manylinux_2_39_x86_64.whl


I don't understand why it is not getting build automatically or am I doing something wrong :(

Has anyone faced something similar before?

- kathara

Reply via email to