Skip to content

ERROR: cohortextractor must have a version specified (e.g. cohortextractor:0.5.2) (type=value_error) #1322

Answered by p-stehlik
p-stehlik asked this question in Q&A
Discussion options

You must be logged in to vote

Realised the mistake

run: cohortextractor generate_cohort --index-date-range "2020-12-01 to 2021-12-01 by month" --output-format=csv.gz

should be:

run: cohortextractor:latest generate_cohort --index-date-range "2020-12-01 to 2021-12-01 by month" --output-format=csv.gz

FYI the original code I had was copied over from https://docs.opensafely.org/measures/ so this might need updating. Thanks :)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by benbc
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants