openzim / python-libzim

Libzim binding for Python: read/write ZIM files in Python
https://pypi.org/project/libzim/
GNU General Public License v3.0
62 stars 20 forks source link

Failed install on Python 3.7.6 #90

Closed jekovcar closed 3 years ago

jekovcar commented 3 years ago

When I try to install by command: python-m pip install python-libzim-master

 Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing wheel metadata ... done
Building wheels for collected packages: libzim
  Building wheel for libzim (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
 Complete output (34 lines):
  [!] Warning: Couldn't find zim/*.h in ./include!
      Hint: You can install them from source from https://github.com/openzim/lib
zim
            or download a prebuilt release's headers into ./include/zim/*.h
            (or set CFLAGS='-I<library_path>/include')
  [!] Warning: Couldn't find libzim.so in ./lib or system library paths!    Hint
: You can install it from source from https://github.com/openzim/libzim
            or download a prebuilt libzim.so release into ./lib.
            (or set LDFLAGS='-L<library_path>/lib/[x86_64-linux-gnu]')
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\libzim
  copying libzim\reader.py -> build\lib.win32-3.7\libzim
  copying libzim\writer.py -> build\lib.win32-3.7\libzim
  copying libzim\__init__.py -> build\lib.win32-3.7\libzim
  running egg_info
  writing libzim.egg-info\PKG-INFO
  writing dependency_links to libzim.egg-info\dependency_links.txt
  writing top-level names to libzim.egg-info\top_level.txt
  reading manifest file 'libzim.egg-info\SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files matching '__pycache__\*' found anywhere
in distribution
  writing manifest file 'libzim.egg-info\SOURCES.txt'
  copying libzim\lib.cxx -> build\lib.win32-3.7\libzim
  copying libzim\lib.h -> build\lib.win32-3.7\libzim
  copying libzim\wrapper.cpp -> build\lib.win32-3.7\libzim
  copying libzim\wrapper.h -> build\lib.win32-3.7\libzim
  copying libzim\wrapper.pxd -> build\lib.win32-3.7\libzim
  copying libzim\wrapper.pyx -> build\lib.win32-3.7\libzim
  copying libzim\wrapper_api.h -> build\lib.win32-3.7\libzim
  running build_ext
  building 'libzim.wrapper' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for libzim
Failed to build libzim
ERROR: Could not build wheels for libzim which use PEP 517 and cannot be install
ed directly

What am I doing wrong?

kelson42 commented 3 years ago

@jekovcar Do I understand right, you try to install it on Windows?

jekovcar commented 3 years ago

Yes, on Windows 7x64

kelson42 commented 3 years ago

Like explained in the README we provide straight support only for macOS and GNU/Linux. For windows you need to compile the libzim manually what you have not done AFAIK. Windows support will be added at some point, see #91