adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
437 stars 327 forks source link

It is no longer possible to install from 8.44.0. #865

Closed nopnop2002 closed 2 days ago

nopnop2002 commented 6 days ago

Board Name

Luckfox Pico Pro

Steps

I was able to install 8.43.0 on my board.

$ pip list
Package                                  Version
---------------------------------------- -------
Adafruit-Blinka                          8.43.0
adafruit-circuitpython-bmp280            3.3.2
adafruit-circuitpython-busdevice         5.2.9
adafruit-circuitpython-connectionmanager 3.1.0
adafruit-circuitpython-register          1.9.18
adafruit-circuitpython-requests          4.0.0
adafruit-circuitpython-ticks             1.0.13
adafruit-circuitpython-typing            1.10.3
adafruit-circuitpython-wiznet5k          7.1.2
Adafruit-PlatformDetect                  3.69.0
Adafruit-PureIO                          1.1.11

From 8.44.0, the installation method has changed from requirements.txt to setup.py, and it can no longer be installed.

$ python3 -m pip install Adafruit-Blinka==8.44.0
Defaulting to user installation because normal site-packages is not writeable
Collecting Adafruit-Blinka==8.44.0
  Downloading Adafruit_Blinka-8.44.0-py3-none-any.whl.metadata (5.4 kB)
Collecting Adafruit-PlatformDetect>=3.70.1 (from Adafruit-Blinka==8.44.0)
  Using cached Adafruit_PlatformDetect-3.71.0-py3-none-any.whl.metadata (3.8 kB)
Requirement already satisfied: Adafruit-PureIO>=1.1.7 in ./.local/lib/python3.10/site-packages (from Adafruit-Blinka==8.44.0) (1.1.11)
Collecting binho-host-adapter>=0.1.6 (from Adafruit-Blinka==8.44.0)
  Using cached binho_host_adapter-0.1.6-py3-none-any.whl.metadata (2.0 kB)
