Bug 396032 - "echo 0 | python3.6 CraftSetup.py --prefix ~/CraftRoot" fails due to "TypeError: join() argument must be str or bytes, not 'NoneType'"
Summary: "echo 0 | python3.6 CraftSetup.py --prefix ~/CraftRoot" fails due to "TypeErr...
Status: RESOLVED WORKSFORME
Alias: None
Product: Craft
Classification: Developer tools
Component: Core (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-30 20:34 UTC by krichter
Modified: 2022-12-26 05:21 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 krichter 2018-06-30 20:34:20 UTC
Trying to run `wget https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py -O CraftSetup.py && echo 0 | python3.6 CraftSetup.py --prefix ~/CraftRoot` on the Docker image `ubuntu:18.04` fails due to

    oot/CraftRoot) craft craft: 0 secondsjoin() argument must be str or bytes, not 'NoneType'
    Traceback (most recent call last):
      File "/root/CraftRoot/craft-master/bin/craft.py", line 254, in <module>
        success = main()
      File "/root/CraftRoot/craft-master/bin/craft.py", line 187, in main
        helper.setupEnvironment()
      File "/root/CraftRoot/craft-master/bin/CraftSetupHelper.py", line 301, in setupEnvironment
        self.setXDG()
      File "/root/CraftRoot/craft-master/bin/CraftSetupHelper.py", line 233, in setXDG
        os.path.join(CraftStandardDirs.craftRoot(), "home", os.getenv("USER"), ".local5", "share"))
      File "/usr/lib/python3.6/posixpath.py", line 94, in join
        genericpath._check_arg_types('join', a, *p)
      File "/usr/lib/python3.6/genericpath.py", line 149, in _check_arg_types
        (funcname, s.__class__.__name__)) from None
    TypeError: join() argument must be str or bytes, not 'NoneType'

    Execute: /usr/bin/python3.6 /root/CraftRoot/craft-master/bin/craft.py craft

The complete output and command chain can be inspected at https://gitlab.com/krichter/craft/-/jobs/78554991.

The official Ubuntu Docker images are pretty bare systems, however the user shouldn't be left in any situation without feedback.

Solving https://bugs.kde.org/show_bug.cgi?id=396030 might avoid this issue, however it indicates that an exception case isn't handled well and should be dealt with nonetheless.

experienced with v1.3-5775-g5c4193223
Comment 1 Justin Zobel 2022-11-26 00:14:00 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-12-11 05:07:52 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-12-26 05:21:46 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!