d4rk50ul1 / klipper-on-android

Using Android to run Klipper, Moonraker, Mainsail/Fuidd, and KlipperScreen
GNU General Public License v3.0
110 stars 21 forks source link

Klipperscreen and Hostname error #16

Open kahupihu opened 1 year ago

kahupihu commented 1 year ago

Hi! I followed this guide on my rooted Lenovo K3 Note k50a40 with Lineage OS 15.1 or something and on stock android 5 but in both cases klipperscreen exited with pip failure saying that there is some problem with a package and not pip itself. In both cases, when I entered my device's IP into a browser, fluidd showed up asking me to enter in the hostname which is default localhost and doesn't work.

What should I do to fix this? Btw, the hostname change in kiauh exits with:-

[✓ OK] Dependencies installed!

Creating backup of hosts file ...

[✓ OK] Backup done! [✓ OK] File:'/etc/hosts.221204-1410.bak'

Setting hostname to 'ender3' ...
Please wait ...

System has not been booted with systemd as init system (PID 1). Can't operate. Failed to create bus connection: Host is down

Please HELP!!

d4rk50ul1 commented 1 year ago

need more details to review..

stayingarmed commented 1 year ago

I'm not the original poster, but I'm having the same issue and here is the code that shows during the error:

Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Collecting setuptools
        Using cached setuptools-65.6.3-py3-none-any.whl (1.2 MB)
      Collecting wheel
        Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
      Collecting pyproject-metadata>=0.5.0
        Downloading pyproject_metadata-0.6.1-py3-none-any.whl (7.4 kB)
      Collecting typing-extensions>=3.7.4
        Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)
      Collecting tomli>=1.0.0
        Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
      Collecting packaging>=19.0
        Using cached packaging-22.0-py3-none-any.whl (42 kB)
      Building wheels for collected packages: ninja, patchelf
        Building wheel for ninja (pyproject.toml): started
        Building wheel for ninja (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error

        × Building wheel for ninja (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [9 lines of output]
            Traceback (most recent call last):
              File "/tmp/pip-build-env-c837fi5c/overlay/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 612, in setup
                cmkr = cmaker.CMaker(cmake_executable)
              File "/tmp/pip-build-env-c837fi5c/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 148, in __init__
                self.cmake_version = get_cmake_version(self.cmake_executable)
              File "/tmp/pip-build-env-c837fi5c/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 105, in get_cmake_version
                ) from err

            Problem with the CMake installation, aborting build. CMake executable is cmake
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for ninja
        Building wheel for patchelf (pyproject.toml): started
        Building wheel for patchelf (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error

        × Building wheel for patchelf (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [9 lines of output]
            Traceback (most recent call last):
              File "/tmp/pip-build-env-8axh2jq_/overlay/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 612, in setup
                cmkr = cmaker.CMaker(cmake_executable)
              File "/tmp/pip-build-env-8axh2jq_/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 148, in __init__
                self.cmake_version = get_cmake_version(self.cmake_executable)
              File "/tmp/pip-build-env-8axh2jq_/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 105, in get_cmake_version
                ) from err

            Problem with the CMake installation, aborting build. CMake executable is cmake
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for patchelf
      Failed to build ninja patchelf
      ERROR: Could not build wheels for ninja, patchelf, which is required to install pyproject.toml-based projects
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Error: pip install exited with status code 0
Unable to install dependencies, aborting install.

#=======================================================#
 KlipperScreen installation failed! 
#=======================================================#

$ 
allherg commented 1 year ago

You need to install a newer cmake (at least 3.15) since debian repository provides only 3.13. https://blog.eldernode.com/install-cmake-on-ubuntu-and-debian/

kahupihu commented 1 year ago

Thank you! I will try this and report back to you! The second problem I was having was when setting up fluidd. When opening the IP of the phone after restart, fluidd asks for a website URL and I have no idea what to put in there as anything I put gives a network error or CORRS Policy error.

kahupihu commented 1 year ago

error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [289 lines of output] Collecting meson-python>=0.8.1 Using cached meson_python-0.11.0-py3-none-any.whl (63 kB) Collecting meson>=0.60.0 Using cached meson-0.64.1-py3-none-any.whl (895 kB) Collecting ninja Using cached ninja-1.11.1.tar.gz (27 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting patchelf Using cached patchelf-0.17.0.0.tar.gz (166 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting setuptools Using cached setuptools-65.6.3-py3-none-any.whl (1.2 MB) Collecting wheel Using cached wheel-0.38.4-py3-none-any.whl (36 kB) Collecting tomli>=1.0.0 Using cached tomli-2.0.1-py3-none-any.whl (12 kB) Collecting pyproject-metadata>=0.5.0 Using cached pyproject_metadata-0.6.1-py3-none-any.whl (7.4 kB) Collecting typing-extensions>=3.7.4 Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB) Collecting packaging>=19.0 Using cached packaging-22.0-py3-none-any.whl (42 kB) Building wheels for collected packages: ninja, patchelf Building wheel for ninja (pyproject.toml): started Building wheel for ninja (pyproject.toml): still running... Building wheel for ninja (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

    × Building wheel for ninja (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [236 lines of output]

        --------------------------------------------------------------------------------
        -- Trying "Ninja" generator
        --------------------------------
        ---------------------------
        ----------------------
        -----------------
        ------------
        -------
        --
        Not searching for unused variables given on the command line.
        CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
        -- Configuring incomplete, errors occurred!
        See also "/tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
        --
        -------
        ------------
        -----------------
        ----------------------
        ---------------------------
        --------------------------------
        -- Trying "Ninja" generator - failure
        --------------------------------------------------------------------------------

        --------------------------------------------------------------------------------
        -- Trying "Unix Makefiles" generator
        --------------------------------
        ---------------------------
        ----------------------
        -----------------
        ------------
        -------
        --
        Not searching for unused variables given on the command line.
        -- The C compiler identification is GNU 8.3.0
        -- Check for working C compiler: /usr/bin/cc
        -- Check for working C compiler: /usr/bin/cc -- works
        -- Detecting C compiler ABI info
        -- Detecting C compiler ABI info - done
        -- Detecting C compile features
        -- Detecting C compile features - done
        -- The CXX compiler identification is GNU 8.3.0
        -- Check for working CXX compiler: /usr/bin/c++
        -- Check for working CXX compiler: /usr/bin/c++ -- works
        -- Detecting CXX compiler ABI info
        -- Detecting CXX compiler ABI info - done
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        -- Configuring done
        -- Generating done
        -- Build files have been written to: /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_cmake_test_compile/build
        --
        -------
        ------------
        -----------------
        ----------------------
        ---------------------------
        --------------------------------
        -- Trying "Unix Makefiles" generator - success
        --------------------------------------------------------------------------------

        Configuring Project
          Working directory:
            /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-build
          Command:
            cmake /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-install -DPYTHON_VERSION_STRING:STRING=3.7.3 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-faydiajs/overlay/lib/python3.7/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/home/android/.KlipperScreen-env/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.7m -DPYTHON_LIBRARY:PATH=/usr/lib/arm-linux-gnueabihf/libpython3.7m.so -DPython_EXECUTABLE:PATH=/home/android/.KlipperScreen-env/bin/python3 -DPython_ROOT_DIR:PATH=/home/android/.KlipperScreen-env -DPython_INCLUDE_DIR:PATH=/usr/include/python3.7m -DPython_FIND_REGISTRY:STRING=NEVER -DPython3_EXECUTABLE:PATH=/home/android/.KlipperScreen-env/bin/python3 -DPython3_ROOT_DIR:PATH=/home/android/.KlipperScreen-env -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.7m -DPython3_FIND_REGISTRY:STRING=NEVER -DCMAKE_BUILD_TYPE:STRING=Release

        -- The C compiler identification is GNU 8.3.0
        -- The CXX compiler identification is GNU 8.3.0
        -- Check for working C compiler: /usr/bin/cc
        -- Check for working C compiler: /usr/bin/cc -- works
        -- Detecting C compiler ABI info
        -- Detecting C compiler ABI info - done
        -- Detecting C compile features
        -- Detecting C compile features - done
        -- Check for working CXX compiler: /usr/bin/c++
        -- Check for working CXX compiler: /usr/bin/c++ -- works
        -- Detecting CXX compiler ABI info
        -- Detecting CXX compiler ABI info - done
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        -- *********************************************
        -- Ninja Python Distribution
        --
        --   BUILD_VERBOSE             : OFF
        --   RUN_NINJA_TEST            : ON
        --
        --   ARCHIVE_DOWNLOAD_DIR      : /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-build
        --
        --     src_archive             : unix_source
        --     <src_archive>_url       : https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz
        --     <src_archive>_sha256    : 7ba84551f5b315b4270dc7c51adef5dff83a2154a3665a6c9744245c122dd0db
        -- *********************************************
        -- download_ninja_source - URL: https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz
        -- SuperBuild - CMAKE_BUILD_TYPE: Release
        -- Configuring done
        -- Generating done
        CMake Warning:
          Manually-specified variables were not used by the project:

            PYTHON_EXECUTABLE
            PYTHON_INCLUDE_DIR
            PYTHON_LIBRARY
            PYTHON_VERSION_STRING
            Python3_EXECUTABLE
            Python3_FIND_REGISTRY
            Python3_INCLUDE_DIR
            Python3_ROOT_DIR
            Python_EXECUTABLE
            Python_FIND_REGISTRY
            Python_INCLUDE_DIR
            Python_ROOT_DIR
            SKBUILD

        -- Build files have been written to: /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-build
        Scanning dependencies of target download_ninja_source
        [  5%] Creating directories for 'download_ninja_source'
        [ 11%] Performing download step (download, verify and extract) for 'download_ninja_source'
        -- Downloading...
           dst='/tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-build/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
           timeout='none'
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        -- Retrying...
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        -- Retry after 5 seconds (attempt #2) ...
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        -- Retry after 5 seconds (attempt #3) ...
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        -- Retry after 15 seconds (attempt #4) ...
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        -- Retry after 60 seconds (attempt #5) ...
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        CMake Error at _skbuild/linux-aarch64-3.7/cmake-build/download_ninja_source-prefix/src/download_ninja_source-stamp/download-download_ninja_source.cmake:159 (message):
          Each download failed!

            error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---
                 error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---
                 error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---
                 error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---
                 error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---
                 error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---

        make[2]: *** [CMakeFiles/download_ninja_source.dir/build.make:91: download_ninja_source-prefix/src/download_ninja_source-stamp/download_ninja_source-download] Error 1
        make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/download_ninja_source.dir/all] Error 2
        make: *** [Makefile:130: all] Error 2
        Traceback (most recent call last):
          File "/tmp/pip-build-env-faydiajs/overlay/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 640, in setup
            cmkr.make(make_args, install_target=cmake_install_target, env=env)
          File "/tmp/pip-build-env-faydiajs/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 672, in make
            self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
          File "/tmp/pip-build-env-faydiajs/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 704, in make_impl
            "An error occurred while building with CMake.\n"

        An error occurred while building with CMake.
          Command:
            cmake --build . --target install --config Release --
          Install target:
            install
          Source directory:
            /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc
          Working directory:
            /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-build
        Please check the install target is valid and see CMake's output for more information.
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for ninja
    Building wheel for patchelf (pyproject.toml): started
    Building wheel for patchelf (pyproject.toml): still running...
    Building wheel for patchelf (pyproject.toml): finished with status 'done'
    Created wheel for patchelf: filename=patchelf-0.17.0.0-py2.py3-none-linux_aarch64.whl size=89520 sha256=5e63832ac7eca6c309c31b6ff160882b743312738233f0ec1ff6981cdf5963c7
    Stored in directory: /home/android/.cache/pip/wheels/d0/01/b7/c41a88c23b3dd0deaa1c686c725cdccb5f14e557c98587ba66
  Successfully built patchelf
  Failed to build ninja
  ERROR: Could not build wheels for ninja, which is required to install pyproject.toml-based projects
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Error: pip install exited with status code 0 Trying again with new tools...

And after this, it fails again... :(

Saurabh251-cmd commented 1 year ago

error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [289 lines of output] Collecting meson-python>=0.8.1 Using cached meson_python-0.11.0-py3-none-any.whl (63 kB) Collecting meson>=0.60.0 Using cached meson-0.64.1-py3-none-any.whl (895 kB) Collecting ninja Using cached ninja-1.11.1.tar.gz (27 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting patchelf Using cached patchelf-0.17.0.0.tar.gz (166 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting setuptools Using cached setuptools-65.6.3-py3-none-any.whl (1.2 MB) Collecting wheel Using cached wheel-0.38.4-py3-none-any.whl (36 kB) Collecting tomli>=1.0.0 Using cached tomli-2.0.1-py3-none-any.whl (12 kB) Collecting pyproject-metadata>=0.5.0 Using cached pyproject_metadata-0.6.1-py3-none-any.whl (7.4 kB) Collecting typing-extensions>=3.7.4 Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB) Collecting packaging>=19.0 Using cached packaging-22.0-py3-none-any.whl (42 kB) Building wheels for collected packages: ninja, patchelf Building wheel for ninja (pyproject.toml): started Building wheel for ninja (pyproject.toml): still running... Building wheel for ninja (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

    × Building wheel for ninja (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [236 lines of output]

        --------------------------------------------------------------------------------
        -- Trying "Ninja" generator
        --------------------------------
        ---------------------------
        ----------------------
        -----------------
        ------------
        -------
        --
        Not searching for unused variables given on the command line.
        CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
        -- Configuring incomplete, errors occurred!
        See also "/tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
        --
        -------
        ------------
        -----------------
        ----------------------
        ---------------------------
        --------------------------------
        -- Trying "Ninja" generator - failure
        --------------------------------------------------------------------------------

        --------------------------------------------------------------------------------
        -- Trying "Unix Makefiles" generator
        --------------------------------
        ---------------------------
        ----------------------
        -----------------
        ------------
        -------
        --
        Not searching for unused variables given on the command line.
        -- The C compiler identification is GNU 8.3.0
        -- Check for working C compiler: /usr/bin/cc
        -- Check for working C compiler: /usr/bin/cc -- works
        -- Detecting C compiler ABI info
        -- Detecting C compiler ABI info - done
        -- Detecting C compile features
        -- Detecting C compile features - done
        -- The CXX compiler identification is GNU 8.3.0
        -- Check for working CXX compiler: /usr/bin/c++
        -- Check for working CXX compiler: /usr/bin/c++ -- works
        -- Detecting CXX compiler ABI info
        -- Detecting CXX compiler ABI info - done
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        -- Configuring done
        -- Generating done
        -- Build files have been written to: /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_cmake_test_compile/build
        --
        -------
        ------------
        -----------------
        ----------------------
        ---------------------------
        --------------------------------
        -- Trying "Unix Makefiles" generator - success
        --------------------------------------------------------------------------------

        Configuring Project
          Working directory:
            /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-build
          Command:
            cmake /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-install -DPYTHON_VERSION_STRING:STRING=3.7.3 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-faydiajs/overlay/lib/python3.7/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/home/android/.KlipperScreen-env/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.7m -DPYTHON_LIBRARY:PATH=/usr/lib/arm-linux-gnueabihf/libpython3.7m.so -DPython_EXECUTABLE:PATH=/home/android/.KlipperScreen-env/bin/python3 -DPython_ROOT_DIR:PATH=/home/android/.KlipperScreen-env -DPython_INCLUDE_DIR:PATH=/usr/include/python3.7m -DPython_FIND_REGISTRY:STRING=NEVER -DPython3_EXECUTABLE:PATH=/home/android/.KlipperScreen-env/bin/python3 -DPython3_ROOT_DIR:PATH=/home/android/.KlipperScreen-env -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.7m -DPython3_FIND_REGISTRY:STRING=NEVER -DCMAKE_BUILD_TYPE:STRING=Release

        -- The C compiler identification is GNU 8.3.0
        -- The CXX compiler identification is GNU 8.3.0
        -- Check for working C compiler: /usr/bin/cc
        -- Check for working C compiler: /usr/bin/cc -- works
        -- Detecting C compiler ABI info
        -- Detecting C compiler ABI info - done
        -- Detecting C compile features
        -- Detecting C compile features - done
        -- Check for working CXX compiler: /usr/bin/c++
        -- Check for working CXX compiler: /usr/bin/c++ -- works
        -- Detecting CXX compiler ABI info
        -- Detecting CXX compiler ABI info - done
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        -- *********************************************
        -- Ninja Python Distribution
        --
        --   BUILD_VERBOSE             : OFF
        --   RUN_NINJA_TEST            : ON
        --
        --   ARCHIVE_DOWNLOAD_DIR      : /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-build
        --
        --     src_archive             : unix_source
        --     <src_archive>_url       : https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz
        --     <src_archive>_sha256    : 7ba84551f5b315b4270dc7c51adef5dff83a2154a3665a6c9744245c122dd0db
        -- *********************************************
        -- download_ninja_source - URL: https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz
        -- SuperBuild - CMAKE_BUILD_TYPE: Release
        -- Configuring done
        -- Generating done
        CMake Warning:
          Manually-specified variables were not used by the project:

            PYTHON_EXECUTABLE
            PYTHON_INCLUDE_DIR
            PYTHON_LIBRARY
            PYTHON_VERSION_STRING
            Python3_EXECUTABLE
            Python3_FIND_REGISTRY
            Python3_INCLUDE_DIR
            Python3_ROOT_DIR
            Python_EXECUTABLE
            Python_FIND_REGISTRY
            Python_INCLUDE_DIR
            Python_ROOT_DIR
            SKBUILD

        -- Build files have been written to: /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-build
        Scanning dependencies of target download_ninja_source
        [  5%] Creating directories for 'download_ninja_source'
        [ 11%] Performing download step (download, verify and extract) for 'download_ninja_source'
        -- Downloading...
           dst='/tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-build/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
           timeout='none'
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        -- Retrying...
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        -- Retry after 5 seconds (attempt #2) ...
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        -- Retry after 5 seconds (attempt #3) ...
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        -- Retry after 15 seconds (attempt #4) ...
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        -- Retry after 60 seconds (attempt #5) ...
        -- Using src='https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz'
        CMake Error at _skbuild/linux-aarch64-3.7/cmake-build/download_ninja_source-prefix/src/download_ninja_source-stamp/download-download_ninja_source.cmake:159 (message):
          Each download failed!

            error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---
                 error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---
                 error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---
                 error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---
                 error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---
                 error: downloading 'https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz' failed
                 status_code: 1
                 status_string: "Unsupported protocol"
                 log:
                 --- LOG BEGIN ---
                 Protocol "https" not supported or disabled in libcurl

          Closing connection -1

                 --- LOG END ---

        make[2]: *** [CMakeFiles/download_ninja_source.dir/build.make:91: download_ninja_source-prefix/src/download_ninja_source-stamp/download_ninja_source-download] Error 1
        make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/download_ninja_source.dir/all] Error 2
        make: *** [Makefile:130: all] Error 2
        Traceback (most recent call last):
          File "/tmp/pip-build-env-faydiajs/overlay/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 640, in setup
            cmkr.make(make_args, install_target=cmake_install_target, env=env)
          File "/tmp/pip-build-env-faydiajs/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 672, in make
            self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
          File "/tmp/pip-build-env-faydiajs/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 704, in make_impl
            "An error occurred while building with CMake.\n"

        An error occurred while building with CMake.
          Command:
            cmake --build . --target install --config Release --
          Install target:
            install
          Source directory:
            /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc
          Working directory:
            /tmp/pip-install-feqse54y/ninja_2177dbc41e134874b09a4dc0079e62fc/_skbuild/linux-aarch64-3.7/cmake-build
        Please check the install target is valid and see CMake's output for more information.
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for ninja
    Building wheel for patchelf (pyproject.toml): started
    Building wheel for patchelf (pyproject.toml): still running...
    Building wheel for patchelf (pyproject.toml): finished with status 'done'
    Created wheel for patchelf: filename=patchelf-0.17.0.0-py2.py3-none-linux_aarch64.whl size=89520 sha256=5e63832ac7eca6c309c31b6ff160882b743312738233f0ec1ff6981cdf5963c7
    Stored in directory: /home/android/.cache/pip/wheels/d0/01/b7/c41a88c23b3dd0deaa1c686c725cdccb5f14e557c98587ba66
  Successfully built patchelf
  Failed to build ninja
  ERROR: Could not build wheels for ninja, which is required to install pyproject.toml-based projects
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Error: pip install exited with status code 0 Trying again with new tools...

And after this, it fails again... :(

try to remove klipperscreen from menu like do 2 times then again try to install and avoid upper error,Just matter at last its supposed to written as KlipperScreen installation success

kahupihu commented 1 year ago

Debian 11 stable worked for me "easier method"

Saurabh251-cmd commented 1 year ago

Debian 11 stable worked for me "easier method"

glad to hear

Saurabh251-cmd commented 1 year ago

Debian 11 stable worked for me "easier method"

I found out issue, We have to use git clone https://github.com/th33xitus/kiauh.git for installation of klipperscreen else it will give error in official version!

kahupihu commented 1 year ago

I used kiauh only...

Saurabh251-cmd commented 1 year ago

hmmm ig then its about setup environment issue

kahupihu commented 1 year ago

I used the Chinese guy's tutorial labelled easier method on this git's readme. It worked first try!

Saurabh251-cmd commented 1 year ago

iseeee, Does your pts driver number changes after evry restart of phone?

kahupihu commented 1 year ago

I use tcpserialusb app (tcpuart)... So yes

Saurabh251-cmd commented 1 year ago

Ohh what kinda of app this is?

kahupihu commented 1 year ago

https://github.com/gaifeng8864/klipper-on-android/issues/2#issuecomment-1333007469

Saurabh251-cmd commented 1 year ago

gaifeng8864/klipper-on-android#2 (comment)

Thank you so much bud, Does we have to make changes in config and put command in terminal always after Evry phone restart?

kahupihu commented 1 year ago

Yeah The mcu should be /tmp/tcpserial

Saurabh251-cmd commented 1 year ago

Ah that's kinda work then like restart phone, make changes in config them put command then operation starts

kahupihu commented 1 year ago

Y can create a startup script in Debian

Saurabh251-cmd commented 1 year ago

Y can create a startup script in Debian

U got? BTW I need your help to setup tcpuart and camera setup for klipper Ender 3 v2

kahupihu commented 1 year ago

Im pretty sure contrab should work As for the app, the apk is available online and the baid rate is 250000 and the type should be server with port default (8080) Use an IP Camera app from play store and use the url http://ip:port/video in fluidd as a camera with mjepg adaptive. The port of the camera I use is 8083.

Saurabh251-cmd commented 1 year ago

Im pretty sure contrab should work As for the app, the apk is available online and the baid rate is 250000 and the type should be server with port default (8080) Use an IP Camera app from play store and use the url http://ip:port/video in fluidd as a camera with mjepg adaptive. The port of the camera I use is 8083.

Im sorry contrab mean? like I wanna auto start that command in debian. how u usually starts with these?

kahupihu commented 1 year ago

*crontab Search it up on Google... It'll help you better than me :P

Saurabh251-cmd commented 1 year ago

hehe thanks so u using that ?

kahupihu commented 1 year ago

Idk if it works... Rn I'm trying to solve connection issues during prints

Saurabh251-cmd commented 1 year ago

oh okay,Thanks