Tesena-smart-testing/WatchUI

error on install

Closed this issue · 6 comments

on pip install watch, I've got the following error, could you please give some help?

Building wheels for collected packages: PyMuPDF
  Building wheel for PyMuPDF (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-universal2-3.10
      creating build/lib.macosx-10.9-universal2-3.10/fitz
      copying fitz/__init__.py -> build/lib.macosx-10.9-universal2-3.10/fitz
      copying fitz/fitz.py -> build/lib.macosx-10.9-universal2-3.10/fitz
      copying fitz/utils.py -> build/lib.macosx-10.9-universal2-3.10/fitz
      copying fitz/__main__.py -> build/lib.macosx-10.9-universal2-3.10/fitz
      running build_ext
      building 'fitz._fitz' extension
      creating build/temp.macosx-10.9-universal2-3.10
      creating build/temp.macosx-10.9-universal2-3.10/fitz
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/usr/local/include/mupdf -I/usr/local/include -Imupdf/thirdparty/freetype/include -I/usr/local/include/freetype2 -I/usr/X11R6/include/freetype2 -I/opt/homebrew/include -I/opt/homebrew/include/mupdf -I/opt/homebrew/include/freetype2 -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c fitz/fitz_wrap.c -o build/temp.macosx-10.9-universal2-3.10/fitz/fitz_wrap.o
      fitz/fitz_wrap.c:2755:10: fatal error: 'fitz.h' file not found
      #include <fitz.h>
               ^~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

Hi, looks like you are using Python 3.10. Some libraries may not be available yet for this version. Try to use 3.9 - that should help. Pls, let us know.

hi @radekBednarik, thanks for answer. This works on Windows, but not on Mac OS, is there a specific installation for Mac OS?

@thedude4ever Unfortunately, I do not have a Mac, so I cannot test / debug this. @marcel-veselka could you help, maybe with your machine? 😉

Tester on my machine and all seems to be ok.

Ready to help with troubleshooting but I need more detail.

My steps (which worked):

  1. clone repository https://github.com/Tesena-smart-testing/WatchUI

  2. install Watch UI:

pip install WatchUI
  1. Run robot tests
robot tests/test.robot

Note: teseract tests were failing (as expected) as I didn't set it up.

We will need more details to troubleshoot.

Could you please provide some more details?
Please try to install

My python verison: Python 3.9.6

My machine parameters:

  Model Name:	MacBook Pro
  Model Identifier:	MacBookPro17,1
  Chip:	Apple M1
  Total Number of Cores:	8 (4 performance and 4 efficiency)
  Memory:	16 GB
  System Firmware Version:	7459.101.2
  OS Loader Version:	7459.101.2

My OS version: macOS Monterey

Stale issue message