Skip to content
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

Remove the indirect dependency on jinja2 #202

Closed
mwouts opened this issue Oct 6, 2023 · 0 comments · Fixed by #203
Closed

Remove the indirect dependency on jinja2 #202

mwouts opened this issue Oct 6, 2023 · 0 comments · Fixed by #203

Comments

@mwouts
Copy link
Owner

mwouts commented Oct 6, 2023

The build of the conda package for itables fails in version 1.6.0 and 1.6.1 because pandas.Style requires jinja2.

Cf. the build logs or this extract:

ModuleNotFoundError: No module named 'jinja2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/itables_1696129219663/test_tmp/run_test.py", line 2, in <module>
    import itables
  File "/home/conda/feedstock_root/build_artifacts/itables_1696129219663/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.11/site-packages/itables/__init__.py", line 1, in <module>
    from .javascript import (
  File "/home/conda/feedstock_root/build_artifacts/itables_1696129219663/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.11/site-packages/itables/javascript.py", line 13, in <module>
    import pandas.io.formats.style as pd_style
  File "/home/conda/feedstock_root/build_artifacts/itables_1696129219663/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.11/site-packages/pandas/io/formats/style.py", line 44, in <module>
    jinja2 = import_optional_dependency("jinja2", extra="DataFrame.style requires jinja2.")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/conda/feedstock_root/build_artifacts/itables_1696129219663/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.11/site-packages/pandas/compat/_optional.py", line 135, in import_optional_dependency
    raise ImportError(msg)
ImportError: Missing optional dependency 'Jinja2'. DataFrame.style requires jinja2. Use pip or conda to install Jinja2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant