Yup solved that error with : pyinstaller --onefile test.py test.spec
On Tuesday, January 7, 2020 at 10:45:31 PM UTC+5:30, Sreyan Chakravarty 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 ???* > > > > -- > Regards, > Sreyan > -- 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/b93b4d1e-3f76-439a-86cd-efec60b219b8%40googlegroups.com.
