EducationalTestingService / python-zpar

A python wrapper around the ZPar parser for English.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

install failure (Failed building wheel for python-zpar) on macOS Catalina

Punchwes opened this issue · comments

when installing python-zpar by using pip install python-zpar it gives

wget -N https://github.com/frcchang/zpar/archive/v0.7.5.tar.gz -O /tmp/zpar.tar.gz
  make: wget: No such file or directory
  make: *** [/tmp/zpar.tar.gz] Error 1

   Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-yw_mm28r/python-zpar/setup.py", line 111, in <module>
        ['zpar_server = zpar.zpar_server:main']}
      File "/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-yw_mm28r/python-zpar/setup.py", line 70, in run
        install.run(self)
      File "/anaconda3/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/anaconda3/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-yw_mm28r/python-zpar/setup.py", line 50, in run
        self.execute(compile, [], 'compiling zpar library')
      File "/anaconda3/lib/python3.6/distutils/cmd.py", line 335, in execute
        util.execute(func, args, msg, dry_run=self.dry_run)
      File "/anaconda3/lib/python3.6/distutils/util.py", line 301, in execute
        func(*args)
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-yw_mm28r/python-zpar/setup.py", line 48, in compile
        raise RuntimeError('ZPar shared library compilation failed')
    RuntimeError: ZPar shared library compilation failed
    

I have already changed my c++ and c compiler to gcc

pengqiweideMacBook-Pro:~ pengqiwei$ gcc --version
gcc-8 (Homebrew GCC 8.2.0) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I am not sure where went wrong.....

Hmm, I uninstalled 8.2 and installed gcc 4.9. But the error still occurs.
The gcc version:

pengqiweideMacBook-Pro:discourse-parsing-master pengqiwei$ gcc --version
gcc-4.9 (Homebrew GCC 4.9.4_1) 4.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Still gives the error:

  Running setup.py bdist_wheel for python-zpar ... error
  Complete output from command /anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-idgt0sy0/python-zpar/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-wheel-amqk12rn --python-tag cp36:
  running bdist_wheel
  running build
  running build_zpar
  compiling zpar library
  ********************************************************************************
  rm -rf /tmp/zpar
  rm -f /tmp/zpar.tar.gz
  wget -N https://github.com/frcchang/zpar/archive/v0.7.5.tar.gz -O /tmp/zpar.tar.gz
  make: wget: No such file or directory
  make: *** [/tmp/zpar.tar.gz] Error 1
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-idgt0sy0/python-zpar/setup.py", line 111, in <module>
      ['zpar_server = zpar.zpar_server:main']}
    File "/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
      return distutils.core.setup(**attrs)
    File "/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/anaconda3/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 202, in run
      self.run_command('build')
    File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-idgt0sy0/python-zpar/setup.py", line 50, in run
      self.execute(compile, [], 'compiling zpar library')
    File "/anaconda3/lib/python3.6/distutils/cmd.py", line 335, in execute
      util.execute(func, args, msg, dry_run=self.dry_run)
    File "/anaconda3/lib/python3.6/distutils/util.py", line 301, in execute
      func(*args)
    File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-idgt0sy0/python-zpar/setup.py", line 48, in compile
      raise RuntimeError('ZPar shared library compilation failed')
  RuntimeError: ZPar shared library compilation failed
  
  ----------------------------------------
  Failed building wheel for python-zpar

wow. thanks so much for that.. yes, that is the problem for this error. I am so sorry about that, I forget that I haven't installed wget........

But after that, it still gives an error...

     touch /tmp/zpar.tar.gz
    mkdir /tmp/zpar
    tar -C /tmp/zpar -zxf /tmp/zpar.tar.gz --strip-components=1
    cp src/zpar.lib.cpp /tmp/zpar/src/english
    cp src/Makefile.lib.zpar /tmp/zpar
    cp src/Makefile /tmp/zpar
    cp src/reader.h /tmp/zpar/src/include/reader.h
    make -C /tmp/zpar zpar.so
    mkdir -p ./obj
    mkdir -p ./dist
    mkdir -p ./obj
    mkdir -p ./obj/linguistics
    mkdir -p ./obj/learning
    /usr/local/Cellar/gcc@4.9/4.9.4_1/bin/g++-4.9 -w -W -O3 -I./src/include -DNDEBUG -fPIC -c src/libs/reader.cpp -o obj/reader.o
    In file included from ./src/include/definitions.h:24:0,
                     from ./src/include/reader.h:17,
                     from src/libs/reader.cpp:12:
    /usr/local/Cellar/gcc@4.9/4.9.4_1/include/c++/4.9.4/cstdlib:72:20: fatal error: stdlib.h: No such file or directory
     #include <stdlib.h>
                        ^
    compilation terminated.
    make[1]: *** [obj/reader.o] Error 1
    make: *** [python-zpar] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-rbbfhryg/python-zpar/setup.py", line 111, in <module>
        ['zpar_server = zpar.zpar_server:main']}
      File "/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-rbbfhryg/python-zpar/setup.py", line 70, in run
        install.run(self)
      File "/anaconda3/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/anaconda3/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-rbbfhryg/python-zpar/setup.py", line 50, in run
        self.execute(compile, [], 'compiling zpar library')
      File "/anaconda3/lib/python3.6/distutils/cmd.py", line 335, in execute
        util.execute(func, args, msg, dry_run=self.dry_run)
      File "/anaconda3/lib/python3.6/distutils/util.py", line 301, in execute
        func(*args)
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-rbbfhryg/python-zpar/setup.py", line 48, in compile
        raise RuntimeError('ZPar shared library compilation failed')
    RuntimeError: ZPar shared library compilation failed

I have changed both g++ and gcc to 4.9 and the command I run is CXX=/usr/local/Cellar/gcc\@4.9/4.9.4_1/bin/g++-4.9 pip install python-zpar as I find in another issue entry (1#issue-42889662)

When I did not specify the CXX path, simply using pip install python-zpar. It gives me:

In file included from ./src/include/hash.h:25:
    ./src/include/hash_stream.h:18:11: error: call to function 'operator>>' that is neither visible in the template definition nor found by argument-dependent lookup
          iss >> table[key] ;
              ^
    ./src/common/tagger/implementations/collins/tagger.h:118:9: note: in instantiation of function template specialization 'operator>><CWord, english::CTag>' requested here
          i >> (*m_TopTags);
            ^
    ./src/english/tags.h:29:23: note: 'operator>>' should be declared prior to the call site or in namespace 'english'
    inline std::istream & operator >> (std::istream &is, english::CTag &tag) {
                          ^
    1 error generated.
    make[1]: *** [obj/english.postagger.o] Error 1
    make: *** [python-zpar] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-605eu7v0/python-zpar/setup.py", line 111, in <module>
        ['zpar_server = zpar.zpar_server:main']}
      File "/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-605eu7v0/python-zpar/setup.py", line 70, in run
        install.run(self)
      File "/anaconda3/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/anaconda3/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-605eu7v0/python-zpar/setup.py", line 50, in run
        self.execute(compile, [], 'compiling zpar library')
      File "/anaconda3/lib/python3.6/distutils/cmd.py", line 335, in execute
        util.execute(func, args, msg, dry_run=self.dry_run)
      File "/anaconda3/lib/python3.6/distutils/util.py", line 301, in execute
        func(*args)
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-605eu7v0/python-zpar/setup.py", line 48, in compile
        raise RuntimeError('ZPar shared library compilation failed')
    RuntimeError: ZPar shared library compilation failed
    

I also tried changing g++-4.9 to gcc-4.9, it still didn't work. And my gcc, g++ version is like:

pengqiweideMacBook-Pro:discourse-parsing-master pengqiwei$ g++ --version
g++-4.9 (Homebrew GCC 4.9.4_1) 4.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
pengqiweideMacBook-Pro:discourse-parsing-master pengqiwei$ gcc --version
gcc-4.9 (Homebrew GCC 4.9.4_1) 4.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I will be so appreciated if you could give some advice...

Hi, I have reinstalled Xcode, CLT and gcc according to the issue with homebrew, however the problem still remains. I think it might due to the conflict of homebrew, gcc and maybe other tools. It is so strange and make me crazy.....

touch /tmp/zpar.tar.gz
  mkdir /tmp/zpar
  tar -C /tmp/zpar -zxf /tmp/zpar.tar.gz --strip-components=1
  src/common/tagger/implementations/tweb/TWeb/wrrbms/1_3NoWSJ_h300c17e38.model: (Empty error message)
  tar: Error exit delayed from previous errors.
  make: *** [python-zpar] Error 1
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-u6r2cvc1/python-zpar/setup.py", line 111, in <module>
      ['zpar_server = zpar.zpar_server:main']}
    File "/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
      return distutils.core.setup(**attrs)
    File "/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/anaconda3/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 202, in run
      self.run_command('build')
    File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-u6r2cvc1/python-zpar/setup.py", line 50, in run
      self.execute(compile, [], 'compiling zpar library')
    File "/anaconda3/lib/python3.6/distutils/cmd.py", line 335, in execute
      util.execute(func, args, msg, dry_run=self.dry_run)
    File "/anaconda3/lib/python3.6/distutils/util.py", line 301, in execute
      func(*args)
    File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-u6r2cvc1/python-zpar/setup.py", line 48, in compile
      raise RuntimeError('ZPar shared library compilation failed')
  RuntimeError: ZPar shared library compilation failed
  
  ----------------------------------------
  Failed building wheel for python-zpar
  Running setup.py clean for python-zpar
