deepmodeling / deepmodeling/dpti

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

Open Beginner friendly
#121 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
42
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Source: Codex global repository scan of deepmodeling/dpti at commit b719828e7eeb571bd26411430197cd74ea78e38c.
Project: https://github.com/orgs/deepmodeling/projects/27

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
https://github.com/deepmodeling/dpti/blob/b719828e7eeb571bd26411430197cd74ea78e38c/dpti/hti.py#L4
https://github.com/deepmodeling/dpti/blob/b719828e7eeb571bd26411430197cd74ea78e38c/dpti/hti_ice.py#L8

Reproduction
Run:

```bash
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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at dpti/hti.py line 4 and dpti/hti_ice.py line 8, then run python -c "import dpti.hti" to reproduce the ImportError. Remove or correct the invalid re import, and verify that the HTI modules import cleanly without the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
91/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.