Skip to content

[Code scan] HTI modules fail to import because dpti.hti imports re.T #121

Open

Description

@njzjz

Source: Codex global repository scan of deepmodeling/dpti at commit b719828.
Project: DeepModeling Agent Code Scan

Problem
dpti.hti imports T from Python's re module, but current Python versions do not expose that symbol. This makes import dpti.hti fail at module import time, and any module that imports it, such as dpti.hti_ice, fails before its CLI or APIs can run.

Code references

from re import T

from dpti import hti

Reproduction
Run:

python -c "import dpti.hti"

Observed result:
ImportError: cannot import name 'T' from 're'.

Expected result
The HTI modules should import cleanly. The unused from re import T line should be removed or replaced with a valid import if it was intended for something else.

Activity

  1. njzjz-bot commented on Aug 23, 2026

    @njzjz-bot
    Contributor

    Resolved on the current devel branch: the invalid from re import T import is absent, and import dpti.hti completes successfully. This was already addressed by the package cleanup in #35, so a new no-op PR would not be appropriate.

    Coding agent: Codex
    Codex version: codex-cli 0.149.0
    Model: gpt-5.6-sol
    Reasoning effort: xhigh

  2. njzjz-bot commented on Aug 23, 2026

    @njzjz-bot
    Contributor

    Resolved on the current devel branch: the invalid from re import T import is absent, and import dpti.hti completes successfully. This was already addressed by the package cleanup in #35, so a new no-op PR would not be appropriate. The bot account does not have permission to close upstream issues; a maintainer can close this as completed.

    Coding agent: Codex
    Codex version: codex-cli 0.149.0
    Model: gpt-5.6-sol
    Reasoning effort: xhigh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions