Code Monkey home page Code Monkey logo

Comments (7)

televi avatar televi commented on July 29, 2024 1

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.

mwilliamson avatar mwilliamson commented on July 29, 2024

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.

bernt-matthias avatar bernt-matthias commented on July 29, 2024

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.

mwilliamson avatar mwilliamson commented on July 29, 2024

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.

bernt-matthias avatar bernt-matthias commented on July 29, 2024

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.

mwilliamson avatar mwilliamson commented on July 29, 2024

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.

bernt-matthias avatar bernt-matthias commented on July 29, 2024

Cool. Thanks a lot.

from jq.py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.