Apologies.

Fixed that error.

I just used the spec file like
pyinstaller --onefile test.spec

On Wed, Jan 8, 2020 at 1:49 PM Sreyan Chakravarty <[email protected]>
wrote:

> My spec file keeps getting reset when I do this.
>
> What I am doing wrong in the following command ?
>
> pyinstaller --onefile test.py test.spec
>
> How do I stop pyinstaller from overwriting my spec file ?
>
> On Tue, Jan 7, 2020 at 11:05 PM Israel Brewster <[email protected]>
> 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.
>> ---
>> 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]>
>> 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].
>> 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/952F4729-B075-4313-8BE5-8C6ABFE93686%40alaska.edu
>> <https://groups.google.com/d/msgid/pyinstaller/952F4729-B075-4313-8BE5-8C6ABFE93686%40alaska.edu?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Regards,
> Sreyan
>


-- 
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/CAOcRYWomvDpRJo4mKBL%3DT777OUcqG2JS07GLogdM1mesWqVf7g%40mail.gmail.com.

Reply via email to