deeplook / svglib

Read SVG files and convert them to other formats.
GNU Lesser General Public License v3.0
307 stars 79 forks source link

Error on install svglib #375

Closed Zhonglin-Niu closed 1 year ago

Zhonglin-Niu commented 1 year ago
Building wheels for collected packages: svglib, pycairo
Building wheel for svglib (setup.py) ... done
Created wheel for svglib: filename=svglib-1.1.0-py3-none-any.whl size=30114 sha256=ef9885f338e9a6243a4644c4ab0009d2e630177aeef88cb7763491585515ee37
Stored in directory: /tmp/.unburden-xl34/cache/pip/wheels/fb/d5/52/7f88b82f5b06ea70a285cfc5f8a3d54a034494249879376edf
Building wheel for pycairo (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /home/xl34/Desktop/temp/venv/bin/python3 /tmp/tmp08vyddt2 build_wheel /tmp/tmpode_jb81
cwd: /tmp/pip-install-btsd8sh4/pycairo
Complete output (15 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-38/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-38/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-cpython-38/cairo
running build_ext
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for pycairo
Successfully built svglib
Failed to build pycairo
ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly

Should pin the version pip install reportlab==3.5.67

New version can't be use.

github-actions[bot] commented 1 year ago

Thank you for raising your first issue! Your help to improve svglib is much appreciated!

claudep commented 1 year ago

I guess this is an issue related to reportlab 4. The failed installation is related to your system, it might succeed on other systems with cairo installed, so I don't see us limiting ourselves to reportlab<4. I guess the best solution is that you pin reportlab in your dependencies.