Giter Club home page Giter Club logo

docker-wkhtmltopdf's People

Contributors

bonashen avatar helox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-wkhtmltopdf's Issues

Options replace array not converted correctly

mikehaertl/phpwkhtmltopdf#107

When adding an options array like:
$options = array( 'header-html' => $header_url, // new File(file_get_contents($header_url), '.html'), 'footer-html' => $footer_url, //new File(file_get_contents($footer_url), '.html'), 'replace' => array( 'username' => 'My username' ), );

The replace gets added to the command like:
--replace "{u’“’”’username’“‘”’: u’“’”’My username’“‘”’}"

UnboundLocalError: local variable 'options' referenced before assignment

web_1 | [2018-10-23 03:16:07 +0000] [1] [INFO] Starting gunicorn 19.7.1
web_1 | [2018-10-23 03:16:07 +0000] [1] [INFO] Listening at: http://0.0.0.0:80 (1)
web_1 | [2018-10-23 03:16:07 +0000] [1] [INFO] Using worker: sync
web_1 | [2018-10-23 03:16:07 +0000] [8] [INFO] Booting worker with pid: 8
web_1 | [2018-10-23 03:20:06 +0000] [8] [ERROR] Error handling request /
web_1 | Traceback (most recent call last):
web_1 | File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 135, in handle
web_1 | self.handle_request(listener, req, client, addr)
web_1 | File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 176, in handle_request
web_1 | respiter = self.wsgi(environ, resp.start_response)
web_1 | File "/usr/local/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 308, in application
web_1 | resp = f(*args[:-2] + (request,))
web_1 | File "/app.py", line 48, in application
web_1 | if options:
web_1 | UnboundLocalError: local variable 'options' referenced before assignment

Docker build error

Hi,
I try to do a docker build . but

Selecting previously unselected package wkhtmltox.
(Reading database ... 5985 files and directories currently installed.)
Preparing to unpack wkhtmltox_0.12.5-1.bionic_amd64.deb ...
Unpacking wkhtmltox (1:0.12.5-1.bionic) ...
dpkg: dependency problems prevent configuration of wkhtmltox:
wkhtmltox depends on libxrender1; however:
Package libxrender1 is not installed.
wkhtmltox depends on xfonts-base; however:
Package xfonts-base is not installed.

dpkg: error processing package wkhtmltox (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
wkhtmltox

Have you got an idea ?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.