-
Notifications
You must be signed in to change notification settings - Fork 19
install failure (Failed building wheel for python-zpar) on macOS Catalina #29
Comments
Hmm, I’m not sure this will work with gcc 8.2. It certainly hasn’t been
tested. Can you try with gcc 4.9?
…On Tue, Nov 6, 2018 at 1:09 AM Punchwes ***@***.***> wrote:
when installing python-zpar it gives RuntimeError: ZPar shared library
compilation failed. While I have already changed my complier to homebrew
installed gcc.
pengqiweideMacBook-Pro:~ pengqiwei$ gcc -v Using built-in specs.
COLLECT_GCC=gcc-8
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/8.2.0/libexec/gcc/x86_64-apple-darwin18.0.0/8.2.0/lto-wrapper
Target: x86_64-apple-darwin18.0.0 Configured with: ../configure
--build=x86_64-apple-darwin18.0.0 --prefix=/usr/local/Cellar/gcc/8.2.0
--libdir=/usr/local/Cellar/gcc/8.2.0/lib/gcc/8
--enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-8
--with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr
--with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl
--with-system-zlib --enable-checking=release --with-pkgversion='Homebrew
GCC 8.2.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues
--disable-nls --disable-multilib
--with-native-system-header-dir=/usr/include
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk Thread
model: posix gcc version 8.2.0 (Homebrew GCC 8.2.0)
I am not sure where goes wrong.....
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#29>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAJ3kHQvE4IkNLLkv-j_Io46Jp4hC81Wks5usSeEgaJpZM4YP0BG>
.
|
Hmm, I uninstalled 8.2 and installed gcc 4.9. But the error still occurs.
Still gives the error:
|
Looks like the problem is that you don’t have wget installed.
…On Tue, Nov 6, 2018 at 9:48 AM Punchwes ***@***.***> wrote:
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
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJ3kOOlWDqkd6V5Xq5rIqlF144eYvC8ks5usaEugaJpZM4YP0BG>
.
|
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...
I have changed both g++ and gcc to 4.9 and the command I run is When I did not specify the CXX path, simply using
I also tried changing g++-4.9 to gcc-4.9, it still didn't work. And my gcc, g++ version is like:
I will be so appreciated if you could give some advice... |
Looks like an issue with homebrew here:
Homebrew/brew#1734
…On Tue, Nov 6, 2018 at 10:34 AM Punchwes ***@***.***> wrote:
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
***@***.***/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:
***@***.***/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 ***@***.***/4.9.4_1/bin/g++-4.9
pip install -r requirements.txt as I find in another issue entry
(1#issue-42889662)
I also tried changing g++-4.9 to gcc-4.9, it still didn't work.
I will be so appreciated if you could give some advice...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJ3kGaEKfYgoYgScV6QIAeCfe3oQi8Bks5usawYgaJpZM4YP0BG>
.
|
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.....
The second error is:
|
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
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. |
Excellent! I’ll update the readme.
…On Wed, Nov 7, 2018 at 9:13 PM Punchwes ***@***.***> wrote:
Thanks so much for that information!! By installing the package, I
successfully installed the zpar as well as the discourse parser.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJ3kGzUnQp4zsKPyqAb00zZhtTNUAJ7ks5us5M8gaJpZM4YP0BG>
.
|
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 Please let me know if you have seen this before. |
Well, your failure log points to
|
This is what I see now: `Running setup.py install for python-zpar ... error
|
Can you put the following in your 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. |
|
Thanks! Can you please answer the following two questions?
|
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. |
when installing python-zpar by using
pip install python-zpar
it givesI have already changed my c++ and c compiler to gcc
I am not sure where went wrong.....
The text was updated successfully, but these errors were encountered: