How can images be added to Python Package Index documentation?

I have a module repository that features the module code, a README.md file and images used in the README.md file stored at the directory images/ (linked to in README.md using relative links). In...

How can i convert html to word docx in python?

import pypandoc output = pypandoc.convert_file('file.html', 'docx', outputfile="file1.docx") assert output == "" It is generating new docx file but ignoring styles. Can any one tell me how to...

Python: Conversion of scanned pdf to excel in python programming

I'm new to python development, is there any way to convert scanned PDF/image to Excel using Python. I tried with following method: Step 1: Install pypandoc library, pip install pypandoc and import...

unable to install pyspark

I am trying to install pyspark as this: python setup.py install I get this error: Could not import pypandoc - required to package PySpark pypandoc is installed already Any ideas how can I...

Remove \hypertarget from pandoc LaTex output

I am using pypandoc to convert a markdown file to LaTex. My markdown file has a header, for example: # Header Text # When pypandoc renders the file as a .tex file, this appears...

Numbered list is not preserved while converting html file to docx file using pypandoc

I am trying to convert my HTML file to docx using pypandoc library of python. But while converting HTML file to docx the numbered list is not preserving in docx file. Numbered List in HTML...

Error during building of exe using cx_freez

I am getting: "import error :No Module named 'PyQt5.QtGui'" during the build. The code snippet for setup.py file and .py is below. Please take a look and suggest changes i need to make to either...

I have problem using PIP to install codimension in the pycharm

I have a problem with downloading codimension package in the Pycharm. (I am using MacOS Mojave and Pycharm 2018.3.3.) I tried the ways it is told on the Codimension official website, however, it...

Can't install pyspark on PyCharm

I am trying to install pyspark on PyCharm but I end up with the following error: Collecting pyspark Using cached...

Pypandoc error , RuntimeError: Pandoc died with exitcode "47" during conversion: b'pdflatex not found

First time posting here,by the way, i've got an issue with this particular line of Python (3.6) code: file_converted = pandoc.convert_file(PATH_TO_ODT, 'pdf', format="odt", outputfile=file_name +...

How to convert dotx file to html file in python?

This is my code which failing at the moment import os import pypandoc source_dir = 'source' result_dir = 'result' for file in os.listdir(source_dir): output_files1 = [] source_file =...

pandoc: `RawBlock` in filter

What is the correct use of the RawBlock function in Pandoc filters? #!/usr/bin/env python from pandocfilters import toJSONFilter, Str, Para, Emph, Header, RawBlock import re def replace(key,...

Problem in building a docker image with pyspark lib

I'm trying to build a docker image using s2i and Jenkins. I have the following dependencies in the requirement.txt...

issue in installing packages using pip install

I need to install pyspark. It has a dependency on pypandoc. So I first do pip install pypandoc and then pip install pyspark and everything looks fine. However, based on some requirements I need to...

Errors when using buildozer to compile kivy/python 3.7 app into android apk on OSX - Silex & pypandoc

I've made an app using kivy and python 3.7, on OSX. It runs quite well within the PyCharm environment. However, buildozer keeps throwing up errors when I try to compile the app with buildozer. I...

Get list style types in MS Word add-in Javascript APIs

I am trying to use the Word add-in Javascript APIs to print the level and style type of lists in a document. I am using the following code: Word.run(function (context) { var range =...

pypandoc giving the error “RuntimeError: source_file is not a valid path

My Code: Error: $ C:/Users/abc/AppData/Local/Programs/Python/Python38-32/python.exe e:/PYTHON/pdf_word_converter.py Traceback (most recent call last): File "e:/PYTHON/pdf_word_converter.py",...

How to Install PyMuPDF on Heroku Django

I am trying to make a script that extracts Images from PDF and I have made a script in a Django Project and added pymupdf to the requirements.txt.I Have an Aptfile with Mupdf in it and...

pyPandoc md to html conversion lose code-block style

I'm trying to convert a string with markdown formatting into an html text = """ # To be approved This is a markdown editor, Type here your article body and use the tools or markdown code to style...

Flask cannot find Pandoc on Linux Server (nginx+uwsgi)

Hi just deployed my Flask application on my remote ubuntu server on Digital Ocean following this tutorial:...

Installing pySpark gives this error : ERROR: Command errored out with exit status 1

I am using Anaconda's Spyder Python 3.7 on Windows 10 I have Java C:\Users\GX>java -version java version "1.8.0_251" Java(TM) SE Runtime Environment (build 1.8.0_251-b08) Java HotSpot(TM) 64-Bit...

Sha256 Mismatch for pip install on fresh docker image

I am trying to create a docker image with a bunch of python libraries. On doing a pip install --no-cache-dir -r requirements.txt, it keeps failing with mismatched hashes for libraries, especially...

Pandoc: where are CSS files for syntax highlighting code?

I have a Markdown file, e.g. --- title: Question date: 2020-07-07 --- This is some code: ```python def add(a, b): return a+b ``` and I'd like to leverage the syntax highlighting of Pandoc....

Building a python egg, first letter is incorrectly removed from root file/folder name

I'm trying to build an egg for my python project using setuptools, however, whenever I build an egg all of the contents are built with the first letter if each file/folder removed. For example, my...

Not able to read file in Pypandoc

I am trying to covert a pdf to html using Pandoc. I have installed pandoc binary , added the environment variable path and then using import pypandoc import...

Coverting epub to html file using pypandoc

import pypandoc html=pypandoc.convert_file("corona.epub",'html',outputfile="corona1.html") assert html=="" I'm tried to convert an epub file into HTML file but the output is only text HTML....

Having trouble connecting to Databricks CLI

so I need to connect to Databricks CLI so that I could download a dbfs jar file on my local machine. To do that, I am using Databricks CLI. I tried to use this command and here's the message I...

Docx to pdf using pandoc in python

So I a quite new to Python so it may be a silly question but i can't seem to find the solution anywhere. I have a django site I am running it locally on my machine just for development. on the...

Failed to run xelatex when trying to convert jupyter notebook to pdf

I am trying to get my jupyter notebook to convert to pdf so I can submit it, and am having an awfully hard time doing so. I first installed nbconvert and pypandoc and then I downloaded the pandoc...

How can I convert a Markdown string to a DocX in Python?

I am getting markdown text from my API like this: { name:'Onur', surname:'Gule', biography:'## Computers I like **computers** so much. I wanna *be* a computer.', ...