Comments (2)
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.
`
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)
- landscape PDF HOT 4
- Enable HTML header and footer HOT 14
- Are Markdown Tables supported? HOT 6
- Support for "Link to Section" HOT 6
- #questions
- ImportError: DLL load failed while importing _imaging
- CLI usage error: No module named md2pdf.__main__ HOT 4
- Long urls go out of PDF HOT 2
- Installation of v0.6 fails on Ubuntu HOT 2
- docs: how to change renderer style? (CSS) HOT 1
- can i use a local string instead of a file path?
- line break and font problem
- is able to support latex HOT 1
- Consider migrating to docopt-ng for Python 3.12 support
- Page Numbers? HOT 1
- OSError: cannot load library 'pango-1.0-0' HOT 2
- [Feature Reqeust] Plans on adding Orientation and Paper Format ?
- Release new version to PYPI
- Question: Is there a CSS option to keep new lines in code snippets? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md2pdf.