Quantcast

more exceptions from pyinstaller during the build

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

more exceptions from pyinstaller during the build

Coyot Linden (Glenn Glazer)
This is from a local build on a Windows 7 machine:

29>  Traceback (most recent call last):
29>    File "c:\python27\lib\runpy.py", line 162, in _run_module_as_main
29>      "__main__", fname, loader, pkg_name)
29>    File "c:\python27\lib\runpy.py", line 72, in _run_code
29>      exec code in run_globals
29>    File "C:\Python27\Scripts\pyinstaller.exe\__main__.py", line 9, in <module>
29>    File "c:\python27\lib\site-packages\PyInstaller\__main__.py", line 90, in run
29>      run_build(pyi_config, spec_file, **vars(args))
29>    File "c:\python27\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
29>      PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
29>    File "c:\python27\lib\site-packages\PyInstaller\building\build_main.py", line 755, in main
29>      build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
29>    File "c:\python27\lib\site-packages\PyInstaller\building\build_main.py", line 701, in build
29>      exec(text, spec_namespace)
29>    File "<string>", line 28, in <module>
29>    File "c:\python27\lib\site-packages\PyInstaller\building\api.py", line 489, in __init__
29>      strip_binaries=self.strip, upx_binaries=self.upx,
29>    File "c:\python27\lib\site-packages\PyInstaller\building\api.py", line 280, in __init__
29>      self.__postinit__()
29>    File "c:\python27\lib\site-packages\PyInstaller\building\datastruct.py", line 183, in __postinit__
29>      self.assemble()
29>    File "c:\python27\lib\site-packages\PyInstaller\building\api.py", line 343, in assemble
29>      dist_nm=inm)
29>    File "c:\python27\lib\site-packages\PyInstaller\building\utils.py", line 246, in checkCache
29>      shutil.copy(fnm, cachedfile)
29>    File "c:\python27\lib\shutil.py", line 119, in copy
29>      copyfile(src, dst)
29>    File "c:\python27\lib\shutil.py", line 83, in copyfile
29>      with open(dst, 'wb') as fdst:
29>  IOError: [Errno 13] Permission denied: 'C:\\Users\\coyot\\AppData\\Roaming\\pyinstaller\\bincache00_py27_32bit\\unicodedata.pyd'
29>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.


26>  Traceback (most recent call last):
26>    File "c:\python27\lib\runpy.py", line 162, in _run_module_as_main
26>      "__main__", fname, loader, pkg_name)
26>    File "c:\python27\lib\runpy.py", line 72, in _run_code
26>      exec code in run_globals
26>    File "C:\Python27\Scripts\pyinstaller.exe\__main__.py", line 9, in <module>
26>    File "c:\python27\lib\site-packages\PyInstaller\__main__.py", line 90, in run
26>      run_build(pyi_config, spec_file, **vars(args))
26>    File "c:\python27\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
26>      PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
26>    File "c:\python27\lib\site-packages\PyInstaller\building\build_main.py", line 755, in main
26>      build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
26>    File "c:\python27\lib\site-packages\PyInstaller\building\build_main.py", line 651, in build
26>      shutil.rmtree(f)
26>    File "c:\python27\lib\shutil.py", line 252, in rmtree
26>      onerror(os.remove, fullname, sys.exc_info())
26>    File "c:\python27\lib\shutil.py", line 250, in rmtree
26>      os.remove(fullname)
26>  WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\coyot\\AppData\\Roaming\\pyinstaller\\bincache00_py27_32bit\\unicodedata.pyd'


This is from a TC build:

[23:55:13][Build Release] 19>  176 INFO: PyInstaller: 3.3.dev0+a909f1a
[23:55:13][Build Release] 19>  176 INFO: Python: 2.7.8
[23:55:13][Build Release] 19>  176 INFO: Platform: Windows-7-6.1.7601-SP1
[23:55:13][Build Release] 19>  177 INFO: wrote C:\Checkout\viewer-management-process-sl-321_Windows\latest\build-vc120\newview\update_manager.spec
[23:55:13][Build Release] 19>  177 DEBUG: Testing for UPX ...
[23:55:13][Build Release] 19>  179 INFO: UPX is not available.
[23:55:13][Build Release] 19>  179 INFO: Removing temporary files and cleaning cache in C:\Windows\system32\config\systemprofile\AppData\Roaming\pyinstaller
[23:55:13][Build Release] 19>  Traceback (most recent call last):
[23:55:13][Build Release] 19>    File "C:\Python27\Scripts\pyinstaller-script.py", line 9, in <module>
[23:55:13][Build Release] 19>      load_entry_point('PyInstaller==3.3.dev0+a909f1a', 'console_scripts', 'pyinstaller')()
[23:55:13][Build Release] 19>    File "C:\Python27\lib\site-packages\pyinstaller-3.3.dev0+a909f1a-py2.7.egg\PyInstaller\__main__.py", line 90, in run
[23:55:13][Build Release] 19>      run_build(pyi_config, spec_file, **vars(args))
[23:55:13][Build Release] 19>    File "C:\Python27\lib\site-packages\pyinstaller-3.3.dev0+a909f1a-py2.7.egg\PyInstaller\__main__.py", line 46, in run_build
[23:55:13][Build Release] 19>      PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
[23:55:13][Build Release] 19>    File "C:\Python27\lib\site-packages\pyinstaller-3.3.dev0+a909f1a-py2.7.egg\PyInstaller\building\build_main.py", line 788, in main
[23:55:13][Build Release] 19>      build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
[23:55:13][Build Release] 19>    File "C:\Python27\lib\site-packages\pyinstaller-3.3.dev0+a909f1a-py2.7.egg\PyInstaller\building\build_main.py", line 684, in build
[23:55:13][Build Release] 19>      shutil.rmtree(f)
[23:55:13][Build Release] 19>    File "C:\Python27\lib\shutil.py", line 252, in rmtree
[23:55:13][Build Release] 19>      onerror(os.remove, fullname, sys.exc_info())
[23:55:13][Build Release] 19>    File "C:\Python27\lib\shutil.py", line 250, in rmtree
[23:55:13][Build Release] 19>      os.remove(fullname)
[23:55:13][Build Release] 19>  WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'C:\\Windows\\system32\\config\\systemprofile\\AppData\\Roaming\\pyinstaller\\bincache00_py27_32bit\\python27.dll'
[23:55:13][Build Release] 19>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.


