Bug 412580 - Craft failure in libs/shared-mime-info failed to detect bash
Summary: Craft failure in libs/shared-mime-info failed to detect bash
Status: RESOLVED NOT A BUG
Alias: None
Product: Craft
Classification: Developer tools
Component: Blueprints (show other bugs)
Version: master
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-03 21:01 UTC by Allen Winter
Modified: 2019-11-09 16:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allen Winter 2019-10-03 21:01:28 UTC
SUMMARY
failed to detect bash

STEPS TO REPRODUCE
from a non-powershell, plain old terminal run:
c:\python37\python.exe -u C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\craft.py -i kde/frameworks/tier1

OBSERVED RESULT

*** Action: compile for libs/shared-mime-info ***
Failed to detect bash
*** Craft all succeeded: libs/shared-mime-info after 3 seconds ***
expected str, bytes or os.PathLike object, not NoneType
Traceback (most recent call last):
  File "C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\craft.py", line 266, in <module>
    success = main()
  File "C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\craft.py", line 254, in main
    if not CraftCommands.run(package, action, tempArgs):
  File "C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\CraftCommands.py", line 282, in run
    if not handlePackage(info, action, directTargets=directTargets):
  File "C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\CraftCommands.py", line 75, in handlePackage
    success = doExec(package, action)
  File "C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\CraftCommands.py", line 41, in doExec
    ret = package.instance.runAction(action)
  File "C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\Package\PackageBase.py", line 221, in runAction
    if not getattr(self, step)():
  File "C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\BuildSystem\BuildSystemBase.py", line 82, in compile
    return configure() and make()
  File "C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\BuildSystem\AutoToolsBuildSystem.py", line 47, in configure
    self.shell.environment["CFLAGS"] = self.subinfo.options.configure.cflags + " " + self.shell.environment["CFLAGS"]
  File "C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\shells.py", line 98, in environment
    for d in os.scandir(os.path.join(os.path.dirname(self._findBash()), "..", "share")):
  File "c:\python37\lib\ntpath.py", line 221, in dirname
    return split(p)[0]
  File "c:\python37\lib\ntpath.py", line 183, in split
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Command c:\python37\python.exe -u C:\KDE\windows-msvc2017_64-cl-sdk-5.12.5\craft\bin\craft.py -i kde/frameworks/tier1 failed with exit code: 1
EXPECTED RESULT


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

ADDITIONAL INFORMATION
Comment 1 Allen Winter 2019-11-09 16:38:27 UTC
I forgot to install C:\msys64