Failed to build python-zpar

The second error is:

    /usr/local/Cellar/gcc@4.9/4.9.4_1/include/c++/4.9.4/cstdlib:72:20: fatal error: stdlib.h: No such file or directory
     #include <stdlib.h>
                        ^
    compilation terminated.
    make[1]: *** [obj/reader.o] Error 1
    make: *** [python-zpar] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-u6r2cvc1/python-zpar/setup.py", line 111, in <module>
        ['zpar_server = zpar.zpar_server:main']}
      File "/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-u6r2cvc1/python-zpar/setup.py", line 70, in run
        install.run(self)
      File "/anaconda3/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/anaconda3/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-u6r2cvc1/python-zpar/setup.py", line 50, in run
        self.execute(compile, [], 'compiling zpar library')
      File "/anaconda3/lib/python3.6/distutils/cmd.py", line 335, in execute
        util.execute(func, args, msg, dry_run=self.dry_run)
      File "/anaconda3/lib/python3.6/distutils/util.py", line 301, in execute
        func(*args)
      File "/private/var/folders/gv/z_6yynkd2sjchc5710zh5sjm0000gn/T/pip-install-u6r2cvc1/python-zpar/setup.py", line 48, in compile
        raise RuntimeError('ZPar shared library compilation failed')
    RuntimeError: ZPar shared library compilation failed

Ah, actually I run into this problem too when I try on my machine with macports. Looks like apple does not install the C headers into /usr/include with macOS Mojave (which I assume you are also running). To get around this, you have to first install a special package for now. From the Xcode 10 release notes under "New Features":

The command line tools will search the SDK for system headers by default. However, some software may fail to build correctly against the SDK and require macOS headers to be installed in the base system under /usr/include. If you are the maintainer of such software, we encourage you to update your project to work with the SDK or file a bug report for issues that are preventing you from doing so. As a workaround, an extra package is provided which will install the headers to the base system. In a future release, this package will no longer be provided. You can find this package at:
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

What a silly "feature"! I hope macports and homebrew will figure out a workaround for this soon so that I don't have to figure something out myself.

After installing that package, the pip installation worked for me. Please try this and let me know. I will then update the README after I have confirmation from you.

Thanks so much for that information!! By installing the package, I successfully installed the zpar as well as the discourse parser.

I am having the same problem. I am on Mac Catalina and /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg does not exist:

Collecting python-zpar
Using cached https://files.pythonhosted.org/packages/73/80/6961436556d7720239234a41e564cd30eed632f0f3a39ca8d82f288fb858/python-zpar-0.9.5.tar.gz
Installing collected packages: python-zpar
Running setup.py install for python-zpar ... error
Complete output from command "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/bin/python3" -u -c "import setuptools, tokenize;file='/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-l2f11g6y/python-zpar/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-record-z3g_ntcq/install-record.txt --single-version-externally-managed --compile --install-headers "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/include/site/python3.7/python-zpar":
running install
running build
running build_zpar
compiling zpar library
********************************************************************************
rm -rf /tmp/zpar
rm -f /tmp/zpar.tar.gz
wget -N https://github.com/frcchang/zpar/archive/v0.7.5.tar.gz -O /tmp/zpar.tar.gz
make: wget: No such file or directory
make: *** [/tmp/zpar.tar.gz] Error 1
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-l2f11g6y/python-zpar/setup.py", line 111, in
['zpar_server = zpar.zpar_server:main']}
File "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/lib/python3.7/site-packages/setuptools/init.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-l2f11g6y/python-zpar/setup.py", line 70, in run
install.run(self)
File "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-l2f11g6y/python-zpar/setup.py", line 50, in run
self.execute(compile, [], 'compiling zpar library')
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 335, in execute
util.execute(func, args, msg, dry_run=self.dry_run)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/util.py", line 286, in execute
func(*args)
File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-l2f11g6y/python-zpar/setup.py", line 48, in compile
raise RuntimeError('ZPar shared library compilation failed')
RuntimeError: ZPar shared library compilation failed

Please let me know if you have seen this before.

Well, your failure log points to wget not being installed:

make: wget: No such file or directory

This is what I see now:

