Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pip] Error: A definition for option lock.extraScripts is not of type list of path #829

Closed
yukkop opened this issue Jan 12, 2024 · 2 comments

Comments

@yukkop
Copy link

yukkop commented Jan 12, 2024

Hi,

I am trying to use dream2nix to set up my Python development environment. I want to use requirements.txt, therefore I am using pip.requirementsFiles.

In the default python-project example, I only changed this part:

default.nix

  # ...
  pip = {
    pypiSnapshotDate = "2023-08-27";
    requirementsFiles = [ "./requirements.txt" ];
    flattenDependencies = true;
  };
  # ...

requirements.txt

requests==2.25.1
python-telegram-bot==13.1
pyOpenSSL==20.0.1
python-i18n[YAML]==0.3.9
Flask==2.0.2
Pillow==8.4.0
argparse==1.4.0
colorlog==6.7.0

I get the following error:

      error: A definition for option `lock.extraScripts' is not of type `list of path'. Definition values:
      - In `/nix/store/b2c9v0629dkajlmizwaddv7ivn2wmjvm-source/modules/dream2nix/core/lock/interface.nix': ""
@yukkop yukkop changed the title [pip] Error: A definition for option lock.extraScripts' is not of type list of path' [pip] Error: A definition for option lock.extraScripts is not of type list of path Jan 12, 2024
@yukkop
Copy link
Author

yukkop commented Jan 12, 2024

This is a minimal repository with an example of the error

@DavHau
Copy link
Member

DavHau commented Jan 17, 2024

Fixed by #831

@DavHau DavHau closed this as completed Jan 17, 2024
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

No branches or pull requests

2 participants