env/src/pdfkit clone Installing collected packages: pdfkit Running setup.py develop for pdfkit Complete output from command /home/strella/frappe-bench/env/bin/python -c "import setuptools, tokenize _file_='/home/strella/frappe-bench/env/src/pdfkit/setup.py' f=getattr(tokenize, 'open', open)(_file_) code=f.read().replace('\r\n', '\n') f.close() exec(compile(code, _file_, 'exec'))" develop -no-deps: Traceback (most recent call last): File "", line 1, in File "/home/strella/frappe-bench/env/src/pdfkit/setup.py", line 51, in 'Topic :: Utilities' File "/usr/lib/python2.7/distutils/core.py", line 137, in setup ok = dist.parse_command_line() File "/home/strella/frappe-bench/env/local/lib/python2.7/site-packages/setuptools/dist.py", line 363, in parse_command_line result = _Distribution.parse_command_line(self) File "/usr/lib/python2.7/distutils/dist.py", line 467, in parse_command_line args = self._parse_command_opts(parser, args) File "/home/strella/frappe-bench/env/local/lib/python2.7/site-packages/setuptools/dist.py", line 674, in _parse_command_opts nargs = _Distribution._parse_command_opts(self, parser, args) File "/usr/lib/python2.7/distutils/dist.py", line 523, in _parse_command_opts cmd_class = self.get_command_class(command) File "/home/strella/frappe-bench/env/local/lib/python2.7/site-packages/setuptools/dist.py", line 495, in get_command_class self.cmdclass = cmdclass = ep.load() File "/home/strella/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/_init_.py", line 2303, in load return self.resolve() File "/home/strella/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/_init_.py", line 2309, in resolve module = _import_(self.module_name, fromlist=, level=0) File "/home/strella/frappe-bench/env/local/lib/python2.7/site-packages/setuptools/command/develop.py", line 11, in from _install import easy_install File "/home/strella/frappe-bench/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 49, in from setuptools.py27compat import rmtree_safe File "/home/strella/frappe-bench/env/local/lib/python2.7/site-packages/setuptools/py27compat.py", line 7, in import six ImportError: No module named sixĬomplete output from command /home/strella/frappe-bench/env/bin/python -c "import setuptools, tokenize _file_='/home/strella/frappe-bench/env/src/pdfkit/setup.py' f=getattr(tokenize, 'open', open)(_file_) code=f.read().replace('\r\n', '\n') f.close() exec(compile(code, _file_, 'exec'))" develop -no-deps:įile "/home/strella/frappe-bench/env/src/pdfkit/setup.py", line 51, in įile "/usr/lib/python2.7/distutils/core.py", line 137, in setupįile "/home/strella/frappe-bench/env/local/lib/python2.7/site-packages/setuptools/dist.py", line 363, in parse_command_line This can be done by executing the following code in your editor beforehand./env/bin/pip install -e git+ Obtaining pdfkit from git+ Updating. While implementing if your editor throws an error like “ImportError: No module named pdfkit” try to configure the path in your current directory. Remember to add the path wkhtmltopdf to environment variables to avoid errors. It is an open-source command line tool used to render HTML into PDF and various image formats using the Qt WebKit rendering engine.įor Debian/Ubuntu: $ sudo apt-get install wkhtmltopdfįor macOS $ brew install homebrew/cask/wkhtmltopdf Once the library is installed, install wkhtmltopdf. $ pip install pdfkit (or pip3 for python3) To install PDFKit below are the commands to be used. ![]() Prerequisites for Converting HTML to PDFīefore we start with the code python, make sure to install PDFKit. ![]() It is the easiest way to convert any webpage into a PDF using Python. In this article let’s learn about a PDFKit, which is a PDF document generation open-source library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |