Skip to content

BUG: Display choices in error message of environment vars #7532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
emmanuel-ferdman opened this issue Apr 26, 2025 · 0 comments · May be fixed by #7533
Open
3 tasks done

BUG: Display choices in error message of environment vars #7532

emmanuel-ferdman opened this issue Apr 26, 2025 · 0 comments · May be fixed by #7533
Labels
bug 🦗 Something isn't working Triage 🩹 Issues that need triage

Comments

@emmanuel-ferdman
Copy link

Modin version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest released version of Modin.

  • I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)

Reproducible Example

from modin.config import Backend
Backend.set_active_backends(("Ray", "UnregisteredBackend"))

Issue Description

When setting active backends with at least one unregistered backend, Modin throws a ValueError but fails to properly format the error message due to a missing f-string prefix. This results in a raw string output with {new_choices} placeholder instead of showing actual backend names.

Expected Behavior

ValueError: Active backend choices ('Ray', 'UnregisteredBackend') are not all registered.

Error Logs

Installed Versions

INSTALLED VERSIONS
------------------
commit              : a671b5a8bf5dd13fb19f0e88edc679bc9e15c673
python              : 3.12.10.final.0
python-bits         : 64
OS                  : Linux
OS-release          : 5.14.21-150400.24.116-default
Version             : #1 SMP PREEMPT_DYNAMIC Fri Apr 12 12:56:11 UTC 2024 (900d642/lp)
machine             : x86_64
processor           : 
byteorder           : little
LC_ALL              : C.UTF-8
LANG                : C.UTF-8
LOCALE              : C.UTF-8

pandas              : 2.1.4
numpy               : 1.26.4
pytz                : 2025.2
dateutil            : 2.9.0.post0
setuptools          : 79.0.0
pip                 : 25.0.1
Cython              : None
pytest              : 8.3.5
hypothesis          : None
sphinx              : 8.2.3
blosc               : None
feather             : 0.4.1
xlsxwriter          : None
lxml.etree          : None
html5lib            : None
pymysql             : None
psycopg2            : 2.9.10
jinja2              : 3.1.6
IPython             : 9.1.0
pandas_datareader   : None
bs4                 : 4.13.4
bottleneck          : None
dataframe-api-compat: None
fastparquet         : None
fsspec              : 2025.3.2
gcsfs               : None
matplotlib          : 3.10.1
numba               : 0.61.2
numexpr             : None
odfpy               : None
openpyxl            : None
pandas_gbq          : None
pyarrow             : 16.1.0
pyreadstat          : None
pyxlsb              : None
s3fs                : None
scipy               : 1.15.2
sqlalchemy          : 2.0.40
tables              : None
tabulate            : 0.9.0
xarray              : 2025.3.1
xlrd                : None
zstandard           : 0.23.0
tzdata              : 2025.2
qtpy                : None
pyqt5               : None
@emmanuel-ferdman emmanuel-ferdman added bug 🦗 Something isn't working Triage 🩹 Issues that need triage labels Apr 26, 2025
emmanuel-ferdman added a commit to emmanuel-ferdman/modin that referenced this issue Apr 26, 2025
…nt vars

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working Triage 🩹 Issues that need triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant