WebFaction
Community site: login faq

I would like to use the excellent Weasyprint libary to generate PDF's from Python. It has a lot of dependencies and was a pain to install on my local system.

Is there any support or experience on installing this on Webfaction? I could only find the following guide:

http://lois.di-qual.net/blog/python-install-weasyprint-on-a-dedicated-webfaction-server/

This is the bash script:

https://gist.github.com/ldiqual/3438324

edit: to be clear, the guide is 2.5 y/o and the only one of its kind. It seems to rely on Python 2 rather than Python3. Would really love to see a more up-to-date guide with more comments before getting my hands dirty.

asked 03 Feb '15, 12:39

Snirp
226
accept rate: 50%

edited 03 Feb '15, 13:01


I just tested installing weasyprint for Python 3.4 on one of our CentOS6 servers, and was able to do so with minimal effort:

mkdir ~/tmp
export TMPDIR=~/tmp
pip3.4 install --user weasyprint

Hope that helps!

permanent link

answered 03 Feb '15, 20:43

seanf
12.2k41836
accept rate: 37%

That easy huh? Maybe I should install Webfaction as OS on my laptop :P

Will give it a try in 24 hours and report back with my experience. Thanks for the great support in advance.

(03 Feb '15, 21:46) Snirp

You're very welcome!

(03 Feb '15, 22:14) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×9
×3

question asked: 03 Feb '15, 12:39

question was seen: 2,972 times

last updated: 03 Feb '15, 22:14

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM