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

Tests fail with KMC 2.3 from Homebrew on OS X #63

Open
satta opened this issue May 4, 2016 · 4 comments
Open

Tests fail with KMC 2.3 from Homebrew on OS X #63

satta opened this issue May 4, 2016 · 4 comments

Comments

@satta
Copy link
Collaborator

satta commented May 4, 2016

The testsuite (python3 setup.py test) fails when using KMC 2.3 (from Homebrew) on OS X 10.11:

[...]
Test run_trimmomatic ... ok
test_process_seeds (seed_processor_test.TestSeedProcessor)
Test process_seeds ... The following command failed with exit code 1
bash run_kmc.sh

The output was:

*
Error: Cannot open temporary file /Users/satta/foss/iva/tmp.run_kmc.4rxfrvg2/kmc_00253.bin

The following command failed with exit code 1
bash run_kmc.sh

The output was:

*
Error: Cannot open temporary file /Users/satta/foss/iva/tmp.run_kmc.8_00xctz/kmc_00253.bin

This error is apparently from KMC itself, all the previous temporary files have length zero. All dependencies are also installed from Homebrew.

It has to be noted that the tests work fine on Linux when KMC 2.3 is used. This may be an OS X quirk.

@sdwfrost
Copy link

I also get this error on OSX when using KMC 2.1.1, pre-compiled from here as well as the latest pull from GitHub (f090276855a3f7c0b14e9f3abc8c99d3213247b3).

@martinghunt
Copy link
Contributor

Sorry for the slow reply. This dropped off my radar...

I've put in an issue for this in the KMC repo (refresh-bio/KMC/issues/12).

My mac is running 10.8.5, and it works, so looks like a Mac version specific issue sometime after 10.8.5. @sdwfrost what OSX version do you have?

@satta
Copy link
Collaborator Author

satta commented Jun 4, 2016

Based on the hint from upstream (see link above), it might help increasing the open file limit using ulimit to 2048. This solved the problem for me.

@sdwfrost
Copy link

This worked for me too i.e.

ulimit -n 2048; iva {options}

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

3 participants