Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2020 11:58:07 GMT
From:      pkg-fallout@FreeBSD.org
To:        olivier@FreeBSD.org
Cc:        pkg-fallout@FreeBSD.org
Subject:   [exp - 121amd64-default-build-as-user][net/py-maxminddb] Failed for py27-maxminddb-2.0.1 in stage
Message-ID:  <202007241158.06OBw7U8089316@package19.nyi.freebsd.org>

next in thread | raw e-mail | index | archive | help
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     olivier@FreeBSD.org
Last committer: olivier@FreeBSD.org
Ident:          $FreeBSD: head/net/py-maxminddb/Makefile 542919 2020-07-23 07:57:42Z olivier $
Log URL:        http://package19.nyi.freebsd.org/data/121amd64-default-build-as-user/542975/logs/py27-maxminddb-2.0.1.log
Build URL:      http://package19.nyi.freebsd.org/build.html?mastername=121amd64-default-build-as-user&build=542975
Log:

=>> Building net/py-maxminddb
build started at Fri Jul 24 11:58:02 UTC 2020
port directory: /usr/ports/net/py-maxminddb
package name: py27-maxminddb-2.0.1
building for: FreeBSD 121amd64-default-build-as-user-job-06 12.1-RELEASE-p7 FreeBSD 12.1-RELEASE-p7 amd64
maintained by: olivier@FreeBSD.org
Makefile ident:      $FreeBSD: head/net/py-maxminddb/Makefile 542919 2020-07-23 07:57:42Z olivier $
Poudriere version: 3.2.8-5-gc81843e5
Host OSVERSION: 1300100
Jail OSVERSION: 1201000
Job Id: 06

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1201000
UNAME_v=FreeBSD 12.1-RELEASE-p7
UNAME_r=12.1-RELEASE-p7
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-5-gc81843e5
MASTERMNT=/poudriere/data/.m/121amd64-default-build-as-user/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
GID=0
UID=0
PWD=/poudriere/data/.m/121amd64-default-build-as-user/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=121amd64-default-build-as-user
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/poudriere/data/.m/121amd64-default-build-as-user/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=py27
DEPENDS_ARGS=
MAKE_ARGS= FLAVOR=py27
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
olivier@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PYTHON="/usr/local/bin/python2.7" XDG_DATA_HOME=/wrkdirs/usr/ports/net/py-maxminddb/work-py27  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/py-maxminddb/work-py27  HOME=/wrkdirs/usr/ports/net/py-maxminddb/work-py27 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net/py-maxminddb/work-py27/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CMAKE_PREFIX_PATH="/usr/local"
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/net/py-maxminddb/work-py27  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/py-maxminddb/work-py27  HOME=/wrkdirs/usr/ports/net/py-maxminddb/work-py27 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net/py-maxminddb/work-py27/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES LDSHARED="cc -shared" PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE= PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-isystem /usr/local/include"  LDFLAGS=" -fstack-protector-strong " LIBS="-L/usr/local/lib"  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INST
 ALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PYTHON_INCLUDEDIR=include/python2.7  PYTHON_LIBDIR=lib/python2.7  PYTHON_PLATFORM=freebsd12  PYTHON_SITELIBDIR=lib/python2.7/site-packages  PYTHON_SUFFIX=27  PYTHON_VER=2.7  PYTHON_VERSION=python2.7 PYTHON2="" PYTHON3="@comment " OSREL=12.1 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/maxminddb"  EXAMPLESDIR="share/examples/maxminddb"  DATADIR="share/maxminddb"  WWWDIR="www/maxminddb"  ETCDIR="etc/maxminddb"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/maxminddb DOCSDIR=/usr/local/share/doc/maxminddb EXAMPLESDIR=/usr/local/share/examples/maxminddb  WWWDIR=/usr/local/www/maxminddb ETCDIR=/usr/local/etc/maxminddb
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### /usr/local/etc/poudriere.d/make.conf ####
# Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) Target: x86_64-unknown-freebsd12.1 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) Target: x86_64-unknown-freebsd12.1 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) Target: x86_64-unknown-freebsd12.1 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=amd64
OPSYS=FreeBSD
_OSRELEASE=12.1-RELEASE-p7
OSREL=12.1
OSVERSION=1201000
PYTHONBASE=/usr/local
HAVE_COMPAT_IA32_KERN=YES
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Uses Python 2.7 which is EOLed upstream.

