Skip to content

Conversation

@popjell
Copy link

@popjell popjell commented Jan 18, 2026

Fix: Build Failure Due to Missing __version__ Attribute

Problem

Package installation from GitHub fails with:

AttributeError: polystore has no attribute __version__
ModuleNotFoundError: No module named 'metaclass_registry'

The build system attempted to read polystore.__version__ from a dynamic version attribute, but this required importing the polystore module during setup—before metaclass_registry and other dependencies were available in the isolated build environment.

Fix

Switched from dynamic version (read from module attribute) to static version in pyproject.toml:

Changes

  • pyproject.toml

    • Removed dynamic = ["version"] from [project]
    • Added version = "0.1.0" directly to [project]
    • Removed [tool.setuptools.dynamic] section
  • src/polystore/init.py

    • Added __version__ = "0.1.0" module attribute for reference

Package now installs as expected

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 this pull request may close these issues.

1 participant