Skip to content

"deepeval login --api-key" throws error “TypeError: Option() missing 1 required positional argument: 'default’" #882

Description

@jerrydboonstra

Describe the bug
deepeval login --api-key VALIDKEY fails with error:

Traceback (most recent call last):
  File "/opt/conda/bin/deepeval", line 5, in <module>
    from deepeval.cli.main import app
  File "/opt/conda/lib/python3.10/site-packages/deepeval/cli/main.py", line 19, in <module>
    typer.Option(
TypeError: Option() missing 1 required positional argument: 'default'

To Reproduce
Create and launch a docker image on a host with an Ampere GPU (A10g, ...) and --platform linux/amd64

Dockerfile

FROM ghcr.io/predibase/lorax:latest 
SHELL ["conda", "run", "-n", "base", "/bin/bash", "-c"]
WORKDIR /app
COPY requirements.txt .
RUN pip3 install --no-cache-dir --upgrade pip && pip3 install --no-cache-dir -r requirements.txt
COPY entrypoint.sh /deepeval-entrypoint.sh
ENV PYTHONUNBUFFERED 1
ENTRYPOINT [ "/deepeval-entrypoint.sh" ]

entrypoint.sh

#!/bin/bash
set -eEuo pipefail
deepeval login --api-key ${DEEPEVAL_KEY}

requirements.txt

deepeval==0.21.65

Expected behavior
Login success.

Host:

uname -a
Linux b0c7edc50b19 5.15.0-1049-aws #54~20.04.1-Ubuntu SMP Fri Oct 6 22:04:33 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

python -V
Python 3.10.14

env

NVIDIA_VISIBLE_DEVICES=all
PYTHONUNBUFFERED=1
HOSTNAME=309a231f9f0a
NVIDIA_REQUIRE_CUDA=cuda>=12.1 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471 brand=tesla,driver>=525,driver<526 brand=unknown,driver>=525,driver<526 brand=nvidia,driver>=525,driver<526 brand=nvidiartx,driver>=525,driver<526 brand=geforce,driver>=525,driver<526 brand=geforcertx,driver>=525,driver<526 brand=quadro,driver>=525,driver<526 brand=quadrortx,driver>=525,driver<526 brand=titan,driver>=525,driver<526 brand=titanrtx,driver>=525,driver<526
OPENAI_API_KEY=xxx
HUGGING_FACE_HUB_TOKEN=yyy
PWD=/app
CONDA_PREFIX=/opt/conda
PORT=80
NVIDIA_DRIVER_CAPABILITIES=compute,utility
DEEPEVAL_KEY=jjj
NV_CUDA_CUDART_VERSION=12.1.55-1
HOME=/root
CUDA_VERSION=12.1.0
HF_HUB_ENABLE_HF_TRANSFER=1
MODEL_ID=mistralai/Mistral-7B-Instruct-v0.3
HUGGINGFACE_HUB_CACHE=/data
SHLVL=1
NVARCH=x86_64
NV_CUDA_COMPAT_PACKAGE=cuda-compat-12-1
LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
PATH=/opt/conda/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_=/usr/bin/env

Additional context
This is the only platform that i have been able to reproduce this, it works fine locally on my Mac.
By the way, i have a patch for this which i will submit.

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