Opened 3 years ago

Closed 3 years ago

#63642 closed defect (fixed)

py39-pyregion: error: no member named 'tp_print' in 'struct _typeobject

Reported by: mfacorcoran Owned by: chrstphrchvz (Christopher Chavez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: py-pyregion

Description

pyregions fails to build with a

:info:build pyregion/_region_filter.c:11969:51: error: no member named 'tp_print' in 'struct _typeobject

error - relevant bits of the build log below

:info:build   _bootstrap._exec(spec, module)
:info:build building 'pyregion.compiler_version' extension
:info:build building 'pyregion._region_filter' extension
:info:build creating build/temp.macosx-10.15-x86_64-3.9
:info:build creating build/temp.macosx-10.15-x86_64-3.9
:info:build creating build/temp.macosx-10.15-x86_64-3.9/pyregion
:info:build creating build/temp.macosx-10.15-x86_64-3.9/pyregion
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_python_py-pyregion/py39-pyregion/work/compwrap/cc/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c pyregion/_compiler.c -o build/temp.macosx-10.15-x86_64-3.9/pyregion/_compiler.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_python_py-pyregion/py39-pyregion/work/compwrap/cc/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c pyregion/_region_filter.c -o build/temp.macosx-10.15-x86_64-3.9/pyregion/_region_filter.o -Wp,-w -Wno-unused-function
:info:build pyregion/_region_filter.c:11948:55: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_RegionContext.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:11959:52: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_RegionBase.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:11969:51: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_RegionNot.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:11978:52: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_RegionList.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:11988:54: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_RegionOrList.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:11998:55: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_RegionAndList.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:12009:51: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_Transform.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:12019:49: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_Rotated.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:12029:52: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_Translated.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:12041:48: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_Circle.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:12051:49: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_Ellipse.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:12061:45: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_Box.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:12071:49: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_Polygon.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build pyregion/_region_filter.c:12082:52: error: no member named 'tp_print' in 'struct _typeobject'
:info:build   __pyx_type_8pyregion_14_region_filter_AngleRange.tp_print = 0;
:info:build   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build 14 errors generated.
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_python_py-pyregion/py39-pyregion/work/compwrap/cc/usr/bin/clang -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -arch x86_64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk build/temp.macosx-10.15-x86_64-3.9/pyregion/_compiler.o -o build/lib.macosx-10.15-x86_64-3.9/pyregion/compiler_version.cpython-39-darwin.so
:info:build error: command '/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_python_py-pyregion/py39-pyregion/work/compwrap/cc/usr/bin/clang' failed with exit code 1
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_python_py-pyregion/py39-pyregion/work/pyregion-2.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 setup.py --no-user-cfg build -j16
:info:build Exit code: 1
:error:build Failed to build py39-pyregion: command execution failed
:debug:build Error code: CHILDSTATUS 53326 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_github.com_macports_macports-ports_python_py-pyregion/py39-pyregion/main.log for details.

Change History (5)

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

Port: py-pyregion added
Summary: pyregions fails to buldpy39-pyregion: error: no member named 'tp_print' in 'struct _typeobject

The port has no maintainer. Feel free to submit a fix if you know one.

comment:2 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

This was a known upstream issue: https://github.com/astropy/pyregion/issues/141

The likely fix is to update the port from 2.0 to 2.1.1.

comment:3 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:4 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

comment:5 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

Owner: set to chrstphrchvz
Resolution: fixed
Status: newclosed

In 62ed9a45c9fbf65fa87595253b2cee8e47e71210/macports-ports (master):

py-pyregion: update to 2.1.1

Fixes: #63642

Note: See TracTickets for help on using tickets.