Any help with how to resolve these errors would be greatly appreciated, these are now blocking release.

Best,

coyot
GLENN GLAZER | Senior Software Engineer
m:
562.305.2920 | email:  [hidden email] | Second Life: Coyot Linden
LINDEN LAB | Create Virtual Experiences


--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: more exceptions from pyinstaller during the build

Hartmut Goebel
Am 23.09.2016 um 16:58 schrieb Coyot Linden (Glenn Glazer):
29>  IOError: [Errno 13] Permission denied: 'C:\\Users\\coyot\\AppData\\Roaming\\pyinstaller\\bincache00_py27_32bit\\unicodedata.pyd'

Obviously you do not have write permission for this directory. maybe it belongs to another user?

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/totgeburt-volksverschlusselung
Kolumne: http://www.cissp-gefluester.de/2010-06-adobe-und-der-maiszunsler

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

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: more exceptions from pyinstaller during the build

Coyot Linden (Glenn Glazer)
On 9/23/16 08:10, Hartmut Goebel wrote:
Am 23.09.2016 um 16:58 schrieb Coyot Linden (Glenn Glazer):
29>  IOError: [Errno 13] Permission denied: 'C:\\Users\\coyot\\AppData\\Roaming\\pyinstaller\\bincache00_py27_32bit\\unicodedata.pyd'

Obviously you do not have write permission for this directory. maybe it belongs to another user?
It appears to belong to me:

 $ ls -l C:\\Users\\coyot\\AppData\\Roaming\\pyinstaller\\bincache00_py27_32bit\\unicodedata.pyd
-rwxr-xr-x 1 coyot None 688640 Sep 23 07:41 'C:\Users\coyot\AppData\Roaming\pyinstaller\bincache00_py27_32bit\unicodedata.pyd'


Best,

coyot

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: more exceptions from pyinstaller during the build

Hartmut Goebel
Am 23.09.2016 um 17:13 schrieb Coyot Linden (Glenn Glazer):
 $ ls -l C:\\Users\\coyot\\AppData\\Roaming\\pyinstaller\\bincache00_py27_32bit\\unicodedata.pyd
-rwxr-xr-x 1 coyot None 688640 Sep 23 07:41 'C:\Users\coyot\AppData\Roaming\pyinstaller\bincache00_py27_32bit\unicodedata.pyd'

Sure this is the same user? This `ls -l` seems to be a cygwin bash commands, while PyInstaller seems to be run via cmd.exe. BTW: the group is "None".


Anyway, you may try running pyinstaller --clean.

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/totgeburt-volksverschlusselung
Kolumne: http://www.cissp-gefluester.de/2010-06-adobe-und-der-maiszunsler

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

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: more exceptions from pyinstaller during the build

Coyot Linden (Glenn Glazer)
On 9/23/16 08:18, Hartmut Goebel wrote:

> Am 23.09.2016 um 17:13 schrieb Coyot Linden (Glenn Glazer):
>>  $ ls -l
>> C:\\Users\\coyot\\AppData\\Roaming\\pyinstaller\\bincache00_py27_32bit\\unicodedata.pyd
>> -rwxr-xr-x 1 coyot None 688640 Sep 23 07:41
>> 'C:\Users\coyot\AppData\Roaming\pyinstaller\bincache00_py27_32bit\unicodedata.pyd'
>
> Sure this is the same user? This `ls -l` seems to be a cygwin bash
> commands, while PyInstaller seems to be run via cmd.exe. BTW: the
> group is "None".
>
>
> Anyway, you may try running pyinstaller --clean.

cmd.exe understands some unix-style commands these days:

C:\Users\coyot> ls -l
C:\\Users\\coyot\\AppData\\Roaming\\pyinstaller\\bincache00_py27_32bit\\unicodedata.pyd
-rwxr-xr-x 1 coyot None 688640 Sep 23 08:18
'C:\\Users\\coyot\\AppData\\Roaming\\pyinstaller\\bincache00_py27_32bit\\unicodedata.pyd'

But yes, I think this is the source of the problem, many thanks.  I just
re-ran the build not from cygwin but from cmd.exe and it succeeded
without either this or the access by another program error.

I think I need to have a discussion with our build team.  I do sort of
wonder why many builds before this succeeded in cygwin.

Thanks again,

coyot

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Loading...