python-machine-learning error: unable to execute: No such file or directory
lizelive opened this issue · 1 comments
lizelive commented
steps
- clone only the https://github.com/nix-community/dream2nix examples/packages/single-language/python-machine-learning
- nix run .
- get error
result
lizelive@reese:~/Documents/learn-dream2nix/python-machine-learning]$ nix run ./
error: unable to execute '/nix/store/hp0mmczcd85ylm8slm7ndm9mgqh9ncab-python3.10-someproject-0.1.0/bin/someproject': No such file or directory
notes
being in a git repo does not change the results
can workaround by adding
[project.scripts]
"someproject" = "someproject:main"
and adding __init__.py
with
def main():
import PIL
import sklearn
import torch
print("hello world")
assert torch.cuda.is_available(), "cuda is not available"
lizelive commented
hello im curious to how the example is supposed to work.