Giter VIP home page Giter VIP logo

Comments (2)

jmaupetit avatar jmaupetit commented on June 30, 2024

Which python version are you running (your title says 3.10 and your logs 3.8)? Which command did you type to install md2pdf?

from md2pdf.

Linjieqiang avatar Linjieqiang commented on June 30, 2024

image

`
D:\protocol\markdown>md2pdf README.md README.pdf


WeasyPrint could not import some external libraries. Please carefully follow the installation steps before reporting an issue:
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#installation
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#troubleshooting


Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Scripts\md2pdf.exe_main
.py", line 4, in
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Lib\site-packages\md2pdf_init
.py", line 7, in
from .core import md2pdf # noqa
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Lib\site-packages\md2pdf\core.py", line 5, in
from weasyprint import HTML, CSS
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Lib\site-packages\weasyprint_init_.py", line 387, in
from .css import preprocess_stylesheet # noqa isort:skip
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Lib\site-packages\weasyprint\css_init_.py", line 25, in
from . import computed_values, counters, media_queries
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Lib\site-packages\weasyprint\css\computed_values.py", line 11, in
from ..text.ffi import ffi, pango, units_to_double
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Lib\site-packages\weasyprint\text\ffi.py", line 428, in
gobject = _dlopen(
^^^^^^^^
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Lib\site-packages\weasyprint\text\ffi.py", line 417, in _dlopen
return ffi.dlopen(names[0]) # pragma: no cover
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Lib\site-packages\cffi\api.py", line 150, in dlopen
lib, function_cache = _make_ffi_library(self, name, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Lib\site-packages\cffi\api.py", line 832, in _make_ffi_library
backendlib = _load_backend_lib(backend, libname, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Rocky\AppData\Local\Programs\Python\Python311\Lib\site-packages\cffi\api.py", line 827, in _load_backend_lib
raise OSError(msg)
OSError: cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'
`

from md2pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.