It is scheduled to be removed on or after 2020-12-31.

===>  License APACHE20 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   py27-maxminddb-2.0.1 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.14.6.txz
[121amd64-default-build-as-user-job-06] Installing pkg-1.14.6...
[121amd64-default-build-as-user-job-06] Extracting pkg-1.14.6: .......... done
===>   py27-maxminddb-2.0.1 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of py27-maxminddb-2.0.1
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Uses Python 2.7 which is EOLed upstream.

It is scheduled to be removed on or after 2020-12-31.

===>  License APACHE20 accepted by the user
=> maxmind-MaxMind-DB-Reader-python-v2.0.1_GH0.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://codeload.github.com/maxmind/MaxMind-DB-Reader-python/tar.gz/v2.0.1?dummy=/maxmind-MaxMind-DB-Reader-python-v2.0.1_GH0.tar.gz
fetch: https://codeload.github.com/maxmind/MaxMind-DB-Reader-python/tar.gz/v2.0.1?dummy=/maxmind-MaxMind-DB-Reader-python-v2.0.1_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/maxmind/MaxMind-DB-Reader-python/tar.gz/v2.0.1?dummy=/maxmind-MaxMind-DB-Reader-python-v2.0.1_GH0.tar.gz: size of remote file is not known
maxmind-MaxMind-DB-Reader-python-v2.0.1_GH0.tar.gz          33 kB 4214 kBps    00s
===> Fetching all distfiles required by py27-maxminddb-2.0.1 for building
===========================================================================
=======================<phase: checksum       >============================
===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Uses Python 2.7 which is EOLed upstream.

It is scheduled to be removed on or after 2020-12-31.

===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by py27-maxminddb-2.0.1 for building
=> SHA256 Checksum OK for maxmind-MaxMind-DB-Reader-python-v2.0.1_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Uses Python 2.7 which is EOLed upstream.

<snip>
copying maxminddb/types.py -> build/lib/maxminddb
copying maxminddb/reader.py -> build/lib/maxminddb
copying maxminddb/__init__.py -> build/lib/maxminddb
copying maxminddb/errors.py -> build/lib/maxminddb
copying maxminddb/decoder.py -> build/lib/maxminddb
copying maxminddb/const.py -> build/lib/maxminddb
copying maxminddb/file.py -> build/lib/maxminddb
running egg_info
writing maxminddb.egg-info/PKG-INFO
writing top-level names to maxminddb.egg-info/top_level.txt
writing dependency_links to maxminddb.egg-info/dependency_links.txt
reading manifest file 'maxminddb.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.mmdb' under directory 'tests/'
warning: no files found matching '*.raw' under directory 'tests/'
warning: no directories found matching 'docs/html'
writing manifest file 'maxminddb.egg-info/SOURCES.txt'
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python build succeeded.
***************************************************************************
===========================================================================
=======================<phase: run-depends    >============================
===>   py27-maxminddb-2.0.1 depends on package: py27-ipaddress>=1.0.23 - not found
===>   Installing existing package /packages/All/py27-ipaddress-1.0.23.txz
[121amd64-default-build-as-user-job-06] Installing py27-ipaddress-1.0.23...
[121amd64-default-build-as-user-job-06] Extracting py27-ipaddress-1.0.23: .......... done
=====
Message from py27-ipaddress-1.0.23:

--
===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Uses Python 2.7 which is EOLed upstream.

