Skip to content

Dependency issue: ModuleNotFoundError: No module named 'pytz' with pandas >= 3.0.0 #2866

@wy-z

Description

@wy-z

Acknowledgement

First of all, I would like to thank the team for the excellent work on ArcticDB. It is a fantastic tool and I appreciate the effort put into maintaining it.

Description

I am writing to report an issue regarding dependency management when using newer versions of pandas. I encountered a ModuleNotFoundError: No module named 'pytz' when setting up ArcticDB in an environment with pandas 3.0.0+.

Root Cause

Pandas has recently changed pytz from a required dependency to an optional dependency in version 3.0.0.
Previously, ArcticDB likely relied on pandas to transitively install pytz. With this change, if a user installs a fresh environment with pandas >= 3.0.0 (and does not explicitly install pytz), ArcticDB fails to import.

Reference:
[Pandas 3.0.0 Whatsnew - pytz now an optional dependency](https://github.com/pandas-dev/pandas/blob/1797ba54796ec1dc726cb6dd5039c238caec30a2/doc/source/whatsnew/v3.0.0.rst#pytz-now-an-optional-dependency)

Steps to Reproduce

  1. Create a clean Python environment.
  2. Install pandas>=3.0.0 (ensure pytz is not manually installed).
  3. Install arcticdb.
  4. Attempt to import or use arcticdb.

Observed Error

ModuleNotFoundError: No module named 'pytz'

Suggested Fix

Since ArcticDB appears to rely on pytz directly, it should be added explicitly to the install_requires list (or pyproject.toml) in ArcticDB's configuration. This will ensure it is always installed regardless of the pandas version used.

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