Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to install cairosvg #5694

Closed
pmyjudy opened this issue Aug 5, 2018 · 4 comments
Closed

fail to install cairosvg #5694

pmyjudy opened this issue Aug 5, 2018 · 4 comments
Labels
auto-locked Outdated issues that have been locked by automation resolution: wrong project Should be reported elsewhere type: support User Support

Comments

@pmyjudy
Copy link

pmyjudy commented Aug 5, 2018

  • Pip version: 9.0.3
  • Python version: 2.7
  • Operating system: windows10

Hello!
When I printed 'pip install cairosvg' in cmd, something wrong happened!

:\Users\蝌蚪眼>pip install cairosvg
Collecting cairosvg
Using cached https://files.pythonhosted.org/packages/9d/82/0ec25a0460182aef0c57fa72926986ee091fb0689f85d0133486e5ab2059/CairoSVG-2.1.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "c:\users\蝌蚪眼\appdata\local\temp\pip-build-idknd4\cairosvg\setup.py", line 24, in
with open(init_path, 'r', encoding='utf-8') as fd:
TypeError: 'encoding' is an invalid keyword argument for this function

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in c:\users\蝌蚪眼\appdata\local\temp\pip-build-idknd4\cairosvg\

Could someone help me? Thanks a lot!

@benoit-pierre
Copy link
Member

That's because the package support Python 3.4+ only.

@pradyunsg pradyunsg added the type: support User Support label Aug 12, 2018
@pradyunsg
Copy link
Member

Hi @pmyjudy!

As @benoit-pierre points out, https://cairosvg.org/ says that CairoSVG is a 3.4+ only library. This means you can't use it with Python 2.7.

I suggest you file an issue over at https://github.com/Kozea/CairoSVG about this; possibly requesting them to have some way to print a better error message when user uses a not-supported Python package (perhaps by using better metadata and conditionals in setup.py).


I don't think there's anything actionable from pip's end on this issue and so I'll go ahead and close this. You can still comment on this issue even after it's closed. :)

@pradyunsg pradyunsg added the resolution: wrong project Should be reported elsewhere label Aug 12, 2018
@pmyjudy
Copy link
Author

pmyjudy commented Aug 16, 2018

The book "Data Wrangling with Python" says it works for python 2.7. I don't know whether if it has been updated. Anyway, thanks a lot! @benoit-pierre @pradyunsg

@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation resolution: wrong project Should be reported elsewhere type: support User Support
Projects
None yet
Development

No branches or pull requests

3 participants