Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install using Arch Linux #2

Open
Finn10111 opened this issue Jul 27, 2022 · 1 comment
Open

Unable to install using Arch Linux #2

Finn10111 opened this issue Jul 27, 2022 · 1 comment

Comments

@Finn10111
Copy link

I was following the steps shown in the readme but while installing the python modules it failed with this:

[finn@desktop flipperzero-cli-tools]$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: future==0.18.2 in /home/finn/.local/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.18.2)
Collecting iso8601==0.1.16
  Using cached iso8601-0.1.16-py2.py3-none-any.whl (10 kB)
Collecting numpy==1.19.5
  Using cached numpy-1.19.5.zip (7.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting Pillow==8.3.1
  Using cached Pillow-8.3.1-cp310-cp310-linux_x86_64.whl
ERROR: Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from versions: none)
ERROR: No matching distribution found for pkg-resources==0.0.0

Even if I remove the line with pkg-resources==0.0.0 in requirements.txt I still get a very long error, last lines look like this:

      gcc: numpy/core/src/umath/extobj.c
      gcc: numpy/core/src/multiarray/getset.c
      gcc: numpy/core/src/common/python_xerbla.c
      gcc: build/src.linux-x86_64-3.10/numpy/core/src/umath/scalarmath.c
      gcc: numpy/core/src/multiarray/mapping.c
      gcc: numpy/core/src/multiarray/methods.c
      gcc: build/src.linux-x86_64-3.10/numpy/core/src/umath/matmul.c
      gcc: build/src.linux-x86_64-3.10/numpy/core/src/umath/clip.c
      error: Command "gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=1 -DHAVE_CBLAS -I/usr/local/include -I/usr/include -Ibuild/src.linux-x86_64-3.10/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.10 -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npymath -c build/src.linux-x86_64-3.10/numpy/core/src/multiarray/scalartypes.c -o build/temp.linux-x86_64-3.10/build/src.linux-x86_64-3.10/numpy/core/src/multiarray/scalartypes.o -MMD -MF build/temp.linux-x86_64-3.10/build/src.linux-x86_64-3.10/numpy/core/src/multiarray/scalartypes.o.d -std=c99" failed with exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects

I am really curious to get this working so if I can provide any further information please let me know. At the moment I don't know how to fix this. Thanks a lot!

@lomalkin
Copy link
Owner

lomalkin commented Aug 1, 2022

Hello! Unfortunately API compatibility was broken in newest versions of firmware, I means command screen_stream was removed from CLI, so frame buffer available only via RPC.
You can refer https://github.com/flipperdevices/flipperzero_protobuf_py to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants