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

How to install clickable successfully?

Scheduled Pinned Locked Moved App Development
4 Posts 3 Posters 797 Views 1 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.
    • M Offline
      marc_aurel
      last edited by 22 Dec 2018, 11:02

      The documentation of app development suggests the sue of clickable. Therefore I tried to install clickable as described on my VM with Ubuntu 16.04. The installation neither throw an execption nor reports an error:

      pip3 install git+https://gitlab.com/clickable/clickable.git    
      Collecting git+https://gitlab.com/clickable/clickable.git    
        Cloning https://gitlab.com/clickable/clickable.git to /tmp/pip-gay0p9si-build    
      Collecting cookiecutter (from clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/16/99/1ca3a75978270288354f419e9166666801cf7e7d8df984de44a7d5d8b8d0/cookiecutter-1.6.0-py2.py3-none-any.whl    
      Collecting requests (from clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl    
      Collecting jinja2>=2.7 (from cookiecutter->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl    
      Collecting binaryornot>=0.2.0 (from cookiecutter->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/24/7e/f7b6f453e6481d1e233540262ccbfcf89adcd43606f44a028d7f5fae5eb2/binaryornot-0.4.4-py2.py3-none-any.whl    
      Collecting jinja2-time>=0.1.0 (from cookiecutter->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/6a/a1/d44fa38306ffa34a7e1af09632b158e13ec89670ce491f8a15af3ebcb4e4/jinja2_time-0.2.0-py2.py3-none-any.whl    
      Collecting poyo>=0.1.0 (from cookiecutter->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/e0/16/e00e3001007a5e416ca6a51def6f9e4be6a774bf1c8486d20466f834d113/poyo-0.4.2-py2.py3-none-any.whl    
      Collecting whichcraft>=0.4.0 (from cookiecutter->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/ab/c6/eb4d1dfbb68168bb01c4394420e5e71d5851e64b910838aa0f14ebd5c7a0/whichcraft-0.5.2-py2.py3-none-any.whl    
      Collecting future>=0.15.2 (from cookiecutter->clickable==5.3.2)    
      Collecting click>=5.0 (from cookiecutter->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl    
      Collecting idna<2.9,>=2.5 (from requests->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl    
      Collecting certifi>=2017.4.17 (from requests->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl    
      Collecting chardet<3.1.0,>=3.0.2 (from requests->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl    
      Collecting urllib3<1.25,>=1.21.1 (from requests->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl    
      Collecting MarkupSafe>=0.23 (from jinja2>=2.7->cookiecutter->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/08/04/f2191b50fb7f0712f03f064b71d8b4605190f2178ba02e975a87f7b89a0d/MarkupSafe-1.1.0-cp36-cp36m-manylinux1_x86_64.whl    
      Collecting arrow (from jinja2-time>=0.1.0->cookiecutter->clickable==5.3.2)    
      Collecting python-dateutil (from arrow->jinja2-time>=0.1.0->cookiecutter->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl    
      Collecting six>=1.5 (from python-dateutil->arrow->jinja2-time>=0.1.0->cookiecutter->clickable==5.3.2)    
        Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl    
      Installing collected packages: MarkupSafe, jinja2, chardet, binaryornot, idna, certifi, urllib3, requests, six, python-dateutil, arrow, jinja2-time, poyo, whichcraft, future, click, cookiecutter, clickable    
        Running setup.py install for clickable ... done    
      Successfully installed MarkupSafe-1.1.0 arrow-0.12.1 binaryornot-0.4.4 certifi-2018.11.29 chardet-3.0.4 click-7.0 clickable-5.3.2 cookiecutter-1.6.0 future-0.17.1 idna-2.8 jinja2-2.10 jinja2-time-0.2.0 poyo-0.4.2 python-dateutil-2.7.5 requests-2.21.0 six-1.12.0 urllib3-1.24.1 whichcraft-0.5.2    
      

      If I try to use clickable, the system doesn't know the command:

      clickable
      clickable: command not found
      

      An installation with sudo doesn't help either. It even starts with an error:

      sudo pip3 install git+https://gitlab.com/clickable/clickable.git
      The directory '/home/marc/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
      The directory '/home/marc/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
      Collecting git+https://gitlab.com/clickable/clickable.git
        Cloning https://gitlab.com/clickable/clickable.git to /tmp/pip-fyjq2u0c-build
        Requirement already satisfied (use --upgrade to upgrade): clickable==5.3.2 from git+https://gitlab.com/clickable/clickable.git in ./.local/lib/python3.6/site-packages
      Requirement already satisfied: cookiecutter in ./.local/lib/python3.6/site-packages (from clickable==5.3.2)
      Requirement already satisfied: requests in ./.local/lib/python3.6/site-packages (from clickable==5.3.2)
      Requirement already satisfied: jinja2-time>=0.1.0 in ./.local/lib/python3.6/site-packages (from cookiecutter->clickable==5.3.2)
      Requirement already satisfied: future>=0.15.2 in ./.local/lib/python3.6/site-packages (from cookiecutter->clickable==5.3.2)
      Requirement already satisfied: jinja2>=2.7 in ./.local/lib/python3.6/site-packages (from cookiecutter->clickable==5.3.2)
      Requirement already satisfied: whichcraft>=0.4.0 in ./.local/lib/python3.6/site-packages (from cookiecutter->clickable==5.3.2)
      Requirement already satisfied: click>=5.0 in ./.local/lib/python3.6/site-packages (from cookiecutter->clickable==5.3.2)
      Requirement already satisfied: binaryornot>=0.2.0 in ./.local/lib/python3.6/site-packages (from cookiecutter->clickable==5.3.2)
      Requirement already satisfied: poyo>=0.1.0 in ./.local/lib/python3.6/site-packages (from cookiecutter->clickable==5.3.2)
      Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.local/lib/python3.6/site-packages (from requests->clickable==5.3.2)
      Requirement already satisfied: urllib3<1.25,>=1.21.1 in ./.local/lib/python3.6/site-packages (from requests->clickable==5.3.2)
      Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.6/site-packages (from requests->clickable==5.3.2)
      Requirement already satisfied: idna<2.9,>=2.5 in ./.local/lib/python3.6/site-packages (from requests->clickable==5.3.2)
      Requirement already satisfied: arrow in ./.local/lib/python3.6/site-packages (from jinja2-time>=0.1.0->cookiecutter->clickable==5.3.2)
      Requirement already satisfied: MarkupSafe>=0.23 in ./.local/lib/python3.6/site-packages (from jinja2>=2.7->cookiecutter->clickable==5.3.2)
      Requirement already satisfied: python-dateutil in ./.local/lib/python3.6/site-packages (from arrow->jinja2-time>=0.1.0->cookiecutter->clickable==5.3.2)
      Requirement already satisfied: six>=1.5 in ./.local/lib/python3.6/site-packages (from python-dateutil->arrow->jinja2-time>=0.1.0->cookiecutter->clickable==5.3.2)
      

      Has someone an ides? Should I remove the pip cache and install it with apt-get, that is not recommended in the documentation?

      1 Reply Last reply Reply Quote 0
      • D Offline
        dobey
        last edited by 22 Dec 2018, 15:55

        The problem you are having is that pip3 does not install packages into the system directory. You will need to add the bin path where pip3 installed clickable, to your $PATH, before you can simply run clickable. Otherwise you need to run it using the full path to the clickable script, likely ~/.local/bin/clickable or similar.

        1 Reply Last reply Reply Quote 0
        • M Offline
          marc_aurel
          last edited by marc_aurel 22 Dec 2018, 21:27

          @dobey Thanks for your advice. I've used these two commands:

          echo "export PATH=$HOME/.local/bin:$PATH" >> ~/.bashrc
          export PATH="$HOME/.local/bin:$PATH"
          

          Now I execute the terminal command clickable, but it seems, that docker is required:

          clickable
          The command "docker" does not exist on this system, please install it for clickable to work properly"
          

          Thus I tried the following command:

          sudo apt-get install docker
          [sudo] password for marc: 
          Reading package lists... Done
          Building dependency tree       
          Reading state information... Done
          The following NEW packages will be installed:
            docker
          0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
          Need to get 12,9 kB of archives.
          After this operation, 45,1 kB of additional disk space will be used.
          Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 docker amd64 1.5-1build1 [12,9 kB]
          Fetched 12,9 kB in 1s (8.761 B/s) 
          Selecting previously unselected package docker.
          (Reading database ... 178588 files and directories currently installed.)
          Preparing to unpack .../docker_1.5-1build1_amd64.deb ...
          Unpacking docker (1.5-1build1) ...
          Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
          Setting up docker (1.5-1build1) ...
          

          Unfortunately this doesn't help. I get the same error. Any idea?

          Edit: Ok, It seems, that sudo apt-get install docke' is not sufficient. I could resulve the issue with sudo apt-get install docker.io.

          1 Reply Last reply Reply Quote 0
          • L Offline
            L-00025 Banned
            last edited by 17 Jan 2019, 12:18

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • First post
              Last post