Giter VIP home page Giter VIP logo

Comments (4)

MikeVL avatar MikeVL commented on May 18, 2024

Also timeout error

Traceback (most recent call last):
  File "/usr/local/bin/pilbox", line 9, in <module>
    load_entry_point('pilbox==1.1.6', 'console_scripts', 'pilbox')()
  File "/usr/local/lib/python3.4/site-packages/pilbox-1.1.6-py3.4.egg/pilbox/app.py", line 332, in main
    parse_command_line()
  File "/usr/local/lib/python3.4/site-packages/pilbox-1.1.6-py3.4.egg/pilbox/app.py", line 314, in parse_command_line
    tornado.options.parse_command_line()
  File "/usr/local/lib/python3.4/site-packages/tornado-4.0.2-py3.4-linux-x86_64.egg/tornado/options.py", line 525, in parse_command_line
    return options.parse_command_line(args, final=final)
  File "/usr/local/lib/python3.4/site-packages/tornado-4.0.2-py3.4-linux-x86_64.egg/tornado/options.py", line 261, in parse_command_line
    option.parse(value)
  File "/usr/local/lib/python3.4/site-packages/tornado-4.0.2-py3.4-linux-x86_64.egg/tornado/options.py", line 417, in parse
    self.callback(self._value)
  File "/usr/local/lib/python3.4/site-packages/pilbox-1.1.6-py3.4.egg/pilbox/app.py", line 48, in <lambda>
    callback=lambda path: parse_config_file(path, final=False))
  File "/usr/local/lib/python3.4/site-packages/tornado-4.0.2-py3.4-linux-x86_64.egg/tornado/options.py", line 533, in parse_config_file
    return options.parse_config_file(path, final=final)
  File "/usr/local/lib/python3.4/site-packages/tornado-4.0.2-py3.4-linux-x86_64.egg/tornado/options.py", line 280, in parse_config_file
    self._options[name].set(config[name])
  File "/usr/local/lib/python3.4/site-packages/tornado-4.0.2-py3.4-linux-x86_64.egg/tornado/options.py", line 432, in set
    (self.name, self.type.__name__, type(value)))
tornado.options.Error: Option 'timeout' is required to be a float (<class 'int'> given)

from pilbox.

xtagon avatar xtagon commented on May 18, 2024

Try the following settings:

# General settings
port = 8888

# Set default saving options
format = None
optimize = "1"
quality = "80"
timeout = 10.0 # Or whatever you want your timeout to be, just make it a float

The config options expect strings except for port which should be an integer and timeout which should be a float.

from pilbox.

MikeVL avatar MikeVL commented on May 18, 2024

Ok!. Maybe to fix docs: https://github.com/agschwender/pilbox#configuration ?

from pilbox.

agschwender avatar agschwender commented on May 18, 2024

Thanks for responding @xtagon. Yes, quality is a string because it supports values of 1-100 and keep. timeout is a float because it's what tornado requires. optimize should be fine as an integer though. In any case, I updated the README and sample configuration to reflect the correct data type for quality.

from pilbox.

Related Issues (20)

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.