Hello!

I might have found a solution to this.


set PYINSTALLER_CONFIG_DIR=%WORKSPACE%

inside each the Jenkins job gives each pyinstaller process its own bincache dir.

Hartmut, would that be a valid solution, or are there implications I am not 
aware of?

(Hartmut, regarding your PM in this thread: I have asked, and I am still 
working on finding some funding inside our company.)

Stay healthy!

Hartmut.

Von: [email protected] <[email protected]> Im Auftrag von 
Eric Fahlgren
Gesendet: Montag, 9. März 2020 17:15
An: [email protected]
Betreff: Re: [PyInstaller] Concurrent pyinstaller builds

The best solution right now appears to be "re-run the build..."

https://github.com/pyinstaller/pyinstaller/issues/3809<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller%2Fissues%2F3809&data=02%7C01%7Chartmut.niemann%40siemens.com%7C170bfa2928364d875e7508d7c446de3b%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637193680959192046&sdata=CYIURbuKQ8ByGX7Tw2Hs6UM0H0CUXjeOXti8r2JwPjk%3D&reserved=0>

I've tried to find the root cause, but it's so spurious as to be impossible.  
If you can find a way to reliably reproduce the issue (I have not been able 
to), I'm sure someone could figure it out.


On Mon, Mar 9, 2020 at 3:15 AM Niemann, Hartmut 
<[email protected]<mailto:[email protected]>> wrote:
Hello!

pyinstaller (3.2.1 on python 2.7) has a problem when running concurrently, 
which happens now and then on our Jenkins build system:


15217 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 
30729, 9518)

15217 INFO: Redirecting Microsoft.VC90.MFC version (9, 0, 21022, 8) -> (9, 0, 
30729, 1)

15219 INFO: Updating manifest in 
C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\pyinstaller\bincache00_py27_32bit\win32ui.pyd

15221 INFO: Updating resource type 24 name 2 language 1033

15358 ERROR: 
C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\pyinstaller\bincache00_py27_32bit\unicodedata.pyd

Traceback (most recent call last):

  File "C:\DEVTOOLS\Python\27-32\Scripts\pyinstaller-script.py", line 11, in 
<module>

    load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()

  File "c:\devtools\python\27-32\lib\site-packages\PyInstaller\__main__.py", 
line 90, in run

    run_build(pyi_config, spec_file, **vars(args))

  File "c:\devtools\python\27-32\lib\site-packages\PyInstaller\__main__.py", 
line 46, in run_build

    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)

  File 
"c:\devtools\python\27-32\lib\site-packages\PyInstaller\building\build_main.py",
 line 788, in main

    build(specfile, kw.get('distpath'), kw.get('workpath'), 
kw.get('clean_build'))

  File 
"c:\devtools\python\27-32\lib\site-packages\PyInstaller\building\build_main.py",
 line 734, in build

    exec(text, spec_namespace)

  File "<string>", line 37, in <module>

  File 
"c:\devtools\python\27-32\lib\site-packages\PyInstaller\building\api.py", line 
402, in __init__

    strip_binaries=self.strip, upx_binaries=self.upx,

  File 
"c:\devtools\python\27-32\lib\site-packages\PyInstaller\building\api.py", line 
191, in __init__

    self.__postinit__()

  File 
"c:\devtools\python\27-32\lib\site-packages\PyInstaller\building\datastruct.py",
 line 161, in __postinit__

    self.assemble()

  File 
"c:\devtools\python\27-32\lib\site-packages\PyInstaller\building\api.py", line 
254, in assemble

    dist_nm=inm)

  File 
"c:\devtools\python\27-32\lib\site-packages\PyInstaller\building\utils.py", 
line 268, in checkCache

    res = winmanifest.GetManifestResources(os.path.abspath(cachedfile))

  File 
"c:\devtools\python\27-32\lib\site-packages\PyInstaller\utils\win32\winmanifest.py",
 line 1005, in GetManifestResources

    return winresource.GetResources(filename, [RT_MANIFEST], names, languages)

  File 
"c:\devtools\python\27-32\lib\site-packages\PyInstaller\utils\win32\winresource.py",
 line 171, in GetResources

    hsrc = win32api.LoadLibraryEx(filename, 0, LOAD_LIBRARY_AS_DATAFILE)

pywintypes.error: (32, 'LoadLibraryEx', 'The process cannot access the file 
because it is being used by another process.')

What can I do about that?

With best regards
Hartmut Niemann
--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/AM6PR10MB2568AD79AEF295CDC2A0F974FCFE0%40AM6PR10MB2568.EURPRD10.PROD.OUTLOOK.COM<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpyinstaller%2FAM6PR10MB2568AD79AEF295CDC2A0F974FCFE0%2540AM6PR10MB2568.EURPRD10.PROD.OUTLOOK.COM%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Chartmut.niemann%40siemens.com%7C170bfa2928364d875e7508d7c446de3b%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637193680959202000&sdata=MZ93mtewwrraVOo9DZVYg7Q2k3UCt2R9xTKfAsDJuJQ%3D&reserved=0>.
--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/CAP2Qz%2BVztKftCGHLreoCvg3dGxFis5WGnZxAkJ9tTByzUOA3_g%40mail.gmail.com<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpyinstaller%2FCAP2Qz%252BVztKftCGHLreoCvg3dGxFis5WGnZxAkJ9tTByzUOA3_g%2540mail.gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Chartmut.niemann%40siemens.com%7C170bfa2928364d875e7508d7c446de3b%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637193680959202000&sdata=IFIRVnB%2BMRFzjoTz4978My21fZlfTY0PvgtTSJPsclE%3D&reserved=0>.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/AM6PR10MB25682E3797542EFD071AED0AFCCC0%40AM6PR10MB2568.EURPRD10.PROD.OUTLOOK.COM.

Reply via email to