asphalt-framework / asphalt-serialization Goto Github PK
View Code? Open in Web Editor NEWSerialization component for the Asphalt framework
License: Apache License 2.0
Serialization component for the Asphalt framework
License: Apache License 2.0
Following the documentation and including this in the component.components
:
serialization:
# backend: pickle
serializers:
json:
pickle:
produces the following error:
ERROR 2017-05-09 00:03:54,352 [asphalt.core.runner:118][MainThread] Error during application startup
Traceback (most recent call last):
File "/Users/dfee/code/aio_chat/env/lib/python3.6/site-packages/asphalt/core/runner.py", line 111, in run_application
event_loop.run_until_complete(coro)
File "uvloop/loop.pyx", line 1203, in uvloop.loop.Loop.run_until_complete (uvloop/loop.c:25632)
File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
return fut.result()
File "/Users/dfee/code/aio_chat/spark/component.py", line 29, in start
await super().start(ctx)
File "/Users/dfee/code/aio_chat/env/lib/python3.6/site-packages/asphalt/core/component.py", line 107, in start
self.add_component(alias)
File "/Users/dfee/code/aio_chat/env/lib/python3.6/site-packages/asphalt/core/component.py", line 96, in add_component
component = component_types.create_object(type or alias, **config)
File "/Users/dfee/code/aio_chat/env/lib/python3.6/site-packages/asphalt/core/utils.py", line 167, in create_object
return plugin_class(**constructor_kwargs)
File "/Users/dfee/code/aio_chat/env/lib/python3.6/site-packages/asphalt/serialization/component.py", line 44, in __init__
assert check_argument_types()
File "/Users/dfee/code/aio_chat/env/lib/python3.6/site-packages/typeguard.py", line 427, in check_argument_types
check_type(description, value, expected_type, memo)
File "/Users/dfee/code/aio_chat/env/lib/python3.6/site-packages/typeguard.py", line 396, in check_type
check_union(argname, value, expected_type, memo)
File "/Users/dfee/code/aio_chat/env/lib/python3.6/site-packages/typeguard.py", line 284, in check_union
format(argname, typelist, qualified_name(value)))
TypeError: type of argument "serializers" must be one of (Dict, NoneType); got dict instead
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.