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

Perhaps a simple question, but which version was flexbox support implemented in? #658

Closed
gaoag opened this issue Jul 23, 2018 · 6 comments
Closed

Comments

@gaoag
Copy link

gaoag commented Jul 23, 2018

Hi,

I have the latest WeasyPrint version from pip (0.42.3), but I do not believe it has flexbox support. I tried the minimal example provided at #613 and it indicated

WARNING: Ignored `display: flex` at 22:9, invalid value.
WARNING: Ignored `flex-flow: row` at 23:9, unknown property.

How am I supposed to install the version of WeasyPrint that has flexbox support, as referenced in #579 ?

@gaoag
Copy link
Author

gaoag commented Jul 23, 2018

For additional context, this (as well as my personal examples) renders properly in browser

@JenkinsDev
Copy link

JenkinsDev commented Jul 23, 2018

@gaoag I hit this exact problem right around the moment you posted this issue. I was able to get everything working by updating the library to the latest version on the master branch, so it looks like those changes haven't been published yet.

I'm rather new to WeasyPrint so I'm not entirely sure of the stability of the master branch, but I can confirm that everything seems to be running fine with flexbox support.

@gaoag
Copy link
Author

gaoag commented Jul 23, 2018

Thanks @JenkinsDev . Mind telling me how you updated the library? Did you simply replace all the files in the 'weasyprint' folder of your python packages with the files in the master branch?

@liZe
Copy link
Member

liZe commented Jul 24, 2018

Flexbox support is only in master branch, no release has been done yet.

Next release will include a lot of CSS features (flexbox, named strings…), drops Python 2 support and improves speed. It will probably be ready during September. Follow the 43 milestone to know what's going on!

(And if you would like to discuss the next features of your dreams, please add a comment to #635, I'll be glad to make WeasyPrint fit your needs!)

@liZe liZe closed this as completed Jul 24, 2018
@JenkinsDev
Copy link

@gaoag Remove any previous versions you have installed, then install with pip install git+git://github.com/Kozea/WeasyPrint.git@master#egg=WeasyPrint. If you want to reference a specific commit just replace master with the commit hash

@jeffharrington
Copy link

For anybody that tries @JenkinsDev's solution above and receives the following error:

Running setup.py (path:/tmp/pip-install-_bfz_uax/Weasyprint/setup.py) egg_info for package Weasyprint produced metadata for project name unknown. Fix your #egg=Weasyprint fragments.

Try running pip install --upgrade pip setuptools wheel beforehand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants