urschrei / convertbng

Fast, accurate WGS84 ⬅️➡️ OSGB36 (OSTN15) conversion, using Python and Rust
https://pypi.python.org/pypi/convertbng
Other
37 stars 7 forks source link

Instructions for installation on FreeBSD please #8

Open Guymer opened 3 years ago

Guymer commented 3 years ago

Hi,

I am attempting to install this on FreeBSD and I am having some trouble: could instructions be given for how to do this please?

My first attempt was a simple pip install --user convertbng which produced the following output:

Collecting convertbng
  Downloading convertbng-0.4.14.tar.gz (11.4 MB)
     |████████████████████████████████| 11.4 MB 5.9 MB/s 
Requirement already satisfied: numpy>=1.9.0 in /usr/local/lib/python3.7/site-packages (from convertbng) (1.16.6)
Using legacy 'setup.py install' for convertbng, since package 'wheel' is not installed.
Installing collected packages: convertbng
    Running setup.py install for convertbng ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0w8bv9zb/convertbng/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0w8bv9zb/convertbng/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-iqzv5ow2/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/foobar/.local/include/python3.7m/convertbng
         cwd: /tmp/pip-install-0w8bv9zb/convertbng/
    Complete output (138 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7
    creating build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/__init__.py -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/util.py -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    running egg_info
    writing convertbng.egg-info/PKG-INFO
    writing dependency_links to convertbng.egg-info/dependency_links.txt
    writing requirements to convertbng.egg-info/requires.txt
    writing top-level names to convertbng.egg-info/top_level.txt
    reading manifest file 'convertbng.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'license.txt'
    warning: no files found matching 'README.md'
    warning: no files found matching 'ostn002_s.gif'
    writing manifest file 'convertbng.egg-info/SOURCES.txt'
    copying convertbng/convertbng_p.pxd -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/cutil.c -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/cutil.pyx -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/liblonlat_bng.dylib -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/liblonlat_bng.so -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/rlib.h -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    running build_ext
    building 'convertbng.cutil' extension
    creating build/temp.freebsd-12.2-RELEASE-p3-amd64-3.7
    creating build/temp.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -march=native -fstack-protector-strong -fno-strict-aliasing -fPIC -I./convertbng -I. -Iconvertbng -I/usr/local/include/python3.7m -c convertbng/cutil.c -o build/temp.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng/cutil.o -O3
    convertbng/cutil.c:17618:21: error: no member named 'exc_type' in 'struct _ts'
        *type = tstate->exc_type;
                ~~~~~~  ^
    convertbng/cutil.c:17619:22: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        *value = tstate->exc_value;
                         ^~~~~~~~~
                         curexc_value
    /usr/local/include/python3.7m/pystate.h:241:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    convertbng/cutil.c:17620:19: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        *tb = tstate->exc_traceback;
                      ^~~~~~~~~~~~~
                      curexc_traceback
    /usr/local/include/python3.7m/pystate.h:242:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    convertbng/cutil.c:17627:24: error: no member named 'exc_type' in 'struct _ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    convertbng/cutil.c:17628:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tmp_value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
    /usr/local/include/python3.7m/pystate.h:241:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    convertbng/cutil.c:17629:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tmp_tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
    /usr/local/include/python3.7m/pystate.h:242:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    convertbng/cutil.c:17630:13: error: no member named 'exc_type' in 'struct _ts'
        tstate->exc_type = type;
        ~~~~~~  ^
    convertbng/cutil.c:17631:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tstate->exc_value = value;
                ^~~~~~~~~
                curexc_value
    /usr/local/include/python3.7m/pystate.h:241:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    convertbng/cutil.c:17632:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tstate->exc_traceback = tb;
                ^~~~~~~~~~~~~
                curexc_traceback
    /usr/local/include/python3.7m/pystate.h:242:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    convertbng/cutil.c:17687:24: error: no member named 'exc_type' in 'struct _ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    convertbng/cutil.c:17688:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tmp_value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
    /usr/local/include/python3.7m/pystate.h:241:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    convertbng/cutil.c:17689:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tmp_tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
    /usr/local/include/python3.7m/pystate.h:242:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    convertbng/cutil.c:17690:13: error: no member named 'exc_type' in 'struct _ts'
        tstate->exc_type = local_type;
        ~~~~~~  ^
    convertbng/cutil.c:17691:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tstate->exc_value = local_value;
                ^~~~~~~~~
                curexc_value
    /usr/local/include/python3.7m/pystate.h:241:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    convertbng/cutil.c:17692:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tstate->exc_traceback = local_tb;
                ^~~~~~~~~~~~~
                curexc_traceback
    /usr/local/include/python3.7m/pystate.h:242:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    convertbng/cutil.c:17714:24: error: no member named 'exc_type' in 'struct _ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    convertbng/cutil.c:17715:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tmp_value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
    /usr/local/include/python3.7m/pystate.h:241:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    convertbng/cutil.c:17716:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tmp_tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
    /usr/local/include/python3.7m/pystate.h:242:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    convertbng/cutil.c:17717:13: error: no member named 'exc_type' in 'struct _ts'
        tstate->exc_type = *type;
        ~~~~~~  ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    error: command 'cc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0w8bv9zb/convertbng/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0w8bv9zb/convertbng/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-iqzv5ow2/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/foobar/.local/include/python3.7m/convertbng Check the logs for full command output.

I suspected that it was not compatible with the default compiler, so I set $CC to "/usr/local/bin/gcc10" and tried again, which produced the following output:

Collecting convertbng
  Using cached convertbng-0.4.14.tar.gz (11.4 MB)
Requirement already satisfied: numpy>=1.9.0 in /usr/local/lib/python3.7/site-packages (from convertbng) (1.16.6)
Using legacy 'setup.py install' for convertbng, since package 'wheel' is not installed.
Installing collected packages: convertbng
    Running setup.py install for convertbng ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1ja939i9/convertbng/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1ja939i9/convertbng/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-k4sou7is/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/foobar/.local/include/python3.7m/convertbng
         cwd: /tmp/pip-install-1ja939i9/convertbng/
    Complete output (119 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7
    creating build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/__init__.py -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/util.py -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    running egg_info
    writing convertbng.egg-info/PKG-INFO
    writing dependency_links to convertbng.egg-info/dependency_links.txt
    writing requirements to convertbng.egg-info/requires.txt
    writing top-level names to convertbng.egg-info/top_level.txt
    reading manifest file 'convertbng.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'license.txt'
    warning: no files found matching 'README.md'
    warning: no files found matching 'ostn002_s.gif'
    writing manifest file 'convertbng.egg-info/SOURCES.txt'
    copying convertbng/convertbng_p.pxd -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/cutil.c -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/cutil.pyx -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/liblonlat_bng.dylib -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/liblonlat_bng.so -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    copying convertbng/rlib.h -> build/lib.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    running build_ext
    building 'convertbng.cutil' extension
    creating build/temp.freebsd-12.2-RELEASE-p3-amd64-3.7
    creating build/temp.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng
    /usr/local/bin/gcc10 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -march=native -fstack-protector-strong -fno-strict-aliasing -fPIC -I./convertbng -I. -Iconvertbng -I/usr/local/include/python3.7m -c convertbng/cutil.c -o build/temp.freebsd-12.2-RELEASE-p3-amd64-3.7/convertbng/cutil.o -O3
    convertbng/cutil.c: In function '__Pyx__ExceptionSave':
    convertbng/cutil.c:17618:21: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_type'; did you mean 'curexc_type'?
    17618 |     *type = tstate->exc_type;
          |                     ^~~~~~~~
          |                     curexc_type
    convertbng/cutil.c:17619:22: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_value'; did you mean 'curexc_value'?
    17619 |     *value = tstate->exc_value;
          |                      ^~~~~~~~~
          |                      curexc_value
    convertbng/cutil.c:17620:19: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
    17620 |     *tb = tstate->exc_traceback;
          |                   ^~~~~~~~~~~~~
          |                   curexc_traceback
    convertbng/cutil.c: In function '__Pyx__ExceptionReset':
    convertbng/cutil.c:17627:24: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_type'; did you mean 'curexc_type'?
    17627 |     tmp_type = tstate->exc_type;
          |                        ^~~~~~~~
          |                        curexc_type
    convertbng/cutil.c:17628:25: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_value'; did you mean 'curexc_value'?
    17628 |     tmp_value = tstate->exc_value;
          |                         ^~~~~~~~~
          |                         curexc_value
    convertbng/cutil.c:17629:22: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
    17629 |     tmp_tb = tstate->exc_traceback;
          |                      ^~~~~~~~~~~~~
          |                      curexc_traceback
    convertbng/cutil.c:17630:13: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_type'; did you mean 'curexc_type'?
    17630 |     tstate->exc_type = type;
          |             ^~~~~~~~
          |             curexc_type
    convertbng/cutil.c:17631:13: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_value'; did you mean 'curexc_value'?
    17631 |     tstate->exc_value = value;
          |             ^~~~~~~~~
          |             curexc_value
    convertbng/cutil.c:17632:13: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
    17632 |     tstate->exc_traceback = tb;
          |             ^~~~~~~~~~~~~
          |             curexc_traceback
    convertbng/cutil.c: In function '__Pyx__GetException':
    convertbng/cutil.c:17687:24: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_type'; did you mean 'curexc_type'?
    17687 |     tmp_type = tstate->exc_type;
          |                        ^~~~~~~~
          |                        curexc_type
    convertbng/cutil.c:17688:25: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_value'; did you mean 'curexc_value'?
    17688 |     tmp_value = tstate->exc_value;
          |                         ^~~~~~~~~
          |                         curexc_value
    convertbng/cutil.c:17689:22: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
    17689 |     tmp_tb = tstate->exc_traceback;
          |                      ^~~~~~~~~~~~~
          |                      curexc_traceback
    convertbng/cutil.c:17690:13: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_type'; did you mean 'curexc_type'?
    17690 |     tstate->exc_type = local_type;
          |             ^~~~~~~~
          |             curexc_type
    convertbng/cutil.c:17691:13: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_value'; did you mean 'curexc_value'?
    17691 |     tstate->exc_value = local_value;
          |             ^~~~~~~~~
          |             curexc_value
    convertbng/cutil.c:17692:13: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
    17692 |     tstate->exc_traceback = local_tb;
          |             ^~~~~~~~~~~~~
          |             curexc_traceback
    convertbng/cutil.c: In function '__Pyx__ExceptionSwap':
    convertbng/cutil.c:17714:24: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_type'; did you mean 'curexc_type'?
    17714 |     tmp_type = tstate->exc_type;
          |                        ^~~~~~~~
          |                        curexc_type
    convertbng/cutil.c:17715:25: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_value'; did you mean 'curexc_value'?
    17715 |     tmp_value = tstate->exc_value;
          |                         ^~~~~~~~~
          |                         curexc_value
    convertbng/cutil.c:17716:22: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
    17716 |     tmp_tb = tstate->exc_traceback;
          |                      ^~~~~~~~~~~~~
          |                      curexc_traceback
    convertbng/cutil.c:17717:13: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_type'; did you mean 'curexc_type'?
    17717 |     tstate->exc_type = *type;
          |             ^~~~~~~~
          |             curexc_type
    convertbng/cutil.c:17718:13: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_value'; did you mean 'curexc_value'?
    17718 |     tstate->exc_value = *value;
          |             ^~~~~~~~~
          |             curexc_value
    convertbng/cutil.c:17719:13: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
    17719 |     tstate->exc_traceback = *tb;
          |             ^~~~~~~~~~~~~
          |             curexc_traceback
    error: command '/usr/local/bin/gcc10' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1ja939i9/convertbng/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1ja939i9/convertbng/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-k4sou7is/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/foobar/.local/include/python3.7m/convertbng Check the logs for full command output.

Do you have any ideas for how to solve this?

Thank you

urschrei commented 3 years ago

I really don't, having no experience of Freebsd whatsoever. From a look at the traceback, the problem seems to be with Cython, which is surprising since the cython in the package is a simple, minimal wrapper around the Rust binary.

Guymer commented 3 years ago

I have done a quick bit of searching and it appears that there are loads of projects around with neigh on identical errors, e.g. SheffieldML/GPy#649 It appears that there was a ticket in Cython itself about this: cython/cython#1978 which was (perhaps) caused by a change to the Cython source code: cython/cython#1955 when they moved some of the internals in the _ts structure.

I am attempting to install it using:

What versions of Python and Cython are you using to build it? Is it post Cython 0.27.3?

Guymer commented 3 years ago

MacOS 11.4 is now failing with the same error message:

user@host path % pip-3.9 install --user convertbng
Collecting convertbng
  Using cached convertbng-0.4.14.tar.gz (11.4 MB)
Requirement already satisfied: numpy>=1.9.0 in /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from convertbng) (1.20.3)
Using legacy 'setup.py install' for convertbng, since package 'wheel' is not installed.
Installing collected packages: convertbng
    Running setup.py install for convertbng ... error
    ERROR: Command errored out with exit status 1:
     command: /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-jl3sigi3/convertbng_f674e5fc6d234349b4cb64cb0b11eda5/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-jl3sigi3/convertbng_f674e5fc6d234349b4cb64cb0b11eda5/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-pyw4atiw/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/user/Library/Python/3.9/include/python3.9/convertbng
         cwd: /private/tmp/pip-install-jl3sigi3/convertbng_f674e5fc6d234349b4cb64cb0b11eda5/
    Complete output (321 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-11.3-x86_64-3.9
    creating build/lib.macosx-11.3-x86_64-3.9/convertbng
    copying convertbng/util.py -> build/lib.macosx-11.3-x86_64-3.9/convertbng
    copying convertbng/__init__.py -> build/lib.macosx-11.3-x86_64-3.9/convertbng
    running egg_info
    writing convertbng.egg-info/PKG-INFO
    writing dependency_links to convertbng.egg-info/dependency_links.txt
    writing requirements to convertbng.egg-info/requires.txt
    writing top-level names to convertbng.egg-info/top_level.txt
    reading manifest file 'convertbng.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'license.txt'
    warning: no files found matching 'README.md'
    warning: no files found matching 'ostn002_s.gif'
    writing manifest file 'convertbng.egg-info/SOURCES.txt'
    copying convertbng/convertbng_p.pxd -> build/lib.macosx-11.3-x86_64-3.9/convertbng
    copying convertbng/cutil.c -> build/lib.macosx-11.3-x86_64-3.9/convertbng
    copying convertbng/cutil.pyx -> build/lib.macosx-11.3-x86_64-3.9/convertbng
    copying convertbng/liblonlat_bng.dylib -> build/lib.macosx-11.3-x86_64-3.9/convertbng
    copying convertbng/liblonlat_bng.so -> build/lib.macosx-11.3-x86_64-3.9/convertbng
    copying convertbng/rlib.h -> build/lib.macosx-11.3-x86_64-3.9/convertbng
    running build_ext
    building 'convertbng.cutil' extension
    creating build/temp.macosx-11.3-x86_64-3.9
    creating build/temp.macosx-11.3-x86_64-3.9/convertbng
    /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/MacOSX11.3.sdk -I./convertbng -I. -Iconvertbng -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c convertbng/cutil.c -o build/temp.macosx-11.3-x86_64-3.9/convertbng/cutil.o -O3
    convertbng/cutil.c:15295:94: error: no member named 'tp_print' in 'struct _typeobject'
      __pyx_type_10convertbng_5cutil___pyx_scope_struct____pyx_f_10convertbng_5cutil_ffi_wrapper.tp_print = 0;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
    convertbng/cutil.c:15300:26: error: no member named 'tp_print' in 'struct _typeobject'
      __pyx_type___pyx_array.tp_print = 0;
      ~~~~~~~~~~~~~~~~~~~~~~ ^
    convertbng/cutil.c:15304:32: error: no member named 'tp_print' in 'struct _typeobject'
      __pyx_type___pyx_MemviewEnum.tp_print = 0;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
    convertbng/cutil.c:15315:31: error: no member named 'tp_print' in 'struct _typeobject'
      __pyx_type___pyx_memoryview.tp_print = 0;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
    convertbng/cutil.c:15324:36: error: no member named 'tp_print' in 'struct _typeobject'
      __pyx_type___pyx_memoryviewslice.tp_print = 0;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
    convertbng/cutil.c:15743:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
                        (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                         ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
          PyUnicode_WSTR_LENGTH(op) :                    \
          ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
    #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
                                      ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15743:22: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
                        (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                         ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
          ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
                 ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15743:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
                        (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                         ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
           PyUnicode_WSTR_LENGTH(op)))
           ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
    #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
                                      ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15743:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
                        (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                                                       ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
          PyUnicode_WSTR_LENGTH(op) :                    \
          ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
    #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
                                      ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15743:52: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
                        (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                                                       ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
          ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
                 ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15743:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
                        (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                                                       ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
           PyUnicode_WSTR_LENGTH(op)))
           ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
    #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
                                      ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15759:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
                            (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                             ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
          PyUnicode_WSTR_LENGTH(op) :                    \
          ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
    #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
                                      ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15759:26: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
                            (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                             ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
          ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
                 ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15759:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
                            (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                             ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
           PyUnicode_WSTR_LENGTH(op)))
           ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
    #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
                                      ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15759:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
                            (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                                                              ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
          PyUnicode_WSTR_LENGTH(op) :                    \
          ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
    #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
                                      ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15759:59: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
                            (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                                                              ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
          ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
                 ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:15759:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
                            (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                                                              ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
           PyUnicode_WSTR_LENGTH(op)))
           ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
    #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
                                      ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:17096:9: warning: 'PyCFunction_Call' is deprecated [-Wdeprecated-declarations]
            return PyCFunction_Call(func, arg, kw);
                   ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/methodobject.h:33:1: note: 'PyCFunction_Call' has been explicitly marked deprecated here
    Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:17161:41: warning: 'PyCFunction_Call' is deprecated [-Wdeprecated-declarations]
        __pyx_CyFunctionType_type.tp_call = PyCFunction_Call;
                                            ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/methodobject.h:33:1: note: 'PyCFunction_Call' has been explicitly marked deprecated here
    Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:17575:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
            return PyUnicode_FromUnicode(NULL, 0);
                   ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
    ^
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    convertbng/cutil.c:17618:21: error: no member named 'exc_type' in 'struct _ts'
        *type = tstate->exc_type;
                ~~~~~~  ^
    convertbng/cutil.c:17619:22: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        *value = tstate->exc_value;
                         ^~~~~~~~~
                         curexc_value
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:80:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    convertbng/cutil.c:17620:19: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        *tb = tstate->exc_traceback;
                      ^~~~~~~~~~~~~
                      curexc_traceback
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:81:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    convertbng/cutil.c:17627:24: error: no member named 'exc_type' in 'struct _ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    convertbng/cutil.c:17628:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tmp_value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:80:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    convertbng/cutil.c:17629:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tmp_tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:81:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    convertbng/cutil.c:17630:13: error: no member named 'exc_type' in 'struct _ts'
        tstate->exc_type = type;
        ~~~~~~  ^
    convertbng/cutil.c:17631:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tstate->exc_value = value;
                ^~~~~~~~~
                curexc_value
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:80:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    convertbng/cutil.c:17632:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tstate->exc_traceback = tb;
                ^~~~~~~~~~~~~
                curexc_traceback
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:81:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    convertbng/cutil.c:17687:24: error: no member named 'exc_type' in 'struct _ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    convertbng/cutil.c:17688:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tmp_value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:80:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    convertbng/cutil.c:17689:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tmp_tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:81:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    convertbng/cutil.c:17690:13: error: no member named 'exc_type' in 'struct _ts'
        tstate->exc_type = local_type;
        ~~~~~~  ^
    convertbng/cutil.c:17691:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tstate->exc_value = local_value;
                ^~~~~~~~~
                curexc_value
    /opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:80:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    15 warnings and 20 errors generated.
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-jl3sigi3/convertbng_f674e5fc6d234349b4cb64cb0b11eda5/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-jl3sigi3/convertbng_f674e5fc6d234349b4cb64cb0b11eda5/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-pyw4atiw/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/user/Library/Python/3.9/include/python3.9/convertbng Check the logs for full command output.

This is using Python 3.9.5 and Pip 21.1.2, which were both installed using MacPorts. I think that MacOS and FreeBSD use the same compiler: Clang. Given that the errors all seem to be along the lines of convertbng/cutil.c:17691:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'? could it be that the C functions have been renamed (recently) and the (new) Clang compiler no longer recognises the old names and requires them to be renamed with the cur prefix?

Thanks,

Tom