New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyinstaller --onefile option gives peculiar warning #783
Comments
Original date: 2013/09/27 Thanks for reporting. |
Original date: 2013/10/04 I ran the archive_viewer.py utility (from PyInstaller) on one of my own --onefile executables that has the same error and found that pyconfig.h is included twice:
Ilya Tolchinsky over at StackOverflow found a workaround: --dthor |
Original date: 2013/11/27 I ran into the same problem, and figured out that it is due to the case-insensitive Windows paths leading to multiple tuples in the TOC:
In order to solve this, I made the following change in build.py, class TOC, def append:
This code is already there for BINARY, I simply added DATA. But I'm not sure if this could be the real solution. It might introduce other incompatibilities. |
Original date: 2014/01/13 pyconfig.h is included in the following hooks. Probably one hook does not handle pyconfig.h properly and uses lower or upper case version.
|
Original date: 2014/05/14 I'm having a similar issue but with Makefile (running in Linux, from a virtual env): In out00-Analysis.toc I can see: but in /logdict2.7.3.final.0-1.log I can see two datas declaration: datas=[('include/python2.7/pyconfig.h', '/usr/include/python2.7/pyconfig.h', 'DATA'), ('lib/python2.7/config/Makefile', '/usr/lib/python2.7/config/Makefile', 'DATA')]> |
Original date: 2014/05/28 I'd like to add that we've been using the solution proposed in comment:5 for around six months without problems. |
1 similar comment
Original date: 2014/05/28 I'd like to add that we've been using the solution proposed in comment:5 for around six months without problems. |
Original date: 2014/06/10 This should be fixed in the development version. |
Original date: 2014/07/14 Replying to [comment:7 hithwen@…]:
Thanks for your pull-request #145. I just merged it. |
Original date: 2013/09/27
Original reporter: *jos DOT postma AND gmail DOT COOM *
Building the .exe seems to work out fine, however, running it gives:
WARNING: file already exists but should not: D:\Users\postma\AppData\Local\Temp_MEI33522\Include\pyconfig.h
When I build the .exe WITHOUT the --onefile option the warning does not appear upon running the executable.
The text was updated successfully, but these errors were encountered: