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

RuntimeError: maximum recursion depth exceeded while calling a Python object #69

Open
mlaziz opened this issue Sep 19, 2018 · 4 comments

Comments

@mlaziz
Copy link

mlaziz commented Sep 19, 2018

I am trying to run scoary on roary output from 3100 samples. I get the following error
RuntimeError: maximum recursion depth exceeded while calling a Python object

I tried both python versions 2.7 and 3.5 but the error remains the same

@AdmiralenOla
Copy link
Owner

Hi @mlaziz, and sorry for not getting back to you sooner. Thanks for reporting this. 3100 samples is a larger dataset than I ever tested Scoary on, and unfortunately it seems python has some problems with very deep recursions. (As will be happening here since Scoary browses every possible sub-tree in your 3100 sample phylogeny)

I would at some point like to fix this, either by changing the algorithm to a loop structure or by increasing the allowed recursion depth. (Not sure if the latter is recommended).

For now, I think you're better off by sub-sampling your data a little.

@AdmiralenOla
Copy link
Owner

Same problem as #56

@nickp60
Copy link

nickp60 commented Dec 6, 2018

I have the same issue, with ~1300 samples; will try subsampling...

@AdmiralenOla
Copy link
Owner

Note: It is also possible to increase the default allowed recursion depth using sys.setrecursionlimit(5000).

@AdmiralenOla AdmiralenOla added this to the 1.6.17 milestone Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants