i have this structure using the uv package manager but when i run uv run evaluate, I get…
- User
i have this structure using the uv package manager but when i run uv run evaluate, I get ModuleNotFoundError: No module named 'my_module'. What's the issue?
[build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta"
[project] name = "XXX" version = "0.1.0" description = "YYY" readme = "README.md" requires-python = ">=3.12" dependencies = [ "matplotlib>=3.10.1", "pywin32 >= 301 ; sys_platform == 'win32'", "pyyaml>=6.0.2", "pandas>=2.2.3", "tensorboard>=2.19.0", "lightning==2.4", "numpy>2", "hydra-core>=1.3.2", "scipy>=1.15.2", ]
[project.optional-dependencies] cpu = ["torch>=2.6.0"] gpu = ["torch>=2.6.0"]
[project.scripts] evaluate = "my_module.evaluate:main"
[dependency-groups] dev = ["black>=25.1.0"]
[tool.setuptools.packages.find] where = ["my_module"]
[tool.uv] conflicts = [[{ extra = "cpu" }, { extra = "gpu" }]]
[tool.uv.sources] torch = [ { index = "pytorch-cpu", extra = "cpu" }, { index = "pytorch-cu128", extra = "gpu" }, ]
[[tool.uv.index]] name = "pytorch-cpu" url = "https://download.pytorch.org/whl/cpu" explicit = true
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.