Thanks so much! So I've been try to investigate, it looks like it's a 
BINARY kind of file (the second in the following list). I put a continue 
statement if the filename is an empty string and obtained this output. 

....
('EXTENSION', '_multiprocessing.pyd', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', '', 'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'pywintypes27.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'libiomp5md.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'pyside-python2.7.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'shiboken-python2.7.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'QtCore4.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'QtNetwork4.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'Microsoft.VC90.MFC.manifest', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'mfc90.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'mfc90u.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'mfcm90.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'mfcm90u.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')
('BINARY', 'QtGui4.dll', 
'C:\\Users\\Gabriele\\Documents\\GitHub\\chemlab\\dist\\te')

If I try to run the file I got this error:

C:\Users\Gabriele\Documents\GitHub\chemlab>dist\te\te.exe
The application has failed to start because its side-by-side configuration 
is incorrect. Please see the application event log or use
 the command-line sxstrace.exe tool for more detail.

Using sxstrace I got this log, something related to visual studio:

INFO: Parsing Manifest File 
C:\Users\Gabriele\Documents\GitHub\chemlab\dist\te\Microsoft.VC90.MFC.MANIFEST.
    INFO: Manifest Definition Identity is 
Microsoft.VC90.MFC,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30729.6161".
    ERROR: Component identity found in manifest does not match the identity 
of the component requested. Reference is 
Microsoft.VC90.MFC,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
 
Definition is 
Microsoft.VC90.MFC,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30729.6161".
ERROR: Activation Context generation failed.
End Activation Context Generation.

Do you know about this issue?

On Monday, February 10, 2014 10:08:03 PM UTC-8, Gabriele Lanaro wrote:
>
> I'm trying to package my application, I have encountered this issue: 
> basically pyinstaller tries to check for a md5sum of an empty-string 
> filename, causing in an exception. I have no idea on what is causing the 
> issue.
>
> Can you help me fix this problem?
>
>
> C:\Users\Gabriele\Documents\GitHub\chemlab>pyinstaller te.py
> 29 INFO: wrote C:\Users\Gabriele\Documents\GitHub\chemlab\te.spec
> 46 INFO: Testing for ability to set icons, version resources...
> 55 INFO: ... resource update available
> 59 INFO: UPX is not available.
> 82 INFO: Processing hook hook-os
> 210 INFO: Processing hook hook-time
> 216 INFO: Processing hook hook-cPickle
> 282 INFO: Processing hook hook-_sre
> 407 INFO: Processing hook hook-cStringIO
> 499 INFO: Processing hook hook-encodings
> 515 INFO: Processing hook hook-codecs
> 936 INFO: Processing hook hook-httplib
> 944 INFO: Processing hook hook-email
> 1059 INFO: Processing hook hook-email.message
> 1323 WARNING: library python%s%s required via ctypes not found
> 1476 INFO: Extending PYTHONPATH with 
> C:\Users\Gabriele\Documents\GitHub\chemlab
> 1477 INFO: checking Analysis
> 2078 INFO: checking PYZ
> 2230 INFO: checking PKG
> 2234 INFO: building because 
> C:\Users\Gabriele\Documents\GitHub\chemlab\build\te\te.exe.manifest changed
> 2236 INFO: building PKG (CArchive) out00-PKG.pkg
> 2263 INFO: checking EXE
> 2265 INFO: rebuilding out00-EXE.toc because pkg is more recent
> 2266 INFO: building EXE from out00-EXE.toc
> 2269 INFO: Appending archive to EXE 
> C:\Users\Gabriele\Documents\GitHub\chemlab\build\te\te.exe
> 2276 INFO: checking COLLECT
> WARNING: The output directory 
> "C:\Users\Gabriele\Documents\GitHub\chemlab\dist\te" and ALL ITS CONTENTS 
> will be REMOVE
> y/n)y
> 5082 INFO: Removing dir C:\Users\Gabriele\Documents\GitHub\chemlab\dist\te
> 5125 INFO: building COLLECT out00-COLLECT.toc
> Traceback (most recent call last):
>   File "C:\Users\Gabriele\Anaconda\Scripts\pyinstaller-script.py", line 9, 
> in <module>
>     load_entry_point('PyInstaller==2.1', 'console_scripts', 
> 'pyinstaller')()
>   File "C:\Users\Gabriele\Anaconda\lib\site-packages\PyInstaller\main.py", 
> line 88, in run
>     run_build(opts, spec_file, pyi_config)
>   File "C:\Users\Gabriele\Anaconda\lib\site-packages\PyInstaller\main.py", 
> line 46, in run_build
>     PyInstaller.build.main(pyi_config, spec_file, **opts.__dict__)
>   File 
> "C:\Users\Gabriele\Anaconda\lib\site-packages\PyInstaller\build.py", line 
> 1924, in main
>     build(specfile, kw.get('distpath'), kw.get('workpath'), 
> kw.get('clean_build'))
>   File 
> "C:\Users\Gabriele\Anaconda\lib\site-packages\PyInstaller\build.py", line 
> 1873, in build
>     execfile(spec)
>   File "C:\Users\Gabriele\Documents\GitHub\chemlab\te.spec", line 22, in 
> <module>
>     name='te')
>   File 
> "C:\Users\Gabriele\Anaconda\lib\site-packages\PyInstaller\build.py", line 
> 1379, in __init__
>     self.__postinit__()
>   File 
> "C:\Users\Gabriele\Anaconda\lib\site-packages\PyInstaller\build.py", line 
> 309, in __postinit__
>     self.assemble()
>   File 
> "C:\Users\Gabriele\Anaconda\lib\site-packages\PyInstaller\build.py", line 
> 1412, in assemble
>     dist_nm=inm)
>   File 
> "C:\Users\Gabriele\Anaconda\lib\site-packages\PyInstaller\build.py", line 
> 842, in checkCache
>     digest = cacheDigest(fnm)
>   File 
> "C:\Users\Gabriele\Anaconda\lib\site-packages\PyInstaller\build.py", line 
> 796, in cacheDigest
>     data = open(fnm, "rb").read()
> IOError: [Errno 22] invalid mode ('rb') or filename: ''
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to