Skip to content

When Installed from source, pylance has difficulties to resolve the imports #2181

@sanggusti

Description

@sanggusti

Bug description

Expected:
When installed via pip install -e ".[all]", the project could be imported and the interface on any IDE would be seamless,

What happened:
pylance in vscode couldn't resolve the imports. My workaround need to define extra paths to litgpt folder. Seems like the bug on setup file.

Thoughts:
Lightning projects usually have file structure to be root_project/src/library_name, and litgpt has litgpt/litgpt file structure. pyproject.toml file in litgpt is also following the structure in other lightning project. I think this structures need to be standardized or some adjustments in pyproject.toml need to be done.

Reproduced in studio

No response

What operating system are you using?

Linux

LitGPT Version

litgpt-0.5.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions