-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Maximum recursion bug #4158
Comments
I think you can try to set hiddenimports include 'cython' |
I appologize, I am still new to python. Can you provide an example? |
After using debug log trace it looks like I have the issue with modulegraph.py How can I ignore that module or make it work with Winpython 3.5.4.1? Thanks, |
I'm also having this issue -- seemingly related to modulegraph.py through urllib3, which in turn is through pandas. Removing the pandas import "fixes" the problem, but of course that's not much of a solution, since I need the pandas module for the script. |
Seems like v4.0 did not fix this. I ran into this with the |
Actually |
I can confirm that maximum recursion error occurs with I'll take a look and see if I can track down the cause. |
I opened a new issue already: #5131 |
Are there any other libraries in existence that have a C extension module for |
If I delete |
I compared the process to a version where I import
vs.
I modified the debug logging to output the |
This pydantic error has already been reported: #4346 |
@agronholm First of all, many thanks for tracking this down to pydantic as an example. Based on this I was able to build test-cases replicating the recursion. (In fact these test-cases are easy, now that we know where to look at.) See 0f635a6. @Legorooj The root cause for this issue seems to be that modulegraph "redirects" packages it its I hacked a prototype, using the Loader classes, which stops this recursion error. You can find it at https://github.com/htgoebel/pyinstaller/tree/issue-4158-pydantic |
that branch doesn't exist anymore : ( |
The fix is contained in PyInstaller v4.1. |
hello all.
I am trying to create an executable from a simple python script containing the pandas library, but I think that I have encountered a bug.
If I try to make an executable using a python script:
If use pyinstaller:
pyinstaller --onefile test_script.py
I get the following:
"Recursion error: maximum recursion depth exceeded"
I have tried adding lines such as "sys.setrecursionlimit(5000)" with numbers up to 100000 but the issue remains.
Can anyone confirm the bug or offer some advice?
I also tried the suggestions mentioned here, but did not have any luck.
#3766
Thanks
The text was updated successfully, but these errors were encountered: