Skip to content

Commit

Permalink
Describe multiprocessing issue in troubleshooting of readme
Browse files Browse the repository at this point in the history
HLAF-19
  • Loading branch information
DAWells committed Oct 11, 2024
1 parent a074eba commit c3f17ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ conda config --set channel_priority strict
conda create -n hlafreq -c conda-forge -c bioconda hlafreq cxx-compiler
```

When running entire scripts on windows, you may see an error about
"Safe importing of main module", multiprocessing, and starting
new processes. To fix this, main guard your code with
`if __name__ == "__main__":` after the `import`s as demonstrated in
[`examples/quickstart.py`](https://github.com/BarinthusBio/HLAfreq/blob/main/examples/quickstart.py).

If you do run into trouble please open an [issue](https://github.com/BarinthusBio/HLAfreq/issues).

### conda
Expand Down

0 comments on commit c3f17ac

Please sign in to comment.