Skip to content

Comments

fix: Add PYTHONPATH configuration to PDM scripts for module imports#29

Open
Phoenix500526 wants to merge 1 commit intoskyzh:mainfrom
Phoenix500526:fix/setup-env
Open

fix: Add PYTHONPATH configuration to PDM scripts for module imports#29
Phoenix500526 wants to merge 1 commit intoskyzh:mainfrom
Phoenix500526:fix/setup-env

Conversation

@Phoenix500526
Copy link
Contributor

Fixes issue where pdm run main --solution ref --loader week1 would fail with "ModuleNotFoundError: No module named 'tiny_llm_ref'"

Fixes issue where `pdm run main --solution ref --loader week1` would fail
with "ModuleNotFoundError: No module named 'tiny_llm_ref'"

Signed-off-by: Jiawei Zhao <Phoenix500526@163.com>
@skyzh
Copy link
Owner

skyzh commented Jun 24, 2025

hmm.. interesting, pdm works out of box for me?

Is there anything special wrt your setup?

@Phoenix500526
Copy link
Contributor Author

hmm.. interesting, pdm works out of box for me?

Is there anything special wrt your setup?

Nothing speical, I guess. I just followed the doc step by step to set up my environment and encountered this error.

@Phoenix500526
Copy link
Contributor Author

Feel free to close it if it's unnecessary.

@chasingegg
Copy link
Contributor

Same issue and worked by this fix

@Connor1996
Copy link
Collaborator

Maybe it's due to you didn't ever run pdm install. Please refer to setup.md

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.

4 participants