google / jsonnet

Jsonnet - The data templating language
http://jsonnet.org
Apache License 2.0
7.02k stars 441 forks source link

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

Open tech-cow opened 1 year ago

tech-cow commented 1 year ago

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'))
sparkprime commented 1 year ago

Use the go-jsonnet version, it's better and will avoid such issues. I think the package is called gojsonnet

On Sat, 10 Jun 2023, 00:27 Derrick Zhou, @.***> wrote:

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

src/aiml_airflow_plugins/operators/init.py:19: in from aiml_airflow_plugins.operators.dataglow.dataglow_operator import DataglowOperator src/aiml_airflow_plugins/operators/dataglow/dataglow_operator.py:9: in from aiml_airflow_plugins.utils.jsonnet_util import JsonnetParser src/aiml_airflow_plugins/utils/jsonnet_util.py:4: in 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'))

— Reply to this email directly, view it on GitHub https://github.com/google/jsonnet/issues/1098, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABJBXV5ETIGDZ77BMFZ473XKOWMVANCNFSM6AAAAAAZBHPIOM . You are receiving this because you are subscribed to this thread.Message ID: @.***>