Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error occuring #1

Open
Punith1997 opened this issue Jul 29, 2020 · 2 comments
Open

error occuring #1

Punith1997 opened this issue Jul 29, 2020 · 2 comments

Comments

@Punith1997
Copy link

returning an error '"return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2212' in position 4306: character maps to "

@gunjannandy
Copy link
Owner

@Punith1997 Can you share more information about the issue you are facing?
Share download_links.py, and your system information (OS, Python version, environment, etc)

@ts23944
Copy link

ts23944 commented Apr 24, 2022

@Punith1997 Can you share more information about the issue you are facing? Share download_links.py, and your system information (OS, Python version, environment, etc)
PS C:\Users\D4yDr34m\Downloads\tutorial-pdf-downloader-master\tutorial-pdf-downloader-master> python main.py -t
Traceback (most recent call last):
File "C:\Users\D4yDr34m\Downloads\tutorial-pdf-downloader-master\tutorial-pdf-downloader-master\main.py", line 7, in
import requests, time, os, sys, weasyprint, argparse, fnmatch, shutil
File "C:\Users\D4yDr34m\AppData\Roaming\Python\Python310\site-packages\weasyprint_init_.py", line 325, in
from .css import preprocess_stylesheet # noqa isort:skip
File "C:\Users\D4yDr34m\AppData\Roaming\Python\Python310\site-packages\weasyprint\css_init_.py", line 27, in
from . import computed_values, counters, media_queries
File "C:\Users\D4yDr34m\AppData\Roaming\Python\Python310\site-packages\weasyprint\css\computed_values.py", line 16, in
from ..text.ffi import ffi, pango, units_to_double
File "C:\Users\D4yDr34m\AppData\Roaming\Python\Python310\site-packages\weasyprint\text\ffi.py", line 404, in
gobject = _dlopen(
File "C:\Users\D4yDr34m\AppData\Roaming\Python\Python310\site-packages\weasyprint\text\ffi.py", line 391, in _dlopen
return ffi.dlopen(names[0]) # pragma: no cover
File "C:\Users\D4yDr34m\AppData\Roaming\Python\Python310\site-packages\cffi\api.py", line 150, in dlopen
lib, function_cache = _make_ffi_library(self, name, flags)
File "C:\Users\D4yDr34m\AppData\Roaming\Python\Python310\site-packages\cffi\api.py", line 832, in _make_ffi_library
backendlib = _load_backend_lib(backend, libname, flags)
File "C:\Users\D4yDr34m\AppData\Roaming\Python\Python310\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'

I got above error show up when I try to download pdf with :python main.py -t
Please help me to solve this problem.. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants