Bug 455199 - python script run errors when packaging
Summary: python script run errors when packaging
Status: REPORTED
Alias: None
Product: Craft
Classification: Unmaintained
Component: Core (show other bugs)
Version: master
Platform: Compiled Sources Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-13 06:00 UTC by ShyRedwolf
Modified: 2022-06-13 06:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ShyRedwolf 2022-06-13 06:00:02 UTC
SUMMARY
***
craft python script exception when packaging kshisen or kig
***


STEPS TO REPRODUCE
1. craft kshisen
2. craft --package kshisen
3. 

OBSERVED RESULT
Delete symbols: F:\CraftRoot\build\kde\kdegames\kshisen\archive\lib\Qt5PlatformCompositorSupport.pdb
Delete symbols: F:\CraftRoot\build\kde\kdegames\kshisen\archive\lib\Qt5QmlDebug.pdb
Delete symbols: F:\CraftRoot\build\kde\kdegames\kshisen\archive\lib\Qt5QmlDevTools.pdb
Delete symbols: F:\CraftRoot\build\kde\kdegames\kshisen\archive\lib\Qt5ThemeSupport.pdb
Delete symbols: F:\CraftRoot\build\kde\kdegames\kshisen\archive\lib\Qt5WindowsUIAutomationSupport.pdb
Delete symbols: F:\CraftRoot\build\kde\kdegames\kshisen\archive\lib\qtmain.pdb
*** Craft package succeeded: kde/kdegames/kshisen after 30 seconds ***
[31m[WinError 5] 拒绝访问。: 'F:\\CraftRoot\\build\\kde\\kdegames\\kshisen\\archive\\lib\\icu\\current'[0m
Traceback (most recent call last):
  File "F:\CraftRoot\craft-master\bin\craft.py", line 274, in <module>
    success = main(timer)
  File "F:\CraftRoot\craft-master\bin\craft.py", line 264, in main
    if not CraftCommands.run(package, action, tempArgs):
  File "F:\CraftRoot\craft-master\bin\CraftCommands.py", line 431, in run
    if not handlePackage(info, action, directTargets=directTargets):
  File "F:\CraftRoot\craft-master\bin\CraftCommands.py", line 94, in handlePackage
    success = doExec(package, action)
  File "F:\CraftRoot\craft-master\bin\CraftCommands.py", line 58, in doExec
    ret = package.instance.runAction(action)
  File "F:\CraftRoot\craft-master\bin\Package\PackageBase.py", line 247, in runAction
    if not getattr(self, step)():
  File "F:\CraftRoot\craft-master\bin\Packager\TypePackager.py", line 85, in createPackage
    return self.__packager.createPackage(self)
  File "F:\CraftRoot\craft-master\bin\Packager\NullsoftInstallerPackager.py", line 205, in createPackage
    if not super().createPackage():
  File "F:\CraftRoot\craft-master\bin\Packager\PortablePackager.py", line 32, in createPackage
    if not self.internalCreatePackage(defines, True):
  File "F:\CraftRoot\craft-master\bin\Packager\CollectionPackagerBase.py", line 356, in internalCreatePackage
    for sym in utils.filterDirectoryContent(archiveDir, handleAppBundleAsFile=True,
  File "F:\CraftRoot\craft-master\bin\utils.py", line 1030, in filterDirectoryContent
    if blacklist(filePath, root=root) and not whitelist(filePath, root=root):
  File "F:\CraftRoot\craft-master\bin\Packager\CollectionPackagerBase.py", line 352, in symFilter
    if x.is_dir():
PermissionError: [WinError 5] 拒绝访问。: 'F:\\CraftRoot\\build\\kde\\kdegames\\kshisen\\archive\\lib\\icu\\current'

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION