Bundle test data in nix package #32

Open
opened 2026-06-06 17:10:00 +02:00 by oysteikt · 0 comments
Owner

Either that or disable the option (or at the very least throw a better error message)

$ nix run .# devscripts seed-test-data                                                                                                                                                                                                                                                                                         direnv nix impure
Debug: Connected to database at 'sqlite:////home/h7x4/git/worblehat/worblehat.sqlite'
Traceback (most recent call last):
  File "/nix/store/a692fsb1243cljc4c5gqhaj9jmfa0xjs-worblehat-0.1.0/bin/.worblehat-wrapped", line 9, in <module>
    sys.exit(main())
             ~~~~^^
  File "/nix/store/a692fsb1243cljc4c5gqhaj9jmfa0xjs-worblehat-0.1.0/lib/python3.13/site-packages/worblehat/main.py", line 88, in main
    main(sql_session)
    ~~~~^^^^^^^^^^^^^
  File "/nix/store/a692fsb1243cljc4c5gqhaj9jmfa0xjs-worblehat-0.1.0/lib/python3.13/site-packages/worblehat/devscripts/seed_test_data.py", line 36, in main
    with LANGUAGE_FILE.open(newline="") as langs:
         ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/nix/store/slhpx9glq7vl99bwi93bgrhn3syv98s1-python3-3.13.11/lib/python3.13/pathlib/_local.py", line 537, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/nix/store/a692fsb1243cljc4c5gqhaj9jmfa0xjs-worblehat-0.1.0/lib/python3.13/data/iso639_1.csv'

Either that or disable the option (or at the very least throw a better error message) ``` $ nix run .# devscripts seed-test-data direnv nix impure Debug: Connected to database at 'sqlite:////home/h7x4/git/worblehat/worblehat.sqlite' Traceback (most recent call last): File "/nix/store/a692fsb1243cljc4c5gqhaj9jmfa0xjs-worblehat-0.1.0/bin/.worblehat-wrapped", line 9, in <module> sys.exit(main()) ~~~~^^ File "/nix/store/a692fsb1243cljc4c5gqhaj9jmfa0xjs-worblehat-0.1.0/lib/python3.13/site-packages/worblehat/main.py", line 88, in main main(sql_session) ~~~~^^^^^^^^^^^^^ File "/nix/store/a692fsb1243cljc4c5gqhaj9jmfa0xjs-worblehat-0.1.0/lib/python3.13/site-packages/worblehat/devscripts/seed_test_data.py", line 36, in main with LANGUAGE_FILE.open(newline="") as langs: ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/nix/store/slhpx9glq7vl99bwi93bgrhn3syv98s1-python3-3.13.11/lib/python3.13/pathlib/_local.py", line 537, in open return io.open(self, mode, buffering, encoding, errors, newline) ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/nix/store/a692fsb1243cljc4c5gqhaj9jmfa0xjs-worblehat-0.1.0/lib/python3.13/data/iso639_1.csv' ```
oysteikt added the bugpackaging labels 2026-06-06 17:10:00 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Projects/worblehat#32