Comments (4)
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.
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.
Ok!. Maybe to fix docs: https://github.com/agschwender/pilbox#configuration ?
from pilbox.
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)
- JPEG images failling, being identified as MPO HOT 18
- Feature request: fallback image on processing error HOT 7
- Preserving Exif information HOT 1
- security issue - cannot validate signature HOT 2
- Make benefit of PycURL more clear HOT 3
- animated gif support HOT 6
- Spaces in upstream URLs HOT 4
- Publish your Dockerfile HOT 8
- Request: Handle error codes and messages in custom application HOT 2
- Uwsgi support question. HOT 1
- Images with %20 in their name HOT 2
- Limit max value for resize `h` and `w` HOT 2
- ar
- Passing URL-encoded values to `op` doesn't work HOT 1
- JPEG Rotation Detection HOT 3
- proportional resize HOT 2
- 3 tests failing HOT 2
- POST images to resize, etc. HOT 1
- Which version of Pillow-SIMD works with Pilbox 1.3.4? HOT 3
- how to cache original image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pilbox.