Requirement already satisfied: pyftdi>=0.40.0 in ./.local/lib/python3.10/site-packages (from Adafruit-Blinka==8.44.0) (0.55.4)
Collecting numpy>=1.21.5 (from Adafruit-Blinka==8.44.0)
  Using cached numpy-2.0.0.tar.gz (18.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install backend dependencies did not run successfully.
  x exit code: 1
  mq> [139 lines of output]
      Collecting patchelf>=0.11.0
        Using cached patchelf-0.17.2.1-py2.py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl.metadata (3.3 kB)
      Collecting ninja>=1.8.2
        Using cached ninja-1.11.1.1.tar.gz (132 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'
      Using cached patchelf-0.17.2.1-py2.py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl (381 kB)
      Building wheels for collected packages: ninja
        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.
        x exit code: 1
        mq> [114 lines of output]
            /tmp/pip-build-env-ny7bdnlh/overlay/local/lib/python3.10/dist-packages/setuptools_scm/git.py:312: UserWarning: git archive did not support describe output
              warnings.warn("git archive did not support describe output")
            /tmp/pip-build-env-ny7bdnlh/overlay/local/lib/python3.10/dist-packages/setuptools_scm/git.py:331: UserWarning: unprocessed git archival found (no export subst applied)
              warnings.warn("unprocessed git archival found (no export subst applied)")

            --------------------------------------------------------------------------------
            -- 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-h70lu2ga/ninja_6b0da81da1554058b03ba8cdb7a20d2d/_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 10.5.0
            -- Detecting C compiler ABI info
            -- Detecting C compiler ABI info - done
            -- Check for working C compiler: /usr/bin/cc - skipped
            -- Detecting C compile features
            -- Detecting C compile features - done
            -- The CXX compiler identification is GNU 11.4.0
            -- Detecting CXX compiler ABI info
            -- Detecting CXX compiler ABI info - failed
            -- Check for working CXX compiler: /usr/bin/c++
            -- Check for working CXX compiler: /usr/bin/c++ - broken
            CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message):
              The C++ compiler

                "/usr/bin/c++"

              is not able to compile a simple test program.

              It fails with the following output:

                Change Dir: /tmp/pip-install-h70lu2ga/ninja_6b0da81da1554058b03ba8cdb7a20d2d/_cmake_test_compile/build/CMakeFiles/CMakeTmp

                Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_f5fc8/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_f5fc8.dir/build.make CMakeFiles/cmTC_f5fc8.dir/build
                gmake[1]: Entering directory '/tmp/pip-install-h70lu2ga/ninja_6b0da81da1554058b03ba8cdb7a20d2d/_cmake_test_compile/build/CMakeFiles/CMakeTmp'
                Building CXX object CMakeFiles/cmTC_f5fc8.dir/testCXXCompiler.cxx.o
                /usr/bin/c++    -o CMakeFiles/cmTC_f5fc8.dir/testCXXCompiler.cxx.o -c /tmp/pip-install-h70lu2ga/ninja_6b0da81da1554058b03ba8cdb7a20d2d/_cmake_test_compile/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
                Linking CXX executable cmTC_f5fc8
                /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f5fc8.dir/link.txt --verbose=1
                /usr/bin/c++ CMakeFiles/cmTC_f5fc8.dir/testCXXCompiler.cxx.o -o cmTC_f5fc8
                /usr/bin/ld: cannot find -lgcc: No such file or directory
                collect2: error: ld returned 1 exit status
                gmake[1]: *** [CMakeFiles/cmTC_f5fc8.dir/build.make:99: cmTC_f5fc8] Error 1
                gmake[1]: Leaving directory '/tmp/pip-install-h70lu2ga/ninja_6b0da81da1554058b03ba8cdb7a20d2d/_cmake_test_compile/build/CMakeFiles/CMakeTmp'
                gmake: *** [Makefile:127: cmTC_f5fc8/fast] Error 2

              CMake will not be able to correctly generate this project.
            Call Stack (most recent call first):
              CMakeLists.txt:4 (ENABLE_LANGUAGE)

            -- Configuring incomplete, errors occurred!
            See also "/tmp/pip-install-h70lu2ga/ninja_6b0da81da1554058b03ba8cdb7a20d2d/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
            See also "/tmp/pip-install-h70lu2ga/ninja_6b0da81da1554058b03ba8cdb7a20d2d/_cmake_test_compile/build/CMakeFiles/CMakeError.log".
            --
            -------
            ------------
            -----------------
            ----------------------
            ---------------------------
            --------------------------------
            -- Trying 'Unix Makefiles' generator - failure
            --------------------------------------------------------------------------------

                            ********************************************************************************
                            scikit-build could not get a working generator for your system. Aborting build.

                            Building Linux wheels for Python 3.10 requires a compiler (e.g gcc).
            But scikit-build does *NOT* know how to install it on ubuntu

            To build compliant wheels, consider using the manylinux system described in PEP-513.
            Get it with "dockcross/manylinux-x86" docker image:

              https://github.com/dockcross/dockcross#readme

            For more details, please refer to scikit-build documentation:

              http://scikit-build.readthedocs.io/en/latest/generators.html#linux

                            ********************************************************************************
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for ninja
      Failed to build ninja
      ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (ninja)
      [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 backend dependencies did not run successfully.
x exit code: 1
mq> See above for output.

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

Description

8.43.0 can be installed.

$ python3 -m pip install Adafruit-Blinka==8.43.0
Defaulting to user installation because normal site-packages is not writeable
Collecting Adafruit-Blinka==8.43.0
  Using cached Adafruit_Blinka-8.43.0-py3-none-any.whl.metadata (5.3 kB)
Requirement already satisfied: Adafruit-PlatformDetect>=3.62.0 in ./.local/lib/python3.10/site-packages (from Adafruit-Blinka==8.43.0) (3.69.0)
Requirement already satisfied: Adafruit-PureIO>=1.1.7 in ./.local/lib/python3.10/site-packages (from Adafruit-Blinka==8.43.0) (1.1.11)
Requirement already satisfied: pyftdi>=0.40.0 in ./.local/lib/python3.10/site-packages (from Adafruit-Blinka==8.43.0) (0.55.4)
Requirement already satisfied: adafruit-circuitpython-typing in ./.local/lib/python3.10/site-packages (from Adafruit-Blinka==8.43.0) (1.10.3)
Requirement already satisfied: pyusb!=1.2.0,>=1.0.0 in ./.local/lib/python3.10/site-packages (from pyftdi>=0.40.0->Adafruit-Blinka==8.43.0) (1.2.1)
Requirement already satisfied: pyserial>=3.0 in ./.local/lib/python3.10/site-packages (from pyftdi>=0.40.0->Adafruit-Blinka==8.43.0) (3.5)
Requirement already satisfied: adafruit-circuitpython-busdevice in ./.local/lib/python3.10/site-packages (from adafruit-circuitpython-typing->Adafruit-Blinka==8.43.0) (5.2.9)
Requirement already satisfied: adafruit-circuitpython-requests in ./.local/lib/python3.10/site-packages (from adafruit-circuitpython-typing->Adafruit-Blinka==8.43.0) (4.0.0)
Requirement already satisfied: typing-extensions~=4.0 in ./.local/lib/python3.10/site-packages (from adafruit-circuitpython-typing->Adafruit-Blinka==8.43.0) (4.12.2)
Requirement already satisfied: Adafruit-Circuitpython-ConnectionManager in ./.local/lib/python3.10/site-packages (from adafruit-circuitpython-requests->adafruit-circuitpython-typing->Adafruit-Blinka==8.43.0) (3.1.0)
Using cached Adafruit_Blinka-8.43.0-py3-none-any.whl (350 kB)
Installing collected packages: Adafruit-Blinka
Successfully installed Adafruit-Blinka-8.43.0

Updating from 8.43.0 to 8.45.0 is not possible.

$ python3 -m pip install -U Adafruit-Blinka
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: Adafruit-Blinka in ./.local/lib/python3.10/site-packages (8.43.0)
Collecting Adafruit-Blinka
  Using cached adafruit_blinka-8.45.0.tar.gz (241 kB)
  Preparing metadata (setup.py) ... done
Collecting Adafruit-PlatformDetect>=3.70.1 (from Adafruit-Blinka)
  Using cached Adafruit_PlatformDetect-3.71.0-py3-none-any.whl.metadata (3.8 kB)
Requirement already satisfied: Adafruit-PureIO>=1.1.7 in ./.local/lib/python3.10/site-packages (from Adafruit-Blinka) (1.1.11)
Requirement already satisfied: adafruit-circuitpython-typing in ./.local/lib/python3.10/site-packages (from Adafruit-Blinka) (1.10.3)
Collecting binho-host-adapter>=0.1.6 (from Adafruit-Blinka)
  Using cached binho_host_adapter-0.1.6-py3-none-any.whl.metadata (2.0 kB)
Collecting numpy>=1.21.5 (from Adafruit-Blinka)
  Using cached numpy-2.0.0.tar.gz (18.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... error
  error: subprocess-exited-with-error

Additional information

No response

nopnop2002 commented 2 days ago
            -- Detecting CXX compiler ABI info
            -- Detecting CXX compiler ABI info - failed
            -- Check for working CXX compiler: /usr/bin/c++
            -- Check for working CXX compiler: /usr/bin/c++ - broken

c++ was not installed correctly. I solved it by reinstalling c++.