`Running setup.py install for python-zpar ... error
Complete output from command "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/bin/python3" -u -c "import setuptools, tokenize;file='/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-mbm1_2aq/python-zpar/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-record-19yw9rz9/install-record.txt --single-version-externally-managed --compile --install-headers "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/include/site/python3.7/python-zpar":
running install
running build
running build_zpar
compiling zpar library
********************************************************************************
rm -rf /tmp/zpar
rm -f /tmp/zpar.tar.gz
wget -N https://github.com/frcchang/zpar/archive/v0.7.5.tar.gz -O /tmp/zpar.tar.gz
WARNING: timestamping does nothing in combination with -O. See the manual
for details.

--2019-11-07 03:13:20--  https://github.com/frcchang/zpar/archive/v0.7.5.tar.gz
Resolving github.com (github.com)... 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/frcchang/zpar/tar.gz/v0.7.5 [following]
--2019-11-07 03:13:20--  https://codeload.github.com/frcchang/zpar/tar.gz/v0.7.5
Resolving codeload.github.com (codeload.github.com)... 140.82.114.10
Connecting to codeload.github.com (codeload.github.com)|140.82.114.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/tmp/zpar.tar.gz’

     0K .......... .......... .......... .......... .......... 1.36M
    50K .......... .......... .......... .......... .......... 1.61M
   100K .......... .......... .......... .......... .......... 24.7M
   150K .......... .......... .......... .......... .......... 24.0M
   200K .......... .......... .......... .......... .......... 1.43M
   250K .......... .......... .......... .......... .......... 46.7M
   300K .......... .......... .......... .......... .......... 8.47M
   350K .......... .......... .......... .......... .......... 29.0M
   400K .......... .......... .......... .......... .......... 5.37M
   450K .......... .......... .......... .......... .......... 5.02M
   500K .......... .......... .......... .......... .......... 14.4M
   550K .......... .......... .......... .......... .......... 6.69M
   600K .......... .......... .......... .......... .......... 40.8M
   650K .......... .......... .......... .......... .......... 2.61M
   700K .......... .......... .......... .......... .......... 38.7M
   750K .......... .......... .......... .......... .......... 35.1M
   800K .......... .......... .......... .......... .......... 3.95M
   850K .......... .......... .......... .......... .......... 25.6M
   900K .......... .......... .......... .......... .......... 21.7M
   950K .......... .......... .......... .......... .......... 46.2M
  1000K .......... .......... .......... .......... .......... 17.9M
  1050K .......... .......... .......... .......... .......... 24.9M
  1100K .......... .......... .......... .......... .......... 69.5M
  1150K .......... .......... .......... .......... .......... 20.3M
  1200K .......... .......... .......... .......... .......... 10.9M
  1250K .......... .......... .......... .......... .......... 17.5M
  1300K .......... .......... .......... .......... .......... 28.4M
  1350K .......... .......... .......... .......... .......... 12.9M
  1400K .......... .......... .......... .......... .......... 54.5M
  1450K .......... .......... .......... .......... .......... 69.3M
  1500K .......... .......... .......... .......... .......... 34.9M
  1550K .......... .......... .......... .......... .......... 6.90M
  1600K .......... .......... .......... .......... .......... 10.3M
  1650K .......... .......... .......... .......... .......... 56.1M
  1700K .......... .......... .......... .......... .......... 35.8M
  1750K .......... .......... .......... .......... .......... 31.0M
  1800K .......... .......... .......... .......... .......... 19.9M
  1850K .......... .......... .......... .......... .......... 23.3M
  1900K .......... .......... .......... .......... .......... 28.0M
  1950K .......... .......... .......... .......... .......... 33.7M
  2000K .......... .......... .......... .......... .......... 34.6M
  2050K .......... .......... .......... .......... .......... 12.9M
  2100K .......... .......... .......... .......... .......... 6.91M
  2150K .......... .......... .......... .......... .......... 9.78M
  2200K .......... .......... .......... .......... .......... 67.3M
  2250K .......... .......... .......... .......... .......... 11.7M
  2300K .......... .......... .......... .......... .......... 53.0M
  2350K .......... .......... .......... .......... ..........  119M
  2400K .......... .......... .......... .......... ..........  109M
  2450K .......... .......... .......... .......... .......... 12.5M
  2500K .......... .......... .......... .......... ..........  103M
  2550K .......... .......... .......... .......... .......... 11.4M
  2600K .......... .......... .......... .......... .......... 11.9M
  2650K .......... .......... .......... .......... .......... 13.7M
  2700K .......... .......... .......... .......... .......... 61.2M
  2750K .......... .......... .......... .......... .......... 27.2M
  2800K .......... .......... .......... .......... .......... 28.6M
  2850K .......... .......... .......... .......... .......... 37.9M
  2900K .......... .......... .......... .......... .......... 19.2M
  2950K .......... .......... .......... .......... .......... 39.4M
  3000K .......... .......... .......... .......... .......... 23.2M
  3050K .......... .......... .......... .......... .......... 11.4M
  3100K .......... .......... .......... .......... .......... 25.4M
  3150K .......... .......... .......... .......... .......... 29.3M
  3200K .......... .......... .......... .......... .......... 27.8M
  3250K .......... .......... .......... .......... .......... 22.1M
  3300K .......... .......... .......... .......... .......... 45.3M
  3350K .......... .......... .......... .......... .......... 29.1M
  3400K .......... .......... .......... .......... .......... 23.0M
  3450K .......... .......... .......... .......... .......... 16.9M
  3500K .......... .......... .......... .......... .......... 21.8M
  3550K .......... .......... .......... .......... .......... 60.6M
  3600K .......... .......... .......... .......... .......... 45.6M
  3650K .......... .......... .......... .......... .......... 23.9M
  3700K .......... .......... .......... .......... .......... 27.8M
  3750K .......... .......... .......... .......... .......... 13.7M
  3800K .......... .......... .......... .......... .......... 14.1M
  3850K .......... .......... .......... .......... .......... 62.8M
  3900K .......... .......... .......... .......... .......... 97.9M
  3950K .......... .......... .......... .......... .......... 12.7M
  4000K .......... .......... .......... .......... .......... 12.1M
  4050K .......... .......... .......... .......... .......... 67.3M
  4100K .......... .......... .......... .......... .......... 11.8M
  4150K .......... .......... .......... .......... .......... 75.6M
  4200K .......... .......... .......... .......... .......... 11.8M
  4250K .......... .......... .......... .......... .......... 65.4M
  4300K .......... .......... .......... .......... ..........  160M
  4350K .......... .......... .......... .......... .......... 48.8M
  4400K .......... .......... .......... .......... .......... 13.4M
  4450K .......... .......... .......... .......... ..........  106M
  4500K .......... .......... .......... .......... .......... 14.7M
  4550K .......... .......... .......... .......... .......... 11.4M
  4600K .......... .......... .......... .......... .......... 11.2M
  4650K .......... .......... .......... .......... .......... 54.7M
  4700K .......... .......... .......... .......... ..........  153M
  4750K .......... .......... .......... .......... .......... 56.8M
  4800K .......... .......... .......... .......... .......... 49.7M
  4850K .......... .......... .......... .......... .......... 20.9M
  4900K .......... .......... .......... .......... .......... 35.5M
  4950K .......... .......... .......... .......... .......... 32.8M
  5000K .......... .......... .......... .......... .......... 20.2M
  5050K .......... .......... .......... .......... .......... 25.1M
  5100K .......... .......... .......... .......... .......... 36.4M
  5150K .......... .......... .......... .......... .......... 27.5M
  5200K .......... .......... .......... .......... .......... 28.5M
  5250K .......... .......... .......... .......... .......... 6.63M
  5300K .......... .......... .......... .......... .......... 34.0M
  5350K .......... .......... .......... .......... .......... 27.9M
  5400K .......... .......... .......... .......... .......... 24.4M
  5450K .......... .......... .......... .......... .......... 41.2M
  5500K .......... .......... .......... .......... .......... 32.8M
  5550K .......... .......... .......... .......... .......... 21.1M
  5600K .......... .......... .......... .......... .......... 24.0M
  5650K .......... .......... .......... .......... .......... 31.2M
  5700K .......... .......... .......... .......... .......... 11.9M
  5750K .......... .......... .......... .......... ..........  102M
  5800K .......... .......... .......... .......... .......... 9.29M
  5850K .......... .......... .......... .......... .......... 61.3M
  5900K .......... .......... .......... .......... ..........  105M
  5950K .......... .......... .......... .......... .......... 54.4M
  6000K .......... .......... .......... .......... .......... 10.7M
  6050K .......... .......... .......... .......... .......... 9.77M
  6100K .......... .......... .......... .......... ..........  249K
  6150K .......... .......... .......... .......... .......... 52.5M
  6200K .......... .......... .......... .......... ..........  101M
  6250K .......... .......... .......... .......... ..........  105M
  6300K .......... .......... .......... .......... ..........  108M
  6350K .......... .......... .......... .......... .......... 93.2M
  6400K .......... .......... .......... .......... .......... 85.8M
  6450K .......... .......... .......... .......... .......... 88.9M
  6500K .......... .......... .......... .......... ..........  119M
  6550K .......... .......... .......... .......... ..........  153M
  6600K .......... .......... .......... .......... .......... 79.5M
  6650K .......... .......... .......... .......... .......... 81.5M
  6700K .......... .......... .......... .......... ..........  107M
  6750K .......... .......... .......... .......... .......... 95.0M
  6800K .......... .......... .......... .......... .......... 2.27M
  6850K .......... .......... .......... .......... .......... 16.6M
  6900K .......... .......... .......... .......... .......... 31.7M
  6950K .......... .......... .......... .......... .......... 20.1M
  7000K .......... .......... .......... .......... .......... 60.3M
  7050K .......... .......... .......... .......... .......... 42.3M
  7100K .......... .......... .......... .......... .......... 40.8M
  7150K .......... .......... .......... .......... .......... 31.8M
  7200K .......... .......... .......... .......... .......... 17.1M
  7250K .......... .......... .......... .......... .......... 33.0M
  7300K .......... .......... .......... .......... .......... 34.5M
  7350K .......... .......... .......... .......... .......... 38.0M
  7400K .......... .......... .......... .......... .......... 33.7M
  7450K .......... .......... .......... .......... .......... 11.7M
  7500K .......... .......... .......... .......... .......... 12.2M
  7550K .......... .......... .......... .......... .......... 73.8M
  7600K .......... .......... .......... .......... .......... 76.4M
  7650K .......... .......... .......... .......... ..........  127M
  7700K .......... .......... .......... .......... .......... 36.5M
  7750K .......... .......... .......... .......... .......... 24.5M
  7800K .......... .......... .......... .......... .......... 64.8M
  7850K .......... .......... .......... .......... .......... 19.7M
  7900K .......... .......... .......... .......... .......... 25.4M
  7950K .......... .......... .......... .......... .......... 23.3M
  8000K .......... .......... .......... .......... .......... 31.5M
  8050K .......... .......... .......... .......... .......... 47.0M
  8100K .......... .......... .......... .......... .......... 19.0M
  8150K .......... .......... .......... .......... .......... 9.71M
  8200K .......... .......... .......... .......... .......... 48.4M
  8250K .......... .......... .......... .......... .......... 70.5M
  8300K .......... .......... .......... .......... .......... 84.5M
  8350K .......... .......... .......... .......... .......... 72.9M
  8400K .......... .......... .......... .......... .......... 20.2M
  8450K .......... .......... .......... .......... .......... 35.9M
  8500K .......... .......... .......... .......... .......... 26.3M
  8550K .......... .......... .......... .......... .......... 43.1M
  8600K .......... .......... .......... .......... .......... 25.2M
  8650K .......... .......... .......... .......... .......... 24.6M
  8700K .......... .......... .......... .......... .......... 7.90M
  8750K .......... .......... .......... .......... .......... 68.8M
  8800K .......... .......... .......... .......... .......... 12.7M
  8850K .......... .......... .......... .......... .......... 44.0M
  8900K .......... .......... .......... .......... ..........  112M
  8950K .......... .......... .......... .......... ..........  116M
  9000K .......... .......... .......... .......... .......... 52.8M
  9050K .......... .......... .......... .......... .......... 14.3M
  9100K .......... .......... .......... .......... .......... 67.1M
  9150K .......... .......... .......... .......... .......... 86.4M
  9200K .......... .......... .......... .......... .......... 13.3M
  9250K .......... .......... .......... .......... .......... 93.2M
  9300K .......... .......... .......... .......... .......... 12.8M
  9350K .......... .......... .......... .......... .......... 73.0M
  9400K .......... .......... .......... .......... .......... 94.4M
  9450K .......... .......... .......... .......... .......... 14.2M
  9500K .......... .......... .......... .......... .......... 71.6M
  9550K .......... .......... .......... .......... ..........  153M
  9600K .......... .......... .......... .......... .......... 13.2M
  9650K .......... .......... .......... .......... .......... 74.8M
  9700K .......... .......... .......... .......... .......... 12.8M
  9750K .......... .......... .......... .......... .......... 76.2M
  9800K .......... .......... .......... .......... ..........  145M
  9850K .......... .......... .......... .......... .......... 12.7M
  9900K .......... .......... .......... .......... .......... 84.0M
  9950K .......... .......... .......... .......... ..........  160M
 10000K .......... .......... .......... .......... .......... 44.8M
 10050K .......... .......... .......... .......... .......... 26.9M
 10100K .......... .......... .......... .......... .......... 32.1M
 10150K .......... .......... .......... .......... .......... 25.6M
 10200K .......... .......... .......... .......... .......... 28.1M
 10250K .......... .......... .......... .......... .......... 31.5M
 10300K .......... .......... .......... .......... .......... 26.2M
 10350K .......... .......... .......... .......... .......... 34.6M
 10400K .......... .......... .......... .......... .......... 17.6M
 10450K .......... .......... .......... .......... .......... 41.6M
 10500K .......... .......... .......... .......... .......... 29.6M
 10550K .......... .......... .......... .......... .......... 37.4M
 10600K .......... .......... .......... .......... .......... 31.7M
 10650K .......... .......... .......... .......... .......... 11.7M
 10700K .......... .......... .......... .......... ..........  132M
 10750K .......... .......... .......... .......... .......... 24.3M
 10800K .......... .......... .......... .......... .......... 49.4M
 10850K .......... .......... .......... .......... .......... 22.5M
 10900K .......... .......... .......... .......... .......... 42.4M
 10950K .......... .......... .......... .......... .......... 28.3M
 11000K .......... .......... .......... .......... .......... 10.9M
 11050K .......... .......... .......... .......... .......... 67.8M
 11100K .......... .......... .......... .......... .......... 13.2M
 11150K .......... .......... .......... .......... .......... 58.3M
 11200K .......... .......... .......... .......... ..........  158M
 11250K .......... .......... .......... .......... .......... 13.1M
 11300K .......... .......... .......... .......... .......... 65.5M
 11350K .......... .......... .......... .......... .......... 14.0M
 11400K .......... .......... .......... .......... .......... 69.9M
 11450K .......... .......... .......... .......... .......... 71.2M
 11500K .......... .......... .......... .......... .......... 8.73M
 11550K .......... .......... .......... .......... ..........  113M
 11600K .......... .......... .......... .......... .......... 88.3M
 11650K .......... .......... .......... .......... .......... 51.5M
 11700K .......... .......... .......... .......... .......... 11.0M
 11750K .......... .......... .......... .......... .......... 41.0M
 11800K .......... .......... .......... .......... ..........  138M
 11850K .......... .......... .......... .......... .......... 10.8M
 11900K .......... .......... .......... .......... .......... 68.4M
 11950K .......... .......... .......... .......... ..........  106M
 12000K .......... .......... .......... .......... .......... 93.4M
 12050K .......... .......... .......... .......... .......... 9.27M
 12100K .......... .......... .......... .......... .......... 89.1M
 12150K .......... .......... .......... .......... ..........  138M
 12200K .......... .......... .......... .......... .......... 22.9M
 12250K .......... .......... .......... .......... .......... 76.1M
 12300K .......... .......... .......... .......... ..........  126M
 12350K .......... .......... .......... .......... .......... 31.4M
 12400K .......... .......... .......... .......... .......... 62.7M
 12450K .......... .......... .......... .......... .......... 17.4M
 12500K .......... .......... .......... .......... .......... 37.0M
 12550K .......... .......... .......... .......... .......... 30.0M
 12600K .......... .......... .......... .......... .......... 27.2M
 12650K .......... .......... .......... .......... .......... 24.8M
 12700K .......... .......... .......... .......... .......... 43.8M
 12750K .......... .......... .......... .......... .......... 23.3M
 12800K .......... .......... .......... .......... .......... 46.2M
 12850K .......... .......... .......... .......... .......... 24.5M
 12900K .......... .......... .......... .......... .......... 34.7M
 12950K .......... .......... .......... .......... .......... 23.5M
 13000K .......... .......... .......... .......... .......... 20.0M
 13050K .......... .......... .......... .......... .......... 23.1M
 13100K .......... .......... .......... .......... .......... 29.7M
 13150K .......... .......... .......... .......... .......... 35.1M
 13200K .......... .......... .......... .......... .......... 20.3M
 13250K .......... .......... .......... .......... .......... 11.3M
 13300K .......... .......... .......... .......... ..........  107M
 13350K .......... .......... .......... .......... .......... 82.3M
 13400K .......... .......... .......... .......... .......... 10.9M
 13450K .......... .......... .......... .......... .......... 72.2M
 13500K .......... .......... .......... .......... ..........  149M
 13550K .......... .......... .......... .......... .......... 14.6M
 13600K .......... .......... .......... .......... .......... 68.7M
 13650K .......... .......... .......... .......... .......... 13.5M
 13700K .......... .......... .......... .......... .......... 69.5M
 13750K .......... .......... .......... .......... ..........  128M
 13800K .......... .......... .......... .......... .......... 12.7M
 13850K .......... .......... .......... .......... .......... 63.0M
 13900K .......... .......... .......... .......... .......... 14.2M
 13950K .......... .......... .......... .......... .......... 68.2M
 14000K .......... .......... .......... .......... ..........  104M
 14050K .......... .......... .......... .......... .......... 13.5M
 14100K .......... .......... .......... .......... .......... 88.9M
 14150K .......... .......... .......... .......... .......... 76.7M
 14200K .......... .......... .......... .......... .......... 12.9M
 14250K .......... .......... .......... .......... .......... 6.99M
 14300K .......... .......... .......... .......... .......... 15.3M
 14350K .......... .......... .......... .......... .......... 45.9M
 14400K .......... .......... .......... .......... .......... 33.8M
 14450K .......... .......... .......... .......... .......... 19.1M
 14500K .......... .......... .......... .......... .......... 55.3M
 14550K .......... .......... .......... .......... .......... 27.1M
 14600K .......... .......... .......... .......... .......... 24.8M
 14650K .......... .......... .......... .......... .......... 40.2M
 14700K .......... .......... .......... .......... .......... 19.0M
 14750K .......... .......... .......... .......... .......... 37.4M
 14800K .......... .......... .......... .......... .......... 35.0M
 14850K .......... .......... .......... .......... .......... 23.0M
 14900K .......... .......... .......... .......... .......... 27.2M
 14950K .......... .......... .......... .......... .......... 37.4M
 15000K .......... .......... .......... .......... .......... 22.7M
 15050K .......... .......... .......... .......... .......... 20.7M
 15100K .......... .......... .......... .......... .......... 31.7M
 15150K .......... .......... .......... .......... .......... 44.6M
 15200K .......... .......... .......... .......... .......... 24.1M
 15250K .......... .......... .......... .......... .......... 40.7M
 15300K .......... .......... .......... .......... .......... 25.0M
 15350K .......... .......... .......... .......... .......... 10.7M
 15400K .......... .......... .......... .......... .......... 70.0M
 15450K .......... .......... .......... .......... .......... 13.9M
 15500K .......... .......... .......... .......... .......... 68.6M
 15550K .......... .......... .......... .......... ..........  123M
 15600K .......... .......... .......... .......... .......... 12.3M
 15650K .......... .......... .......... .......... .......... 67.0M
 15700K .......... .......... .......... .......... .......... 97.3M
 15750K .......... .......... .......... .......... .......... 13.4M
 15800K .......... .......... .......... .......... ..........  107M
 15850K .......... .......... .......... .......... ..........  111M
 15900K .......... .......... .......... .......... .......... 10.4M
 15950K .......... .......... .......... .......... ..........  115M
 16000K .......... .......... .......... .......... .......... 14.3M
 16050K .......... .......... .......... .......... .......... 72.9M
 16100K .......... .......... .......... .......... .......... 97.3M
 16150K .......... .......... .......... .......... .......... 13.1M
 16200K .......... .......... .......... .......... ..........  101M
 16250K .......... .......... .......... .......... .......... 92.5M
 16300K .......... .......... .......... .......... .......... 12.2M
 16350K .......... .......... .......... .......... ..........  860K
 16400K .......... .......... .......... .......... ..........  136M
 16450K .......... .......... .......... .......... ..........  182M
 16500K .......... .......... .......... .......... ..........  241M
 16550K .......... .......... .......... .......... .......... 28.4M
 16600K .......... .......... .......... .......... .......... 21.0M
 16650K .......... .......... .......... .......... .......... 64.2M
 16700K .......... .......... .......... .......... .......... 45.6M
 16750K .......... .......... .......... .......... .......... 18.4M
 16800K .......... .......... .......... .......... .......... 36.2M
 16850K .......... .......... .......... .......... .......... 34.2M
 16900K .......... .......... .......... .......... .......... 23.3M
 16950K .......... .......... .......... .......... .......... 18.0M
 17000K .......... .......... .......... .......... .......... 46.0M
 17050K .......... .......... .......... .......... .......... 36.4M
 17100K .......... .......... .......... .......... .......... 44.9M
 17150K .......... .......... .......... .......... .......... 25.5M
 17200K .......... .......... .......... .......... .......... 33.7M
 17250K .......... .......... .......... .......... .......... 29.0M
 17300K .......... .......... .......... .......... .......... 20.4M
 17350K .......... .......... .......... .......... .......... 16.7M
 17400K .......... .......... .......... .......... .......... 35.2M
 17450K .......... .......... .......... .......... .......... 38.3M
 17500K .......... .......... .......... .......... .......... 35.2M
 17550K .......... .......... .......... .......... .......... 33.8M
 17600K .......... .......... .......... .......... .......... 30.4M
 17650K .......... .......... .......... .......... .......... 19.6M
 17700K .......... .......... .......... .......... .......... 40.8M
 17750K .......... .......... .......... .......... .......... 29.0M
 17800K .......... ...                                         17.7M=1.1s

2019-11-07 03:13:22 (16.0 MB/s) - ‘/tmp/zpar.tar.gz’ saved [18240529]

touch /tmp/zpar.tar.gz
mkdir /tmp/zpar
tar -C /tmp/zpar -zxf /tmp/zpar.tar.gz --strip-components=1
cp src/zpar.lib.cpp /tmp/zpar/src/english
cp src/Makefile.lib.zpar /tmp/zpar
cp src/Makefile /tmp/zpar
cp src/reader.h /tmp/zpar/src/include/reader.h
make -C /tmp/zpar zpar.so
mkdir -p ./obj
mkdir -p ./dist
mkdir -p ./obj
mkdir -p ./obj/linguistics
mkdir -p ./obj/learning
g++ -w -W -O3 -I./src/include -DNDEBUG -fPIC -c src/libs/reader.cpp -o obj/reader.o
mkdir -p ./obj
mkdir -p ./obj/linguistics
mkdir -p ./obj/learning
g++ -w -W -O3 -I./src/include -DNDEBUG -fPIC -c src/libs/writer.cpp -o obj/writer.o
mkdir -p ./obj
mkdir -p ./obj/linguistics
mkdir -p ./obj/learning
g++ -w -W -O3 -I./src/include -DNDEBUG -fPIC -c src/libs/options.cpp -o obj/options.o
g++ -w -W -O3 -I./src/include -DNDEBUG -fPIC -DTARGET_LANGUAGE=english -I./src/english -I./src/common/tagger -I./src/common/tagger/implementations/collins -c ./src/common/tagger/implementations/collins/tagger.cpp -o ./obj/english.postagger.o
In file included from ./src/common/tagger/implementations/collins/tagger.cpp:12:
In file included from ./src/common/tagger/implementations/collins/tagger.h:15:
In file included from ./src/common/tagger/implementations/collins/tagger_include.h:8:
In file included from ./src/include/hash.h:25:
./src/include/hash_stream.h:18:11: error: call to function 'operator>>' that is neither visible in the template definition nor found by argument-dependent lookup
      iss >> table[key] ;
          ^
./src/common/tagger/implementations/collins/tagger.h:118:9: note: in instantiation of function template specialization 'operator>><CWord, english::CTag>' requested here
      i >> (*m_TopTags);
        ^
./src/english/tags.h:29:23: note: 'operator>>' should be declared prior to the call site or in namespace 'english'
inline std::istream & operator >> (std::istream &is, english::CTag &tag) {
                      ^
1 error generated.
make[1]: *** [obj/english.postagger.o] Error 1
make: *** [python-zpar] Error 2
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-mbm1_2aq/python-zpar/setup.py", line 111, in <module>
    ['zpar_server = zpar.zpar_server:main']}
  File "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/lib/python3.7/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-mbm1_2aq/python-zpar/setup.py", line 70, in run
    install.run(self)
  File "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
    self.run_command('build')
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-mbm1_2aq/python-zpar/setup.py", line 50, in run
    self.execute(compile, [], 'compiling zpar library')
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 335, in execute
    util.execute(func, args, msg, dry_run=self.dry_run)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/util.py", line 286, in execute
    func(*args)
  File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-mbm1_2aq/python-zpar/setup.py", line 48, in compile
    raise RuntimeError('ZPar shared library compilation failed')
RuntimeError: ZPar shared library compilation failed`

