How to remove > WARNING: file already exists but should not

23 views
Skip to first unread message

Dariusz Mąkowski

unread,
Aug 3, 2020, 2:26:31 AM8/3/20
to PyInstaller
Hey

I tried to get rid of it for hours now, but I'm lost. I'm using pyd files and I provide entire list of py files that I need to data but maybe I missed something... here is code >

```
.... code

jobRange = [
"x:/pathToProject/",
]

for projectPath in jobRange:
projectPath = projectPath + "**/"
print("Project path : ", projectPath)
for f in glob.glob(projectPath + "*.pyd", recursive=True):
a = QFileInfo(f)
relative = a.canonicalPath()
for patToRemove in removePath:
relative = relative.replace( patToRemove,"")
bins.append((f,relative+"/"))
hidImports.append(a.baseName())



print("All Hidden imports : ",hidImports)
for a in bins:
print (a)

for d in bins:
if 'pyconfig' in d[0]: # naturally there is 0 of them here.
bins.remove(d)
break

a = Analysis(
["starter.py"],
hookspath=["."],
datas=bins,
cipher=cipher_obj,
)



pyz = PYZ(a.pure,
a.zipped_data,
cipher=cipher_obj
)

options = [('W ignore', None, 'OPTION')]

exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
options,
name='testApp',
#debug=False,
#strip=False,
#upx=False,
#runtime_tmpdir=None,
#console=True ,
clean=True,
onefile=True,
noconsole=True,
w=False
)
```

the app starts but I cant get rid of the warning :/

App is PySide2 + some other libs...

Any help would be great! 

Reply all
Reply to author
Forward
0 new messages