question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2.10.4 installation / FATAL - Cant install CairoSVG

See original GitHub issue

I could install 2.10.4 a few weeks ago on my prod server. PnCevennes got an error when trying to install it yesterday. So I tried to install it on my test server and got the same error.

Install Geotrek python dependencies...
Could not setup python environment !

install.log ends with :

TypeError: 'encoding' is an invalid keyword argument for this function
An error occurred when trying to install CairoSVG 2.0.0rc2. Look above this message for any errors that were output by easy_install.
While:
  Installing django.
  Getting distribution for 'CairoSVG>=0.4.1'.
Error: Couldn't install: CairoSVG 2.0.0rc2
make: *** [env_standalone] Erreur 1
+ success=2
+ '[' 2 -ne 0 ']'
+ exit_error 3 'Could not setup python environment !'
+ code=3
+ shift
+ echo_error 'Could not setup python environment !'
+ set +x
+ echo '(More details in install.log)'
(More details in install.log)
+ exit 3

@amandine-sahl could make it work by replacing

eggs/WeasyPrint-0.23-py2.7.egg/EGG-INFO/requires.txt:5:CairoSVG==1.0.20

by

eggs/WeasyPrint-0.23-py2.7.egg/EGG-INFO/requires.txt:5:CairoSVG>=0.4.1

But not sure it is a clean solution.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gutardcommented, Jun 21, 2016

Know problem in Weasyprint : https://github.com/Kozea/WeasyPrint/pull/323 Just need to upgrade Weasyprint to version 0.29 that fixes it.

0reactions
camillemonchicourtcommented, Aug 10, 2016

Fixed in 2.11.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python 3.x - cairosvg installed but ImportError - Stack Overflow
I just installed cairosvg and it seems to have worked. If i try to install again it says: $ pip install cairosvg. Requirement...
Read more >
CHANGELOG — Geotrek 2.94.0+dev documentation
Add mobile nginx configuration directly on Geotrek-admin. Bug fixes ... Fix svg's fixtures wich cannot be tranform as png with cairosvg.
Read more >
Documentation - CairoSVG
How to use CairoSVG? Installation. CairoSVG is available on PyPI, you can install it with pip: $ pip3 install cairosvg.
Read more >
MidnightBSD - DistroWatch.com
All coming pre-installed and ready-to-run with Ubuntu or openSUSE. ... freetype2-2.10.4.mport ... p5-Test-Fatal-0.014.mport
Read more >
Browse Portage - Gentoo Linux Howtos
375359, Applications, scheme, UNCONFIRMED, dev-scheme/slib ebuild scripts cannot find installed drscheme, 2013-02-06 06:05:35.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found