Skip to content

Failure to run with fresh spras environment #476

@jhiemstrawisc

Description

@jhiemstrawisc

I recently created a fresh spras environment (mamba env create -f environment.yml) and tried running a nearly-default config/config.yml. This generated an error about missing records:

$ snakemake --cores 4 --configfile config/config.yaml 
FileNotFoundError in file "/Users/jhiemstra/Desktop/dev/spras/spras/Snakefile", line 26:
[Errno 2] No such file or directory: '/Users/jhiemstra/miniforge3/envs/spras/lib/python3.11/site-packages/spras-0.6.0.dist-info/RECORD'
  File "/Users/jhiemstra/Desktop/dev/spras/spras/Snakefile", line 26, in <module>
  File "/Users/jhiemstra/Desktop/dev/spras/spras/spras/config/config.py", line 36, in init_global
  File "/Users/jhiemstra/Desktop/dev/spras/spras/spras/config/config.py", line 97, in __init__
  File "/Users/jhiemstra/Desktop/dev/spras/spras/spras/config/config.py", line 296, in process_config
  File "/Users/jhiemstra/Desktop/dev/spras/spras/spras/config/config.py", line 127, in process_datasets
  File "/Users/jhiemstra/Desktop/dev/spras/spras/spras/config/revision.py", line 66, in attach_spras_revision
  File "/Users/jhiemstra/Desktop/dev/spras/spras/spras/config/revision.py", line 47, in spras_revision

I'm dug into what causes this, but I worked around it with a pip install -e . from the repo root, although I wouldn't think this should be necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions