On Tuesday, January 7, 2020 at 9:35:59 AM UTC-8, Israel Brewster wrote: > > I ran into the same issue (at least the same error), though I believe it > was with a different library. The solution was to add the following two > lines toward the top of the .spec file I was feeding to pyinstaller (one is > created whenever you run it, so you can simply use that one): > > import sys > sys.setrecursionlimit(5000) > > So basically increase the maximum allowed recursion depth so it works. >
"M amazed that works -- I hve never seen the recursion depth exceeded when there wasn't an error -- usually an infinite loop (or a bad choice of recursive algorithm). And for me -- 5000 does not do it. I think there's a circular import or something in there. IN my case, I haven't foudn it, but I haven't looked too hard, either. > --- > Israel Brewster > Software Engineer > Alaska Volcano Observatory > Geophysical Institute - UAF > 2156 Koyukuk Drive > Fairbanks AK 99775-7320 > Work: 907-474-5172 > cell: 907-328-9145 > > On Jan 7, 2020, at 8:03 AM, Sreyan Chakravarty <[email protected] > <javascript:>> wrote: > > I am trying to run pyinstaller on the following file. This fails when I > hit a module named *win32com*. > > > from impala.dbapi import connect > from impala_creds import * > import base64 > def main(): > conn = connect(host='impala.company.com', port=21050, > auth_mechanism='GSSAPI', database='default', > user=base64.b64decode(username), password=base64.b64decode(password)) > > cursor = conn.cursor() > > cursor.close() > conn.close() > if name == 'main': > main() > > > I am getting a max recursion depth exceeded. > > The following is an excerpt of the stack trace: > > File > "C:\Users\sreyan32\AppData\Roaming\Python\Python36\site-packages\pkg_resources\__init__.py", > line 1331, in safe_version > return str(packaging.version.Version(version)) > File > "C:\Users\sreyan32\AppData\Roaming\Python\Python36\site-packages\pkg_resources\_vendor\packaging\version.py", > line 230, in __init__ > self._version.local, > File > "C:\Users\sreyan32\AppData\Roaming\Python\Python36\site-packages\pkg_resources\_vendor\packaging\version.py", > line 353, in _cmpkey > reversed(release), > File > "C:\Users\sreyan32\AppData\Roaming\Python\Python36\site-packages\pkg_resources\_vendor\packaging\version.py", > line 352, in <lambda> > lambda x: x == 0, > RecursionError: maximum recursion depth exceeded in comparison > > I have also attached the stack trace that I could gather as reference. This > is a problem with a module name win32com. > > > *What exactly can I do to solve this problem ???* > > > -- > You received this message because you are subscribed to the Google Groups > "PyInstaller" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pyinstaller/c37c0e19-c6f0-4ffb-87c6-35de0c0fc510%40googlegroups.com > > <https://groups.google.com/d/msgid/pyinstaller/c37c0e19-c6f0-4ffb-87c6-35de0c0fc510%40googlegroups.com?utm_medium=email&utm_source=footer> > . > <tmp_log.txt> > > > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/4a22a307-e75d-44be-8b30-147524731a63%40googlegroups.com.
