• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

SOLVED: Clickable create failing

Scheduled Pinned Locked Moved App Development
5 Posts 2 Posters 484 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      farkasdvd
      last edited by farkasdvd 17 Feb 2020, 07:51

      Hello,
      I'm wondering whether the following issue is worth reporting or it's just an issue on my end.
      On CentOS 7 clickable create ends with the following exception:

      Traceback (most recent call last):
        File "/home/h134607/.local/lib/python3.6/site-packages/clickable/__init__.py", line 253, in main
          clickable.run(args.commands, args)
        File "/home/h134607/.local/lib/python3.6/site-packages/clickable/__init__.py", line 237, in run
          cmd.run(command_arg)
        File "/home/h134607/.local/lib/python3.6/site-packages/clickable/commands/create.py", line 52, in run
          config_file=config_file,
        File "/home/h134607/.local/lib/python3.6/site-packages/cookiecutter/main.py", line 63, in cookiecutter
          password=password
        File "/home/h134607/.local/lib/python3.6/site-packages/cookiecutter/repository.py", line 103, in determine_repo_dir
          no_input=no_input,
        File "/home/h134607/.local/lib/python3.6/site-packages/cookiecutter/vcs.py", line 99, in clone
          stderr=subprocess.STDOUT,
        File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output
          **kwargs).stdout
        File "/usr/lib64/python3.6/subprocess.py", line 438, in run
          output=stdout, stderr=stderr)
      subprocess.CalledProcessError: Command '['git', 'clone', 'https://gitlab.com/clickable/ut-app-meta-template']' returned non-zero exit status 128.
      

      After I appended the .git suffix to the value of COOKIECUTTER_URL in file ~/.local/lib/python3.6/site-packages/clickable/commands/create.py it started working.

      1 Reply Last reply Reply Quote 0
      • A Online
        arubislander
        last edited by 17 Feb 2020, 07:53

        Sounds like a bug to me. If you file an issue and create a pull request with your change, I am sure the maintainers and all developers on your version of CentOS would be highly appreciative.

        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
        Happily running Ubuntu Touch
        Google Pixel 3a (20.04 DEV)
        JingPad (24.04 preview)
        Meizu Pro 5 (16.04 DEV)

        1 Reply Last reply Reply Quote 1
        • F Offline
          farkasdvd
          last edited by farkasdvd 21 Feb 2020, 09:04

          Thanks,
          It turned out that it is a Git related issue (older versions require the .git suffix).
          I created the issue:
          https://gitlab.com/clickable/clickable/issues/202
          How do I move on with the fix? I can't create a branch on the server and I can't push my local branch to the server either? Do I need to wait for the repo owner to approve the issue first?

          1 Reply Last reply Reply Quote 0
          • A Online
            arubislander
            last edited by 21 Feb 2020, 12:39

            Assuming you have a gitlab account (and I think you do, since you opened the issue), you could:

            • fork the repo to your account,
            • clone that to your local machine,
            • apply your fix on your local copy,
            • commit and push to your copy of the repo,
            • open a merge request (MR) from your repo to the original one,

            Then you have to wait for your MR to be accepted. Usually Brian is quite quick on the uptake.

            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
            Happily running Ubuntu Touch
            Google Pixel 3a (20.04 DEV)
            JingPad (24.04 preview)
            Meizu Pro 5 (16.04 DEV)

            1 Reply Last reply Reply Quote 0
            • F Offline
              farkasdvd
              last edited by 25 Feb 2020, 17:28

              In the meantime Brian fixed it and closed the issue πŸ™‚
              Thanks anyway, I didn't know that merge request between repos is a thing.

              1 Reply Last reply Reply Quote 0
              4 out of 5
              • First post
                4/5
                Last post