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

BUG: pdf_tools.figure_data is not working for default png #3

Open
aksakalli opened this issue Mar 29, 2019 · 2 comments
Open

BUG: pdf_tools.figure_data is not working for default png #3

aksakalli opened this issue Mar 29, 2019 · 2 comments

Comments

@aksakalli
Copy link

I ran pdf_reports in Docker

My Dockerfile:

FROM continuumio/miniconda3

RUN apt-get update --fix-missing \
    && apt-get install -y  \
         build-essential \
         libcairo2 \
         libpango-1.0-0 \
         libpangocairo-1.0-0 \
         libgdk-pixbuf2.0-0 \
         libffi-dev \
         shared-mime-info \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

ADD environment.yml /tmp/environment.yml
RUN conda env update -n base -f /tmp/environment.yml

WORKDIR /opt/pdf-report
ADD . .

CMD ["python", "main.py"]

environment.yml:

name: report-pdf

dependencies:
  - python=3.7
  - matplotlib
  - pip:
    - pdf_reports

example_with_plot_and_tables is not working for default png format. However it works when I changed it to df_tools.figure_data(figure, (6, 4), fmt='svg').

@Zulko
Copy link
Member

Zulko commented Mar 29, 2019

What is the error?

@aksakalli
Copy link
Author

There is no plot image in the pdf file.

There is only a warning message:

UserWarning: There are known rendering problems and missing features with cairo < 1.15.4. WeasyPrint may work with older versions, but please read the note about the needed cairo version on the "Install" page of the documentation before reporting bugs. http://weasyprint.readthedocs.io/en/latest/install.html
  'There are known rendering problems and missing features with '

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

2 participants