gunjannandy / tutorial-pdf-downloader

Downloads tutorial pdf from javatpoint, tutorialspoint and other websites
MIT License
11 stars 3 forks source link

error occuring #1

Open Punith1997 opened 4 years ago

Punith1997 commented 4 years ago

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 commented 4 years ago

@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 commented 2 years ago

@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