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
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 convertbngwhich produced the following 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:
Do you have any ideas for how to solve this?
Thank you