-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
OSError: [Errno 24] Too many open files #1293
Comments
Jedi is not done for this. Sorry. If ever, #1059 is the solution. Not saying this will never be the case, but what you are doing is just not feasible at the moment. You can work around it by recreating Script (or recreate it after a certan number of completions), but it will be even slower. |
Thank you so much! Actually the error is, the OS kills the process when it opens more files than the maximum allowed number. I am just thinking, isn't there a way to close the opened files from the operation a pseudo code is below for understanding.
When the I am just wandering is there a way to close all the files as below?
Or any workaround highly appreciated. |
As I said, this is not really supported. I meant to close before. My comment above still applies. You cannot reuse Script too much. It's not built for that at the moment. |
same issue, I faced similar problem when I tried to upload many images ( more than 6000 ) via django. |
same issue, I faced similar problem when I tried to upload many images ( more than 6000 ) via django.
|
Thank Jedi for the amazing tool.
I am using Jedi to determine method invocations belongs to couple of libraries in python projects.
Basically what I do is,
First, I parsed the Python source code to get its AST.
tree = ast.parse(source)
From that AST, I could get the lineno and col_offset of each node.
When I needed the type information of an expression (associated with an AST node), I created a
jedi.Script
object using the source code and pointed it to the place of that expression:Using that script object, I can get the type information using
goto_definitions():
Basically, I do this for almost all the method invocations in the projects.
When I am processing a project with large number of line of code code or large number of files ,the OS kills the project as below saying too many open files.
Any suggestions to solve my problem. Should I close the opened files frequently, if then how ?
NOTE:
0.13.3
.StackTrace
The text was updated successfully, but these errors were encountered: