I have converted my py code to exe, edited the spec file, while running the code, it is working fine meanwhile running the exe file, unable to fetch the data or establish the connection from/with the website.
from shareplum import Site
from requests_negotiate_sspi import HttpNegotiateAuth
then
site = Site('https://share.example.com/sites/UAB_CD_ABCD_Sharepoint/', auth=(HttpNegotiateAuth()),
verify_ssl=False)
SPEC FILE BELOW
block_cipher = None
a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=['pandas', 'tkinter', 'shareplum', 'requests_negotiate_sspi', 'babel.dates', 'babel.numbers'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='main',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='main',
)
Above is what I have tried, please help me to resolve this.