Comments (3)
Functional tests off of develop now pass on mac. If you're still seeing a problem, please re-open this ticket.
These changes will be present in v4.1. However It'll be some time before that release is cut as there's at least two more features to add and a lot of user testing happening for a publication tied to the next version.
from truvari.
Thank you for reporting this. I'm sure it wasn't easy to solve. I was able to recreate the issue and confirm that having multiprocessing.set_start_method('fork')
before with multiprocessing.Pool..
calls can get tests to pass.
However, I don't think changing the set_start_method
is a viable solution. The python docs state:
Changed in version 3.8: On macOS, the spawn start method is now the default. The fork start method should be considered unsafe as it can lead to crashes of the subprocess. See bpo-33725.
Possible solutions:
- Make it clear that some
truvari anno
commands will fail on macOS - Make it clear that truvari is designed on/for unix and recommend docker (which is how I run truvari tests on my mac).
- Change design pattern to not depending on 'fork' sharing semantics. Specifically it's the global namespace.
And as I'm digging deeper into bpo-33725 and the issues it references, I'm thinking changing the code might need to be the solution as this non-explicit sharing may become not possible in a future python version.. maybe.
from truvari.
Thanks for your response.
However, I don't think changing the set_start_method is a viable solution.
Yes, I don't think using set_start_method
is a good way to fix it.
and thank you for starting the fix as quickly.
Let me know if I can help in any way.
from truvari.
Related Issues (20)
- Refine Silently killed. HOT 2
- Error with VCF file no sample found HOT 4
- Unresolved SVs (e.g. ALT=<DEL>) HOT 8
- `truvari collapse` with `--intra` option results in pysam throwing `TypeError: value expected to be scalar, given len=2` HOT 5
- One new annotation added by `truvari collapse` ? HOT 1
- Error when runnig `truvari bench` HOT 2
- Large increase in FNs on pysam v0.22.0 HOT 12
- Truvari bench hangs indefinitely HOT 3
- Pysam bug results in missing info field in output VCF file. HOT 1
- Truvari `refine` doesn't complete HOT 3
- Truvari refine fails when no regions to refine HOT 4
- TypeError, 'NoneType' and 'NoneType' HOT 2
- Duplication to Insertion doubt HOT 4
- Failure in pip installation HOT 2
- Question: Does truvari have a upper limit on the file size? How to speed up? HOT 2
- BED Region off-by-one error HOT 4
- Zero matches between base and comp HOT 4
- AttributeError: 'CollapsedCalls' object has no attribute 'consolidate' | version 4.2.1 HOT 4
- Calculate SNV HOT 7
- complex genotype problem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from truvari.