Skip to content

Bump minimum python version in pyproject.toml #51

@robstallman

Description

@robstallman

Preliminary Checks

  • I have searched existing issues for a duplicate issue and I'm sure this is new.
  • I have read and followed the docs and still think this is a bug.
  • I am certain that this is an issue with shift (not my code or another library such as grid-data-models)

Description

I installed shift from source and created a virtual environment with python version 3.10.4, because I saw that this satisfied the listed minimum version in the pyproject.toml.
During install, the grid-data-models package could not be installed:

ERROR: Could not find a version that satisfies the requirement grid-data-models==2.3.3 (from nrel-shift) (from versions: none)
ERROR: No matching distribution found for grid-data-models==2.3.3

It seems that gdm requires at least python 3.11. Once I created a new virtual environment (this one with Python 3.12.10), all package dependencies were resolved.

Sample Code

git clone https://github.com/NLR-Distribution-Suite/shift.git
cd shift
pyenv virtualenv 3.10.4 shift-env && pyenv local shift-env
pip install -e .

Python, Shift

(shift-env) (base) robstallman@Robs-Laptop shift % python -c "import shift.version; print(shift.version.version_summary())"

                shift version: 0.6.3
                     dep_pkgs: osmnx-2.1.0 networkx-3.6.1 infrasys-1.1.2
                     platform: macOS-26.5-arm64-arm-64bit
                       commit: 94b552f
               python_version: 3.12.10 (main, Sep  3 2025, 16:50:04) [Clang 17.0.0 (clang-1700.0.13.3)]
                 install_path: /Users/robstallman/projects/shift/src/shift

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpending

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions