Comments (7)
Sorry to comment on a closed issue, but I have run into this problem as well on CentOS 7 and think I found the source (and the solution) in case others encounter this problem. The symptom I have is the same as the original reporter - autoreconf -i
fails as reported by subprocess.check_call()
when trying to build from source using pip.
The issue I found is jq 1.6 seems to require automake 1.14 or later and the default for CentOS 7 (and likely others) is 1.13.4 (or older). I found this by doing pip wheel --no-clean --global-option build_ext jq==1.0.2
and then cd'ing to the build directory created by pip, going into _deps and simply trying autoreconf -i
in both jq-* and onig-* directories to see what happened. The error printed when in _deps/jq-1.6 was
$ autoreconf -i
configure.ac:6: error: require Automake 1.14, but have 1.13.4
Installing automake 1.14 fixes the problem for me - I can do pip wheel --global-option build_ext jq==1.0.2
with no problems for both py37 and py36 (only two I tested).
It may be worth pointing out in README.rst that automake >=1.14 is required in order to build from source.
from jq.py.
I think the problem might be:
configure.ac:14: error: possibly undefined macro: AM_PROG_AR
A quick bit of searching suggests that this happens with older versions of automake. What version are you using, and do you get the same issue with more recent versions?
from jq.py.
Tried on a more recent Ubuntu and got another error:
ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xde00080)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-GA2WjT/jq/setup.py", line 123, in <module>
'Programming Language :: Python :: 3.5',
File "/tmp/venv/local/lib/python2.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/venv/local/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 188, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-install-GA2WjT/jq/setup.py", line 41, in run
self._build_libjq()
File "/tmp/pip-install-GA2WjT/jq/setup.py", line 64, in _build_libjq
["make"],
File "/tmp/pip-install-GA2WjT/jq/setup.py", line 79, in _build_lib
run_command(command)
File "/tmp/pip-install-GA2WjT/jq/setup.py", line 76, in run_command
subprocess.check_call(args, cwd=lib_dir)
File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['autoreconf', '-i']' returned non-zero exit status 1
Could it be that the error is due to using python 2.7?
Found the following in the original posted error message
File "/tmp/pip-install-4BZXbj/jq/setup.py", line 123, in <module>
'Programming Language :: Python :: 3.5',
from jq.py.
I don't think the Python version is the issue. If I search for your error message, it looks like a problem with Perl e.g. https://stackoverflow.com/questions/45000585/listutil-c-loadable-library-and-perl-binaries-are-mismatched-got-handshake-key
from jq.py.
Thanks for the comments. Tested again on the other system using autoconf 2.69 (which seems to be the latest) without any success.
from jq.py.
I've added support for wheels on Linux and Mac OS X in the latest version. Hopefully they work for you, but shout if not!
from jq.py.
Cool. Thanks a lot.
from jq.py.
Related Issues (20)
- how can I package this so that it can be reused as Lambda Layer in AWS? HOT 1
- 'OverflowError: cannot convert float infinity to integer' when handling big numbers HOT 3
- walk built-in function does not work HOT 1
- Output values truncated on "null bytes" HOT 2
- Is there a way to output query result without quotes (i.e. "jq -r ") HOT 1
- Error building wheel for jq during "pip install jq" HOT 1
- Cython-3 support HOT 3
- Tests failing with jq-1.7 HOT 1
- Useless `-lonig` when building using system libraries HOT 1
- Behaviour of Out Method first() on JSON Array Output HOT 1
- tox.ini missing in sdist - please add HOT 1
- Variable support
- Module support HOT 1
- Logging support
- ImportError on arm64 (Mac OSX M1) with jq 1.5.0 and 1.6.0 HOT 7
- install error HOT 1
- Specify jq command-line options HOT 2
- Add type hints as a `.pyi` stub file
- json.dumps: ensure_ascii
- Is it possible to input_file? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jq.py.