Opened 2 years ago

Last modified 2 years ago

#64230 assigned defect

dav1d +universal: ImportError: dynamic module does not define module export function (PyInit__csv)

Reported by: potterpg Owned by: ctreleaven (Craig Treleaven)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: SoapZA
Port: dav1d, meson

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Is this log enough information?

I am attempting to build all libraries as universal, so that they can be used in a universal built solution.

dav1d is part of libheif apparently...

:debug:main Starting logging for dav1d @0.9.2_0+universal
:debug:sysinfo macOS 11.6.1 (darwin/20.6.0) arch i386
:debug:sysinfo MacPorts 2.7.1
:debug:sysinfo Xcode 13.2
:debug:sysinfo SDK 11
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 11.0
:debug:configure SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk'
:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_dav1d/dav1d/work/dav1d_0.9.2-arm64" && /opt/local/bin/meson --prefix=/opt/local -Denable_tests=false --host=aarch64-apple-darwin20.6.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_dav1d/dav1d/work/dav1d_0.9.2-arm64 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_dav1d/dav1d/work/build-arm64 --cross-file=arm64-darwin 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_dav1d/dav1d/work/dav1d_0.9.2-arm64" && /opt/local/bin/meson --prefix=/opt/local -Denable_tests=false --host=aarch64-apple-darwin20.6.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_dav1d/dav1d/work/dav1d_0.9.2-arm64 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_dav1d/dav1d/work/build-arm64 --cross-file=arm64-darwin 
:info:configure Traceback (most recent call last):
:info:configure   File "/opt/local/bin/meson", line 10, in <module>
:info:configure     from importlib.metadata import distribution
:info:configure   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/metadata.py", line 5, in <module>
:info:configure     import csv
:info:configure   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/csv.py", line 7, in <module>
:info:configure     from _csv import Error, __version__, writer, reader, register_dialect, \
:info:configure ImportError: dynamic module does not define module export function (PyInit__csv)
:info:configure During handling of the above exception, another exception occurred:
:info:configure Traceback (most recent call last):
:info:configure   File "/opt/local/bin/meson", line 13, in <module>
:info:configure     from importlib_metadata import distribution
:info:configure ModuleNotFoundError: No module named 'importlib_metadata'
:info:configure During handling of the above exception, another exception occurred:
:info:configure Traceback (most recent call last):
:info:configure   File "/opt/local/bin/meson", line 15, in <module>
:info:configure     from pkg_resources import load_entry_point
:info:configure   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 23, in <module>
:info:configure     import zipfile
:info:configure   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/zipfile.py", line 6, in <module>
:info:configure     import binascii
:info:configure ImportError: dynamic module does not define module export function (PyInit_binascii)
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_dav1d/dav1d/work/dav1d_0.9.2-arm64" && /opt/local/bin/meson --prefix=/opt/local -Denable_tests=false --host=aarch64-apple-darwin20.6.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_dav1d/dav1d/work/dav1d_0.9.2-arm64 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_dav1d/dav1d/work/build-arm64 --cross-file=arm64-darwin 
:info:configure Exit code: 1
:error:configure Failed to configure dav1d: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_dav1d/dav1d/main.log for details.

Change History (5)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: SoapZA added
Description: modified (diff)
Owner: set to ctreleaven
Port: dav1d. meson added; dav1d removed
Status: newassigned
Summary: port install david +universal - configure failure?dav1d +universal: ImportError: dynamic module does not define module export function (PyInit__csv)

Looks like the errors are coming from meson, so that's probably the broken port here.

comment:2 Changed 2 years ago by ctreleaven (Craig Treleaven)

I see that there is a new release of meson. Might be a good first step?

https://mesonbuild.com/Release-notes-for-0-60-0.html

comment:3 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Port: dav1d added; dav1d. removed

comment:4 Changed 2 years ago by potterpg

Tried updating port tree, and then meson, but the meson port still has a version of 59...

So I guess I will try at some later time?

comment:5 in reply to:  4 Changed 2 years ago by ctreleaven (Craig Treleaven)

Replying to potterpg:

Tried updating port tree, and then meson, but the meson port still has a version of 59...

So I guess I will try at some later time?

Sorry. SoapZA is the maintainer for meson on MacPorts. I don't know if he has looked at the update to 0.60 or if there is some concern with it. The meson build system still seems to have some rough edges that have caused a couple of problems for dav1d on MacPorts. The meson release notes don't say anything that seems to be specifically related to the build problem you found...but it isn't exactly a mainstream build environment so the update may or may not help us. OTOH, it unlikely to hurt us!

Note: See TracTickets for help on using tickets.