Can't create plugin_document-question-answering Code Env for Dataiku Answers Plugin

Falsubaiei
Falsubaiei Registered Posts: 2 ✭✭

I am trying to follow the tutorial "Tutorial | Build a conversational interface with Dataiku Answers" but I need to install "Answers" plugin beforehand. I tried to but when it comes to creating the code env step, I cant create it:

building wheel for simsimd (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [43 lines of output] /tmp/pip-build-env-4t93hipa/overlay/lib/python3.9/site-packages/setuptools/dist.py:759: setuptoolsdeprecationwarning: license classifiers are deprecated. !! ******************************************************************************** please consider removing the following classifiers in favor of a spdx license expression: license :: osi approved :: apache software license see https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ********************************************************************************

I am using Dataiku v13.5.0 and Python 3.9

Best,

Fatemah

Operating system used: Windows

Answers

  • Abderrahmane
    Abderrahmane Registered Posts: 1 ✭✭

    Hi Fatemah,

    Thanks for reaching out.

    The error log you shared isn’t very clear, but from what I can gather, it looks like there’s an issue when building the simsimd package during the code environment setup, specifically related to a configuration issue in the pyproject.toml file.

    One thing to note: the latest versions of the Answers plugin tend to work better with Python 3.10. Since you're using Python 3.9, that might be contributing to the problem.

    Unfortunately, I can’t give you a complete fix just yet without seeing the full error log. Could you please share the complete log from the code environment creation attempt? That would help pinpoint exactly what's going wrong and suggest a concrete workaround.

    Looking forward to your reply!

    Best,

  • Falsubaiei
    Falsubaiei Registered Posts: 2 ✭✭

    Hi Abderrahmane

    Thank you for your quick response. Here is the full log:

    Using cached jsonpointer-3.0.0-py2.py3-none-any.whl (7.6 kB)

    Collecting simple-websocket>=0.10.0

      Using cached simple_websocket-1.1.0-py3-none-any.whl (13 kB)

    Collecting markdown-it-py>=2.2.0

      Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)

    Collecting pygments<3.0.0,>=2.13.0

      Using cached pygments-2.19.1-py3-none-any.whl (1.2 MB)

    Collecting exceptiongroup>=1.0.2

      Using cached exceptiongroup-1.3.0-py3-none-any.whl (16 kB)

    Collecting mypy-extensions>=0.3.0

      Using cached mypy_extensions-1.1.0-py3-none-any.whl (5.0 kB)

    Collecting propcache>=0.2.1

      Using cached propcache-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (209 kB)

    Collecting humanfriendly>=9.1

      Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)

    Collecting mpmath<1.4,>=1.1.0

      Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)

    Collecting mdurl~=0.1

      Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)

    Collecting wsproto

      Using cached wsproto-1.2.0-py3-none-any.whl (24 kB)

    Building wheels for collected packages: simsimd

      Building wheel for simsimd (pyproject.toml): started

      error: subprocess-exited-with-error

      

      × Building wheel for simsimd (pyproject.toml) did not run successfully.

      │ exit code: 1

      ╰─> [43 lines of output]

          /tmp/pip-build-env-4t93hipa/overlay/lib/python3.9/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.

          !!

          

                  ********************************************************************************

                  Please consider removing the following classifiers in favor of a SPDX license expression:

          

                  License :: OSI Approved :: Apache Software License

          

                  See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.

                  ********************************************************************************

          

          !!

            self._finalize_license_expression()

          running bdist_wheel

          running build

          running build_py

          running egg_info

          writing simsimd.egg-info/PKG-INFO

          writing dependency_links to simsimd.egg-info/dependency_links.txt

          writing top-level names to simsimd.egg-info/top_level.txt

          reading manifest file 'simsimd.egg-info/SOURCES.txt'

          reading manifest template 'MANIFEST.in'

          adding license file 'LICENSE'

          writing manifest file 'simsimd.egg-info/SOURCES.txt'

          creating build/lib.linux-x86_64-cpython-39/simsimd

          copying python/annotations/__init__.pyi -> build/lib.linux-x86_64-cpython-39/simsimd

          copying python/annotations/py.typed -> build/lib.linux-x86_64-cpython-39/simsimd

          running build_ext

          building 'simsimd' extension

          creating build/temp.linux-x86_64-cpython-39/c

          creating build/temp.linux-x86_64-cpython-39/python

          gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DSIMSIMD_NATIVE_F16=0 -DSIMSIMD_NATIVE_BF16=0 -DSIMSIMD_DYNAMIC_DISPATCH=1 -DSIMSIMD_TARGET_NEON=1 -DSIMSIMD_TARGET_NEON_F16=1 -DSIMSIMD_TARGET_NEON_BF16=1 -DSIMSIMD_TARGET_SVE=1 -DSIMSIMD_TARGET_SVE_F16=1 -DSIMSIMD_TARGET_SVE_BF16=1 -DSIMSIMD_TARGET_SVE2=1 -DSIMSIMD_TARGET_HASWELL=1 -DSIMSIMD_TARGET_SKYLAKE=1 -DSIMSIMD_TARGET_ICE=1 -DSIMSIMD_TARGET_GENOA=1 -DSIMSIMD_TARGET_SAPPHIRE=1 -DSIMSIMD_TARGET_TURIN=1 -DSIMSIMD_TARGET_SIERRA=0 -Iinclude -I/DU_DATA/dataiku13/code-envs/python/plugin_document-question-answering_managed_1/include -I/usr/local/include/python3.9 -c c/lib.c -o build/temp.linux-x86_64-cpython-39/c/lib.o -std=c11 -O3 -ffast-math -fdiagnostics-color=always -fvisibility=default -fPIC -w -fopenmp

          In file included from [01m[Kinclude/simsimd/simsimd.h:105:0[m[K,

                           from [01m[Kc/lib.c:54[m[K:

          [01m[Kinclude/simsimd/binary.h:267:9:[m[K [01;31m[Kerror: [m[Kattribute(target("avx512f")) is unknown

           #pragma GCC target("avx2", "avx512f", "avx512vl", "bmi2", "avx512bw", "avx512vpopcntdq")

          [01;32m[K         ^[m[K

          [01m[Kinclude/simsimd/binary.h:267:9:[m[K [01;31m[Kerror: [m[Kattribute(target("avx512vl")) is unknown

      Building wheel for simsimd (pyproject.toml): finished with status 'error'

    Failed to build simsimd

          [01m[Kinclude/simsimd/binary.h:267:9:[m[K [01;31m[Kerror: [m[Kattribute(target("avx512bw")) is unknown

          [01m[Kinclude/simsimd/binary.h:267:9:[m[K [01;31m[Kerror: [m[Kattribute(target("avx512vpopcntdq")) is unknown

          include/simsimd/binary.h:267: confused by earlier errors, bailing out

          Preprocessed source stored into /tmp/cc28ZMyu.out file, please attach this to your bugreport.

          error: command '/bin/gcc' 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 simsimd

    ERROR: Could not build wheels for simsimd, which is required to install pyproject.toml-based projects

    [notice] A new release of pip available: 22.3.1 -> 25.1.1

    [notice] To update, run: /DU_DATA/dataiku13/code-envs/python/plugin_document-question-answering_managed_1/bin/python -m pip install --upgrade pip

Setup Info
    Tags
      Help me…