Skip to content

Jsonnet Incompatible Architecture (have 'x86_64', need 'arm64') #1098

Open

Description

Hello everyone,

I'm facing an issue with using the Jsonnet plugin for data parsing. I successfully installed it on my local machine without any problems. However, when my teammates download the code from our GitHub repository and try to build it, they encounter an "incompatible architecture" error.

Do you have any suggestions or insights on how to resolve this issue?

Setup.py

   ##setup.py
    install_requires=[
        "jsonnet~=0.20.0",
    ],
    extras_require={
        "dev": [
            "jsonnet",
        ]

Issue


xx.py:9: in <module>
    from utils.jsonnet_util import JsonnetParser
src/utils/jsonnet_util.py:4: in <module>
    from _jsonnet import evaluate_file
E   ImportError: dlopen(/PATH/TO/FILE/_jsonnet.cpython-39-darwin.so, 0x0002):
tried: '/PATH/TO/FILE/_jsonnet.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/PATH/TO/FILE/_jsonnet.cpython-39-darwin.so'
(no such file), '/PATH/TO/FILE/_jsonnet.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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