Skip to content

pip install failure on build #3

@orm011

Description

@orm011

Hi there, was meaning to try jsonata, mostly to evaluate it as a json evaluation interface for a dataframe library in python. We're pretty excited about using it.

pip install jsonata                                                                                                              
Collecting jsonata
  Using cached jsonata-0.2.4.tar.gz (963 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: jsonata
  Building wheel for jsonata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for jsonata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      /private/var/folders/8v/d886z5j13dsctyjpw29t7y480000gn/T/pip-build-env-ff1drk7d/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'readme'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-11.0-arm64-cpython-39
      creating build/lib.macosx-11.0-arm64-cpython-39/jsonata
      copying jsonata/__init__.py -> build/lib.macosx-11.0-arm64-cpython-39/jsonata
      running build_ext
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/orm/mambaforge/envs/pixeltable/include -arch arm64 -fPIC -O2 -isystem /Users/orm/mambaforge/envs/pixeltable/include -arch arm64 -I/Users/orm/mambaforge/envs/pixeltable/include/python3.9 -c flagcheck.cpp -o flagcheck.o -std=c++17
      building '_jsonata' extension
      creating build/temp.macosx-11.0-arm64-cpython-39
      creating build/temp.macosx-11.0-arm64-cpython-39/duktape-2.7.0
      creating build/temp.macosx-11.0-arm64-cpython-39/duktape-2.7.0/src
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/orm/mambaforge/envs/pixeltable/include -arch arm64 -fPIC -O2 -isystem /Users/orm/mambaforge/envs/pixeltable/include -arch arm64 -DVERSION_INFO=0.2.4 -I/private/var/folders/8v/d886z5j13dsctyjpw29t7y480000gn/T/pip-build-env-ff1drk7d/overlay/lib/python3.9/site-packages/pybind11/include -Iduktape-2.7.0/src/ -I/Users/orm/mambaforge/envs/pixeltable/include/python3.9 -c duktape-2.7.0/src/duktape.c -o build/temp.macosx-11.0-arm64-cpython-39/duktape-2.7.0/src/duktape.o -std=c++17 -mmacosx-version-min=10.14 -fvisibility=hidden -g0 -std=c++14
      error: invalid argument '-std=c++14' not allowed with 'C'
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for jsonata
Failed to build jsonata
ERROR: Could not build wheels for jsonata, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions