diff --git a/python_client/StockD_Windows.spec b/python_client/StockD_Windows.spec index 62cfaa2..d3ec784 100644 --- a/python_client/StockD_Windows.spec +++ b/python_client/StockD_Windows.spec @@ -15,12 +15,6 @@ a = Analysis(['runner.py'], win_private_assemblies=False, cipher=block_cipher, noarchive=False) - -if not os.environ.get("PYINSTALLER_CEFPYTHON3_HOOK_SUCCEEDED", None): - raise SystemExit("Error: Pyinstaller hook-cefpython3.py script was " - "not executed or it failed") - - pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE(pyz, diff --git a/python_client/app/routes.py b/python_client/app/routes.py index 116fb78..0fc9801 100644 --- a/python_client/app/routes.py +++ b/python_client/app/routes.py @@ -120,9 +120,9 @@ def process_eq(weblink, saveloc, d, get_delivery=None): dataDate = None if 'DATE1' in df.columns: - dataDate = get_date(df['DATE1'][0]) + dataDate = get_date(df['DATE1'].iloc[0]) elif 'TIMESTAMP' in df.columns: - dataDate = get_date(df['TIMESTAMP'][0]) + dataDate = get_date(df['TIMESTAMP'].iloc[0]) if not (parse(dataDate, '{0:%Y}{0:%m}{0:%d}') == parse(d, '{0:%Y}{0:%m}{0:%d}')): getLogger().error("Date Integrity check failed. Found date {} but expected {}. Skipping.".format(dataDate, d)) @@ -238,7 +238,7 @@ def process_day(configs, date): getQ().put({'event': 'log', 'data': parse(date, 'Convert Equity Bhavcopy for {0:%Y}-{0:%b}-{0:%d}')}) except Exception as e: getLogger().info('EQ Bhavcopy failed') - getLogger().info(str(e)) + getLogger().info(str(e), exc_info=e) getQ().put({'event': 'log', 'data': parse(date, 'Cannot Find EQ Bhavcopy on selected Server for {0:%Y}-{0:%b}-{0:%d}')}) if configs['SETTINGS']['fuCheck']['value'] == 'true': diff --git a/python_client/scripts/windowsPackage.txt b/python_client/scripts/windowsPackage.txt index 9c8ecb2..e291bc4 100644 --- a/python_client/scripts/windowsPackage.txt +++ b/python_client/scripts/windowsPackage.txt @@ -1,4 +1,4 @@ -..\..\stockdenv\Scripts\pyinstaller.exe runner.py --add-data "app\static;static" --add-data "app\templates;templates" --onefile --name "StockD_Windows" --icon ".\app\static\img\favicon.ico" +..\..\stockdenv\Scripts\pyinstaller.exe runner.py --add-data "app\static;static" --add-data "app\templates;templates" --onefile --name "StockD_Windows" --icon ".\app\static\img\favicon.ico" --noconsole python -m venv stockdenv ..\..\stockdenv\Scripts\pip.exe install Flask==1.1.2