Coder Social home page Coder Social logo

asphalt-serialization's People

Contributors

agronholm avatar davidbrochart avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

asphalt-serialization's Issues

Multiple serializers fail

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

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.