Comments (11)
Looks like you need to install libjpeg
.
You'll need to add something like
RUN apt-get install -y --no-install-recommends libjpeg-dev
from pydf.
@samuelcolvin Thank you for your answer. but it did not work.
libjpeg-dev is already the newest version (1:1.5.2-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
from pydf.
yes, just found that, looking into it
from pydf.
Looks like it's caused by the old version of wkhtml we're using, see #22
from pydf.
Having this same issue too using docker python:3.9-slim-buster
from pydf.
Having this same issue too using docker python:3.9-slim-buster
write your own image.
FROM ubuntu:20.04
RUN apt-get update && \
apt-get install -y curl && \
apt-get install -y python3.8 && \
apt-get install -y python3-pip && \
apt-get install -y python3.8-dev && \
apt-get install -y wget && \
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb && \
apt-get install -y ./wkhtmltox_0.12.6-1.focal_amd64.deb
from pydf.
Having this same issue too using docker python:3.9-slim-buster
write your own image.
FROM ubuntu:20.04 RUN apt-get update && \ apt-get install -y curl && \ apt-get install -y python3.8 && \ apt-get install -y python3-pip && \ apt-get install -y python3.8-dev && \ apt-get install -y wget && \ wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb && \ apt-get install -y ./wkhtmltox_0.12.6-1.focal_amd64.deb
Hey thanks for the idea but i simply added the commit to my requirements file as this:
git+https://github.com/tutorcruncher/pydf.git@287c2d6041a5adb8be3671212e9324df23785675
This just imported the merge request to my libraries and it works correctly.
from pydf.
Hi! @samuelcolvin
Have you read last comment?
Can you merge request if it is working correctly
from pydf.
Sorry, is there a PR you want me to merge?
from pydf.
#22
I thought if you merge it. This error will be fixed
from pydf.
See my comment on #22, I'm still getting the same libjpeg
error when using that branch, and tests are failing with that error too.
from pydf.
Related Issues (19)
- Heroku-18 stack failure HOT 1
- Unable to write to destination on Linux — tmp dir should be a file HOT 5
- Exception while generating pdf HOT 3
- Image Isn't rendering HOT 3
- Not working with uvloop
- OSError - %1 is not a valid Win32 application HOT 3
- Can't use all command arguments via the API HOT 1
- How to render external files? HOT 1
- Consider keeping header case as given? HOT 1
- pages HOT 2
- Why it doesn't load images in PDF? HOT 1
- Can pydf generate from URL directly? HOT 4
- Rendering long pages into multiple ones bug HOT 1
- how to build wkhtmltopdf from source HOT 3
- error in windows HOT 3
- Trouble getting Windows version going.... HOT 8
- OSError: [Errno 8] Exec format error HOT 5
- wkhtmltopdf update HOT 1
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 pydf.