Can you put the following in your .bashrc (assuming you are using bash), open a new terminal, and try building again?

export CPATH=`xcrun --show-sdk-path`/usr/include

I added the line in .bash_profile and tried building it again. Its the same error.

Hmm, and what if you run:

CPATH=`xcrun --show-sdk-path`/usr/include pip install python-zpar

Sorry, I personally haven’t upgraded to Catalina yet so I don’t have a way to debug this locally.

That does not work either.

Please post the full log.

Collecting python-zpar
  Using cached https://files.pythonhosted.org/packages/73/80/6961436556d7720239234a41e564cd30eed632f0f3a39ca8d82f288fb858/python-zpar-0.9.5.tar.gz
Installing collected packages: python-zpar
  Running setup.py install for python-zpar ... error
    Complete output from command "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/bin/python3" -u -c "import setuptools, tokenize;__file__='/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-om7z2e7v/python-zpar/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-record-llon76r1/install-record.txt --single-version-externally-managed --compile --install-headers "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/include/site/python3.7/python-zpar":
    running install
    running build
    running build_zpar
    compiling zpar library
    ********************************************************************************
    rm -rf /tmp/zpar
    rm -f /tmp/zpar.tar.gz
    wget -N https://github.com/frcchang/zpar/archive/v0.7.5.tar.gz -O /tmp/zpar.tar.gz
    WARNING: timestamping does nothing in combination with -O. See the manual
    for details.
    
    --2019-11-07 08:48:17--  https://github.com/frcchang/zpar/archive/v0.7.5.tar.gz
    Resolving github.com (github.com)... 192.30.253.113
    Connecting to github.com (github.com)|192.30.253.113|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://codeload.github.com/frcchang/zpar/tar.gz/v0.7.5 [following]
    --2019-11-07 08:48:18--  https://codeload.github.com/frcchang/zpar/tar.gz/v0.7.5
    Resolving codeload.github.com (codeload.github.com)... 140.82.113.10
    Connecting to codeload.github.com (codeload.github.com)|140.82.113.10|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [application/x-gzip]
    Saving to: ‘/tmp/zpar.tar.gz’
    
         0K .......... .......... .......... .......... ..........  482K
        50K .......... .......... .......... .......... .......... 2.14M
       100K .......... .......... .......... .......... .......... 23.3M
       150K .......... .......... .......... .......... .......... 8.80M
       200K .......... .......... .......... .......... .......... 1.31M
       250K .......... .......... .......... .......... .......... 22.5M
       300K .......... .......... .......... .......... .......... 13.3M
       350K .......... .......... .......... .......... .......... 13.8M
       400K .......... .......... .......... .......... .......... 3.18M
       450K .......... .......... .......... .......... .......... 4.02M
       500K .......... .......... .......... .......... .......... 21.8M
       550K .......... .......... .......... .......... .......... 28.8M
       600K .......... .......... .......... .......... .......... 19.2M
       650K .......... .......... .......... .......... .......... 31.1M
       700K .......... .......... .......... .......... .......... 4.67M
       750K .......... .......... .......... .......... .......... 4.74M
       800K .......... .......... .......... .......... .......... 3.40M
       850K .......... .......... .......... .......... .......... 18.1M
       900K .......... .......... .......... .......... .......... 3.85M
       950K .......... .......... .......... .......... .......... 6.49M
      1000K .......... .......... .......... .......... .......... 4.50M
      1050K .......... .......... .......... .......... .......... 4.96M
      1100K .......... .......... .......... .......... .......... 4.06M
      1150K .......... .......... .......... .......... .......... 21.6M
      1200K .......... .......... .......... .......... .......... 6.15M
      1250K .......... .......... .......... .......... .......... 2.98M
      1300K .......... .......... .......... .......... .......... 4.76M
      1350K .......... .......... .......... .......... .......... 4.08M
      1400K .......... .......... .......... .......... .......... 23.4M
      1450K .......... .......... .......... .......... .......... 3.22M
      1500K .......... .......... .......... .......... .......... 3.73M
      1550K .......... .......... .......... .......... .......... 3.52M
      1600K .......... .......... .......... .......... .......... 5.48M
      1650K .......... .......... .......... .......... .......... 4.24M
      1700K .......... .......... .......... .......... .......... 20.9M
      1750K .......... .......... .......... .......... .......... 4.33M
      1800K .......... .......... .......... .......... .......... 3.91M
      1850K .......... .......... .......... .......... .......... 3.83M
      1900K .......... .......... .......... .......... .......... 4.72M
      1950K .......... .......... .......... .......... .......... 17.4M
      2000K .......... .......... .......... .......... .......... 2.63M
      2050K .......... .......... .......... .......... .......... 19.4M
      2100K .......... .......... .......... .......... .......... 4.57M
      2150K .......... .......... .......... .......... .......... 4.91M
      2200K .......... .......... .......... .......... .......... 4.77M
      2250K .......... .......... .......... .......... .......... 7.63M
      2300K .......... .......... .......... .......... .......... 22.8M
      2350K .......... .......... .......... .......... .......... 25.5M
      2400K .......... .......... .......... .......... .......... 4.63M
      2450K .......... .......... .......... .......... .......... 7.35M
      2500K .......... .......... .......... .......... .......... 4.78M
      2550K .......... .......... .......... .......... .......... 16.9M
      2600K .......... .......... .......... .......... .......... 36.4M
      2650K .......... .......... .......... .......... .......... 6.66M
      2700K .......... .......... .......... .......... .......... 5.97M
      2750K .......... .......... .......... .......... .......... 7.23M
      2800K .......... .......... .......... .......... .......... 4.83M
      2850K .......... .......... .......... .......... .......... 5.68M
      2900K .......... .......... .......... .......... .......... 23.6M
      2950K .......... .......... .......... .......... .......... 5.66M
      3000K .......... .......... .......... .......... .......... 4.57M
      3050K .......... .......... .......... .......... .......... 5.26M
      3100K .......... .......... .......... .......... .......... 6.52M
      3150K .......... .......... .......... .......... .......... 5.32M
      3200K .......... .......... .......... .......... .......... 3.96M
      3250K .......... .......... .......... .......... .......... 5.87M
      3300K .......... .......... .......... .......... .......... 20.9M
      3350K .......... .......... .......... .......... .......... 5.19M
      3400K .......... .......... .......... .......... .......... 2.17M
      3450K .......... .......... .......... .......... .......... 24.0M
      3500K .......... .......... .......... .......... .......... 32.3M
      3550K .......... .......... .......... .......... .......... 24.3M
      3600K .......... .......... .......... .......... .......... 14.5M
      3650K .......... .......... .......... .......... .......... 42.2M
      3700K .......... .......... .......... .......... .......... 3.83M
      3750K .......... .......... .......... .......... .......... 24.0M
      3800K .......... .......... .......... .......... .......... 23.7M
      3850K .......... .......... .......... .......... .......... 41.9M
      3900K .......... .......... .......... .......... .......... 26.3M
      3950K .......... .......... .......... .......... .......... 33.0M
      4000K .......... .......... .......... .......... .......... 9.53M
      4050K .......... .......... .......... .......... .......... 22.5M
      4100K .......... .......... .......... .......... .......... 37.5M
      4150K .......... .......... .......... .......... .......... 15.0M
      4200K .......... .......... .......... .......... .......... 19.8M
      4250K .......... .......... .......... .......... .......... 49.0M
      4300K .......... .......... .......... .......... .......... 57.0M
      4350K .......... .......... .......... .......... .......... 27.0M
      4400K .......... .......... .......... .......... .......... 29.4M
      4450K .......... .......... .......... .......... .......... 27.4M
      4500K .......... .......... .......... .......... .......... 43.3M
      4550K .......... .......... .......... .......... .......... 26.2M
      4600K .......... .......... .......... .......... .......... 17.0M
      4650K .......... .......... .......... .......... .......... 12.9M
      4700K .......... .......... .......... .......... .......... 40.2M
      4750K .......... .......... .......... .......... .......... 9.08M
      4800K .......... .......... .......... .......... .......... 33.5M
      4850K .......... .......... .......... .......... .......... 37.4M
      4900K .......... .......... .......... .......... .......... 30.0M
      4950K .......... .......... .......... .......... .......... 11.2M
      5000K .......... .......... .......... .......... .......... 37.9M
      5050K .......... .......... .......... .......... .......... 32.4M
      5100K .......... .......... .......... .......... .......... 40.4M
      5150K .......... .......... .......... .......... .......... 36.4M
      5200K .......... .......... .......... .......... .......... 45.6M
      5250K .......... .......... .......... .......... .......... 52.4M
      5300K .......... .......... .......... .......... .......... 48.5M
      5350K .......... .......... .......... .......... .......... 66.7M
      5400K .......... .......... .......... .......... ..........  990K
      5450K .......... .......... .......... .......... .......... 29.8M
      5500K .......... .......... .......... .......... .......... 5.19M
      5550K .......... .......... .......... .......... .......... 4.89M
      5600K .......... .......... .......... .......... .......... 4.20M
      5650K .......... .......... .......... .......... .......... 4.16M
      5700K .......... .......... .......... .......... .......... 4.67M
      5750K .......... .......... .......... .......... .......... 23.0M
      5800K .......... .......... .......... .......... .......... 5.63M
      5850K .......... .......... .......... .......... .......... 5.91M
      5900K .......... .......... .......... .......... .......... 4.33M
      5950K .......... .......... .......... .......... .......... 5.64M
      6000K .......... .......... .......... .......... .......... 5.53M
      6050K .......... .......... .......... .......... .......... 7.32M
      6100K .......... .......... .......... .......... .......... 27.3M
      6150K .......... .......... .......... .......... .......... 4.45M
      6200K .......... .......... .......... .......... .......... 5.95M
      6250K .......... .......... .......... .......... .......... 6.08M
      6300K .......... .......... .......... .......... .......... 6.19M
      6350K .......... .......... .......... .......... .......... 5.94M
      6400K .......... .......... .......... .......... .......... 5.17M
      6450K .......... .......... .......... .......... .......... 5.93M
      6500K .......... .......... .......... .......... .......... 12.2M
      6550K .......... .......... .......... .......... .......... 8.19M
      6600K .......... .......... .......... .......... .......... 5.40M
      6650K .......... .......... .......... .......... .......... 4.65M
      6700K .......... .......... .......... .......... .......... 6.76M
      6750K .......... .......... .......... .......... .......... 5.70M
      6800K .......... .......... .......... .......... .......... 5.82M
      6850K .......... .......... .......... .......... ..........  689K
      6900K .......... .......... .......... .......... .......... 12.3M
      6950K .......... .......... .......... .......... .......... 16.8M
      7000K .......... .......... .......... .......... .......... 15.8M
      7050K .......... .......... .......... .......... .......... 14.7M
      7100K .......... .......... .......... .......... .......... 18.9M
      7150K .......... .......... .......... .......... .......... 25.3M
      7200K .......... .......... .......... .......... .......... 35.7M
      7250K .......... .......... .......... .......... .......... 15.8M
      7300K .......... .......... .......... .......... .......... 16.5M
      7350K .......... .......... .......... .......... .......... 27.5M
      7400K .......... .......... .......... .......... .......... 28.3M
      7450K .......... .......... .......... .......... .......... 14.2M
      7500K .......... .......... .......... .......... .......... 53.0M
      7550K .......... .......... .......... .......... .......... 17.3M
      7600K .......... .......... .......... .......... .......... 22.6M
      7650K .......... .......... .......... .......... .......... 10.4M
      7700K .......... .......... .......... .......... .......... 56.1M
      7750K .......... .......... .......... .......... .......... 23.5M
      7800K .......... .......... .......... .......... .......... 20.3M
      7850K .......... .......... .......... .......... .......... 26.6M
      7900K .......... .......... .......... .......... .......... 40.6M
      7950K .......... .......... .......... .......... .......... 22.3M
      8000K .......... .......... .......... .......... .......... 27.9M
      8050K .......... .......... .......... .......... .......... 26.6M
      8100K .......... .......... .......... .......... .......... 18.7M
      8150K .......... .......... .......... .......... .......... 9.89M
      8200K .......... .......... .......... .......... .......... 21.5M
      8250K .......... .......... .......... .......... .......... 31.3M
      8300K .......... .......... .......... .......... .......... 52.4M
      8350K .......... .......... .......... .......... .......... 29.0M
      8400K .......... .......... .......... .......... .......... 8.96M
      8450K .......... .......... .......... .......... .......... 36.1M
      8500K .......... .......... .......... .......... .......... 40.6M
      8550K .......... .......... .......... .......... .......... 42.9M
      8600K .......... .......... .......... .......... .......... 15.9M
      8650K .......... .......... .......... .......... .......... 8.45M
      8700K .......... .......... .......... .......... .......... 35.7M
      8750K .......... .......... .......... .......... .......... 15.8M
      8800K .......... .......... .......... .......... .......... 34.0M
      8850K .......... .......... .......... .......... .......... 8.20M
      8900K .......... .......... .......... .......... .......... 32.3M
      8950K .......... .......... .......... .......... .......... 44.4M
      9000K .......... .......... .......... .......... .......... 18.3M
      9050K .......... .......... .......... .......... .......... 40.2M
      9100K .......... .......... .......... .......... .......... 16.2M
      9150K .......... .......... .......... .......... .......... 36.7M
      9200K .......... .......... .......... .......... .......... 43.7M
      9250K .......... .......... .......... .......... .......... 13.9M
      9300K .......... .......... .......... .......... .......... 42.3M
      9350K .......... .......... .......... .......... .......... 14.6M
      9400K .......... .......... .......... .......... .......... 35.5M
      9450K .......... .......... .......... .......... .......... 36.8M
      9500K .......... .......... .......... .......... .......... 50.8M
      9550K .......... .......... .......... .......... .......... 51.9M
      9600K .......... .......... .......... .......... .......... 18.1M
      9650K .......... .......... .......... .......... .......... 50.5M
      9700K .......... .......... .......... .......... .......... 16.7M
      9750K .......... .......... .......... .......... .......... 27.7M
      9800K .......... .......... .......... .......... .......... 24.3M
      9850K .......... .......... .......... .......... .......... 39.0M
      9900K .......... .......... .......... .......... .......... 12.3M
      9950K .......... .......... .......... .......... .......... 41.7M
     10000K .......... .......... .......... .......... .......... 18.6M
     10050K .......... .......... .......... .......... .......... 33.0M
     10100K .......... .......... .......... .......... .......... 14.5M
     10150K .......... .......... .......... .......... .......... 27.2M
     10200K .......... .......... .......... .......... .......... 24.8M
     10250K .......... .......... .......... .......... .......... 17.2M
     10300K .......... .......... .......... .......... .......... 24.8M
     10350K .......... .......... .......... .......... .......... 8.35M
     10400K .......... .......... .......... .......... .......... 37.4M
     10450K .......... .......... .......... .......... .......... 15.1M
     10500K .......... .......... .......... .......... .......... 38.6M
     10550K .......... .......... .......... .......... .......... 36.5M
     10600K .......... .......... .......... .......... .......... 14.8M
     10650K .......... .......... .......... .......... .......... 41.8M
     10700K .......... .......... .......... .......... .......... 14.8M
     10750K .......... .......... .......... .......... .......... 45.8M
     10800K .......... .......... .......... .......... .......... 18.3M
     10850K .......... .......... .......... .......... .......... 47.5M
     10900K .......... .......... .......... .......... .......... 13.4M
     10950K .......... .......... .......... .......... .......... 31.6M
     11000K .......... .......... .......... .......... .......... 39.3M
     11050K .......... .......... .......... .......... .......... 15.5M
     11100K .......... .......... .......... .......... .......... 39.1M
     11150K .......... .......... .......... .......... .......... 9.01M
     11200K .......... .......... .......... .......... .......... 29.5M
     11250K .......... .......... .......... .......... .......... 32.3M
     11300K .......... .......... .......... .......... .......... 43.8M
     11350K .......... .......... .......... .......... .......... 18.8M
     11400K .......... .......... .......... .......... .......... 40.5M
     11450K .......... .......... .......... .......... .......... 36.0M
     11500K .......... .......... .......... .......... .......... 39.8M
     11550K .......... .......... .......... .......... .......... 44.3M
     11600K .......... .......... .......... .......... .......... 18.9M
     11650K .......... .......... .......... .......... .......... 24.5M
     11700K .......... .......... .......... .......... .......... 13.5M
     11750K .......... .......... .......... .......... .......... 50.2M
     11800K .......... .......... .......... .......... .......... 41.7M
     11850K .......... .......... .......... .......... .......... 15.3M
     11900K .......... .......... .......... .......... .......... 38.7M
     11950K .......... .......... .......... .......... .......... 17.3M
     12000K .......... .......... .......... .......... .......... 31.0M
     12050K .......... .......... .......... .......... .......... 12.6M
     12100K .......... .......... .......... .......... .......... 9.85M
     12150K .......... .......... .......... .......... .......... 9.80M
     12200K .......... .......... .......... .......... .......... 39.9M
     12250K .......... .......... .......... .......... .......... 46.3M
     12300K .......... .......... .......... .......... .......... 25.3M
     12350K .......... .......... .......... .......... .......... 31.0M
     12400K .......... .......... .......... .......... .......... 40.3M
     12450K .......... .......... .......... .......... .......... 15.8M
     12500K .......... .......... .......... .......... .......... 37.9M
     12550K .......... .......... .......... .......... .......... 38.1M
     12600K .......... .......... .......... .......... .......... 17.7M
     12650K .......... .......... .......... .......... .......... 44.4M
     12700K .......... .......... .......... .......... .......... 18.9M
     12750K .......... .......... .......... .......... .......... 51.3M
     12800K .......... .......... .......... .......... .......... 12.4M
     12850K .......... .......... .......... .......... .......... 35.3M
     12900K .......... .......... .......... .......... .......... 18.2M
     12950K .......... .......... .......... .......... .......... 15.3M
     13000K .......... .......... .......... .......... .......... 33.9M
     13050K .......... .......... .......... .......... .......... 48.7M
     13100K .......... .......... .......... .......... .......... 20.4M
     13150K .......... .......... .......... .......... .......... 17.0M
     13200K .......... .......... .......... .......... .......... 30.1M
     13250K .......... .......... .......... .......... .......... 44.0M
     13300K .......... .......... .......... .......... .......... 29.8M
     13350K .......... .......... .......... .......... .......... 35.6M
     13400K .......... .......... .......... .......... .......... 17.0M
     13450K .......... .......... .......... .......... .......... 36.5M
     13500K .......... .......... .......... .......... .......... 13.1M
     13550K .......... .......... .......... .......... .......... 37.2M
     13600K .......... .......... .......... .......... .......... 44.4M
     13650K .......... .......... .......... .......... .......... 21.9M
     13700K .......... .......... .......... .......... .......... 13.6M
     13750K .......... .......... .......... .......... .......... 33.6M
     13800K .......... .......... .......... .......... .......... 46.0M
     13850K .......... .......... .......... .......... .......... 19.7M
     13900K .......... .......... .......... .......... .......... 32.7M
     13950K .......... .......... .......... .......... .......... 12.0M
     14000K .......... .......... .......... .......... .......... 30.7M
     14050K .......... .......... .......... .......... .......... 14.4M
     14100K .......... .......... .......... .......... .......... 10.7M
     14150K .......... .......... .......... .......... .......... 36.4M
     14200K .......... .......... .......... .......... .......... 17.7M
     14250K .......... .......... .......... .......... .......... 36.4M
     14300K .......... .......... .......... .......... .......... 38.8M
     14350K .......... .......... .......... .......... .......... 14.4M
     14400K .......... .......... .......... .......... .......... 37.2M
     14450K .......... .......... .......... .......... .......... 13.9M
     14500K .......... .......... .......... .......... .......... 14.9M
     14550K .......... .......... .......... .......... .......... 34.1M
     14600K .......... .......... .......... .......... .......... 41.5M
     14650K .......... .......... .......... .......... .......... 13.9M
     14700K .......... .......... .......... .......... .......... 46.4M
     14750K .......... .......... .......... .......... .......... 13.9M
     14800K .......... .......... .......... .......... .......... 12.1M
     14850K .......... .......... .......... .......... .......... 34.1M
     14900K .......... .......... .......... .......... .......... 38.9M
     14950K .......... .......... .......... .......... .......... 23.1M
     15000K .......... .......... .......... .......... .......... 47.9M
     15050K .......... .......... .......... .......... .......... 18.4M
     15100K .......... .......... .......... .......... .......... 50.6M
     15150K .......... .......... .......... .......... .......... 58.1M
     15200K .......... .......... .......... .......... .......... 24.5M
     15250K .......... .......... .......... .......... .......... 26.0M
     15300K .......... .......... .......... .......... .......... 19.6M
     15350K .......... .......... .......... .......... .......... 19.7M
     15400K .......... .......... .......... .......... .......... 22.7M
     15450K .......... .......... .......... .......... .......... 14.8M
     15500K .......... .......... .......... .......... .......... 50.3M
     15550K .......... .......... .......... .......... .......... 21.3M
     15600K .......... .......... .......... .......... .......... 22.5M
     15650K .......... .......... .......... .......... .......... 19.3M
     15700K .......... .......... .......... .......... .......... 10.9M
     15750K .......... .......... .......... .......... .......... 31.2M
     15800K .......... .......... .......... .......... .......... 36.7M
     15850K .......... .......... .......... .......... .......... 42.3M
     15900K .......... .......... .......... .......... .......... 25.5M
     15950K .......... .......... .......... .......... .......... 10.8M
     16000K .......... .......... .......... .......... .......... 11.9M
     16050K .......... .......... .......... .......... .......... 35.0M
     16100K .......... .......... .......... .......... .......... 14.4M
     16150K .......... .......... .......... .......... .......... 24.3M
     16200K .......... .......... .......... .......... .......... 36.7M
     16250K .......... .......... .......... .......... .......... 20.5M
     16300K .......... .......... .......... .......... .......... 43.5M
     16350K .......... .......... .......... .......... .......... 7.27M
     16400K .......... .......... .......... .......... .......... 35.5M
     16450K .......... .......... .......... .......... .......... 40.7M
     16500K .......... .......... .......... .......... .......... 43.4M
     16550K .......... .......... .......... .......... .......... 51.9M
     16600K .......... .......... .......... .......... .......... 27.5M
     16650K .......... .......... .......... .......... .......... 12.8M
     16700K .......... .......... .......... .......... .......... 36.6M
     16750K .......... .......... .......... .......... .......... 15.4M
     16800K .......... .......... .......... .......... .......... 43.2M
     16850K .......... .......... .......... .......... .......... 47.7M
     16900K .......... .......... .......... .......... .......... 43.8M
     16950K .......... .......... .......... .......... .......... 17.1M
     17000K .......... .......... .......... .......... .......... 30.5M
     17050K .......... .......... .......... .......... .......... 27.6M
     17100K .......... .......... .......... .......... .......... 28.9M
     17150K .......... .......... .......... .......... .......... 25.4M
     17200K .......... .......... .......... .......... .......... 16.0M
     17250K .......... .......... .......... .......... .......... 15.0M
     17300K .......... .......... .......... .......... .......... 21.6M
     17350K .......... .......... .......... .......... .......... 25.2M
     17400K .......... .......... .......... .......... .......... 20.6M
     17450K .......... .......... .......... .......... .......... 26.4M
     17500K .......... .......... .......... .......... .......... 20.8M
     17550K .......... .......... .......... .......... .......... 16.2M
     17600K .......... .......... .......... .......... .......... 4.52M
     17650K .......... .......... .......... .......... .......... 3.53M
     17700K .......... .......... .......... .......... .......... 5.51M
     17750K .......... .......... .......... .......... .......... 11.6M
     17800K .......... ...                                         25.3M=1.7s
    
    2019-11-07 08:48:20 (10.5 MB/s) - ‘/tmp/zpar.tar.gz’ saved [18240529]
    
    touch /tmp/zpar.tar.gz
    mkdir /tmp/zpar
    tar -C /tmp/zpar -zxf /tmp/zpar.tar.gz --strip-components=1
    cp src/zpar.lib.cpp /tmp/zpar/src/english
    cp src/Makefile.lib.zpar /tmp/zpar
    cp src/Makefile /tmp/zpar
    cp src/reader.h /tmp/zpar/src/include/reader.h
    make -C /tmp/zpar zpar.so
    mkdir -p ./obj
    mkdir -p ./dist
    mkdir -p ./obj
    mkdir -p ./obj/linguistics
    mkdir -p ./obj/learning
    g++ -w -W -O3 -I./src/include -DNDEBUG -fPIC -c src/libs/reader.cpp -o obj/reader.o
    In file included from src/libs/reader.cpp:12:
    In file included from ./src/include/reader.h:17:
    In file included from ./src/include/definitions.h:39:
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:314:9: error: no member named 'signbit' in the global namespace
    using ::signbit;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:315:9: error: no member named 'fpclassify' in the global namespace
    using ::fpclassify;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:316:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
    using ::isfinite;
          ~~^
    /usr/local/include/math.h:749:12: note: 'finite' declared here
    extern int finite(double)
               ^
    In file included from src/libs/reader.cpp:12:
    In file included from ./src/include/reader.h:17:
    In file included from ./src/include/definitions.h:39:
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:317:9: error: no member named 'isinf' in the global namespace
    using ::isinf;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:318:9: error: no member named 'isnan' in the global namespace
    using ::isnan;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:319:9: error: no member named 'isnormal' in the global namespace
    using ::isnormal;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:320:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
    using ::isgreater;
          ^~
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:728:29: note: '::std::greater' declared here
    struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                                ^
    In file included from src/libs/reader.cpp:12:
    In file included from ./src/include/reader.h:17:
    In file included from ./src/include/definitions.h:39:
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:321:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
    using ::isgreaterequal;
          ^~
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:757:29: note: '::std::greater_equal' declared here
    struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                                ^
    In file included from src/libs/reader.cpp:12:
    In file included from ./src/include/reader.h:17:
    In file included from ./src/include/definitions.h:39:
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:322:9: error: no member named 'isless' in the global namespace
    using ::isless;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:323:9: error: no member named 'islessequal' in the global namespace
    using ::islessequal;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:324:9: error: no member named 'islessgreater' in the global namespace
    using ::islessgreater;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
    using ::isunordered;
          ~~^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:326:9: error: no member named 'isunordered' in the global namespace
    using ::isunordered;
          ~~^
    13 errors generated.
    make[1]: *** [obj/reader.o] Error 1
    make: *** [python-zpar] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-om7z2e7v/python-zpar/setup.py", line 111, in <module>
        ['zpar_server = zpar.zpar_server:main']}
      File "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/lib/python3.7/site-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-om7z2e7v/python-zpar/setup.py", line 70, in run
        install.run(self)
      File "/Users/syauri/Desktop/Fall 2019/830-610-890/XMLParser/Pilot/RST-PDTB-parser/ETSrst/venv/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-om7z2e7v/python-zpar/setup.py", line 50, in run
        self.execute(compile, [], 'compiling zpar library')
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 335, in execute
        util.execute(func, args, msg, dry_run=self.dry_run)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/util.py", line 286, in execute
        func(*args)
      File "/private/var/folders/3x/h2qn8g_n6tj3y8s38c_pbg600000gn/T/pip-install-om7z2e7v/python-zpar/setup.py", line 48, in compile
        raise RuntimeError('ZPar shared library compilation failed')
    RuntimeError: ZPar shared library compilation failed

Thanks! Can you please answer the following two questions?

  1. What does the command xcrun --show-sdk-path return on your system?

  2. Does the directory /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include exist on your system?

xcrun --show-sdk-path
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

Yes /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include exists.

Are you using macports gcc or homebrew?

Homebrew

Okay, I am afraid I am all out of answers then. MacOS Catalina support might have to wait until I figure this out.