It is scheduled to be removed on or after 2020-12-31.
===>   py27-maxminddb-2.0.1 depends on package: py27-ipaddress>=1.0.23 - found
===>   Returning to build of py27-maxminddb-2.0.1
===>   py27-maxminddb-2.0.1 depends on package: py27-setuptools>0 - found
===>   py27-maxminddb-2.0.1 depends on file: /usr/local/bin/python2.7 - found
===========================================================================
=======================<phase: stage          >============================
===>  Staging for py27-maxminddb-2.0.1
===>   Generating temporary packing list
running install
running build
running build_py
running egg_info
writing maxminddb.egg-info/PKG-INFO
writing top-level names to maxminddb.egg-info/top_level.txt
writing dependency_links to maxminddb.egg-info/dependency_links.txt
reading manifest file 'maxminddb.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.mmdb' under directory 'tests/'
warning: no files found matching '*.raw' under directory 'tests/'
warning: no directories found matching 'docs/html'
writing manifest file 'maxminddb.egg-info/SOURCES.txt'
running build_ext
building 'maxminddb.extension' extension
cc -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -I/usr/local/include/python2.7 -c extension/maxminddb.c -o build/temp.freebsd-12.1-RELEASE-p7-amd64-2.7/extension/maxminddb.o -Wall -Wextra
extension/maxminddb.c:70:22: error: use of undeclared identifier 'PyExc_FileNotFoundError'; did you mean 'PyExc_AssertionError'?
        PyErr_Format(PyExc_FileNotFoundError,
                     ^~~~~~~~~~~~~~~~~~~~~~~
                     PyExc_AssertionError
/usr/local/include/python2.7/pyerrors.h:127:24: note: 'PyExc_AssertionError' declared here
PyAPI_DATA(PyObject *) PyExc_AssertionError;
                       ^
extension/maxminddb.c:208:29: warning: implicit declaration of function 'PyUnicode_AsUTF8AndSize' is invalid in C99 [-Wimplicit-function-declaration]
        const char *ipstr = PyUnicode_AsUTF8AndSize(obj, &len);
                            ^
extension/maxminddb.c:208:21: warning: incompatible integer to pointer conversion initializing 'const char *' with an expression of type 'int' [-Wint-conversion]
        const char *ipstr = PyUnicode_AsUTF8AndSize(obj, &len);
                    ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extension/maxminddb.c:700:5: error: use of undeclared identifier 'PyModuleDef_HEAD_INIT'
    PyModuleDef_HEAD_INIT,
    ^
extension/maxminddb.c:699:27: error: variable has incomplete type 'struct PyModuleDef'
static struct PyModuleDef MaxMindDB_module = {
                          ^
extension/maxminddb.c:699:15: note: forward declaration of 'struct PyModuleDef'
static struct PyModuleDef MaxMindDB_module = {
              ^
extension/maxminddb.c:709:9: warning: implicit declaration of function 'PyModule_Create' is invalid in C99 [-Wimplicit-function-declaration]
    m = PyModule_Create(&MaxMindDB_module);
        ^
extension/maxminddb.c:712:9: error: void function 'PyInit_extension' should not return a value [-Wreturn-type]
        return NULL;
        ^      ~~~~
extension/maxminddb.c:717:9: error: void function 'PyInit_extension' should not return a value [-Wreturn-type]
        return NULL;
        ^      ~~~~
extension/maxminddb.c:724:9: error: void function 'PyInit_extension' should not return a value [-Wreturn-type]
        return NULL;
        ^      ~~~~
extension/maxminddb.c:730:9: error: void function 'PyInit_extension' should not return a value [-Wreturn-type]
        return NULL;
        ^      ~~~~
extension/maxminddb.c:737:9: error: void function 'PyInit_extension' should not return a value [-Wreturn-type]
        return NULL;
        ^      ~~~~
extension/maxminddb.c:745:5: error: void function 'PyInit_extension' should not return a value [-Wreturn-type]
    return m;
    ^      ~
3 warnings and 9 errors generated.
***************************************************************************
command 'cc' failed with exit status 1
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
Retrying the build without the C extension now.
***************************************************************************
running install
running build
running build_py
running egg_info
writing maxminddb.egg-info/PKG-INFO
writing top-level names to maxminddb.egg-info/top_level.txt
writing dependency_links to maxminddb.egg-info/dependency_links.txt
reading manifest file 'maxminddb.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.mmdb' under directory 'tests/'
warning: no files found matching '*.raw' under directory 'tests/'
warning: no directories found matching 'docs/html'
writing manifest file 'maxminddb.egg-info/SOURCES.txt'
running install_lib
creating /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7
creating /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages
creating /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb
copying build/lib/maxminddb/types.py -> /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb
copying build/lib/maxminddb/reader.py -> /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb
copying build/lib/maxminddb/__init__.py -> /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb
copying build/lib/maxminddb/errors.py -> /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb
copying build/lib/maxminddb/decoder.py -> /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb
copying build/lib/maxminddb/const.py -> /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb
copying build/lib/maxminddb/file.py -> /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb
byte-compiling /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb/types.py to types.pyc
byte-compiling /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb/reader.py to reader.pyc
  File "/usr/local/lib/python2.7/site-packages/maxminddb/reader.py", line 36
    _buffer: Union[bytes, FileBuffer, "mmap.mmap"]
           ^
SyntaxError: invalid syntax

byte-compiling /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb/__init__.py to __init__.pyc
  File "/usr/local/lib/python2.7/site-packages/maxminddb/__init__.py", line 25
    database: Union[AnyStr, int, os.PathLike, IO], mode: int = MODE_AUTO
            ^
SyntaxError: invalid syntax

byte-compiling /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb/errors.py to errors.pyc
byte-compiling /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb/decoder.py to decoder.pyc
  File "/usr/local/lib/python2.7/site-packages/maxminddb/decoder.py", line 23
    database_buffer: Union[FileBuffer, mmap, bytes],
                   ^
SyntaxError: invalid syntax

byte-compiling /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb/const.py to const.pyc
byte-compiling /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb/file.py to file.pyc
  File "/usr/local/lib/python2.7/site-packages/maxminddb/file.py", line 16
    def __init__(self, database: str) -> None:
                               ^
SyntaxError: invalid syntax

writing byte-compilation script '/tmp/tmpiqX0eC.py'
/usr/local/bin/python2.7 -O /tmp/tmpiqX0eC.py
  File "/usr/local/lib/python2.7/site-packages/maxminddb/reader.py", line 36
    _buffer: Union[bytes, FileBuffer, "mmap.mmap"]
           ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python2.7/site-packages/maxminddb/__init__.py", line 25
    database: Union[AnyStr, int, os.PathLike, IO], mode: int = MODE_AUTO
            ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python2.7/site-packages/maxminddb/decoder.py", line 23
    database_buffer: Union[FileBuffer, mmap, bytes],
                   ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python2.7/site-packages/maxminddb/file.py", line 16
    def __init__(self, database: str) -> None:
                               ^
SyntaxError: invalid syntax

removing /tmp/tmpiqX0eC.py
running install_egg_info
Copying maxminddb.egg-info to /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb-2.0.1-py2.7.egg-info
running install_scripts
writing list of installed files to '/wrkdirs/usr/ports/net/py-maxminddb/work-py27/.PLIST.pymodtmp'
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python build succeeded.
***************************************************************************
/usr/bin/strip /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb/extension.so
strip: open /wrkdirs/usr/ports/net/py-maxminddb/work-py27/stage/usr/local/lib/python2.7/site-packages/maxminddb/extension.so failed: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/net/py-maxminddb



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007241158.06OBw7U8089316>