asyncio.async error on Live Blog: cannot add default data
  • Hello, I have this error when I try to add the default data

    python3 manage.py app:initialize_data;
    python3 manage.py users:create -u admin -p admin -e 'admin@example.com' --admin ;
    python3 manage.py register_local_themes ;

    Traceback (most recent call last):
      File "manage.py", line 7, in <module>
        from app import get_app
      File "/Users/scrivoaroby/Projects/liveblog/server/app.py", line 18, in <module>
        from liveblog.blogs import bloglist_assets_blueprint, bloglist_blueprint
      File "/Users/scrivoaroby/Projects/liveblog/server/liveblog/blogs/__init__.py", line 2, in <module>
        from .blogs import BlogService, BlogsResource, UserBlogsResource, UserBlogsService
      File "/Users/scrivoaroby/Projects/liveblog/server/liveblog/blogs/blogs.py", line 18, in <module>
        from superdesk.activity import add_activity
      File "/Users/scrivoaroby/Projects/liveblog/server/env/src/superdesk-core/superdesk/activity.py", line 21, in <module>
        from superdesk.notification import push_notification
      File "/Users/scrivoaroby/Projects/liveblog/server/env/src/superdesk-core/superdesk/notification.py", line 20, in <module>
        from superdesk.websockets_comms import SocketMessageProducer
      File "/Users/scrivoaroby/Projects/liveblog/server/env/src/superdesk-core/superdesk/websockets_comms.py", line 16, in <module>
        import websockets
      File "/Users/scrivoaroby/Projects/liveblog/server/env/lib/python3.7/site-packages/websockets/__init__.py", line 3, in <module>
        from .client import *
      File "/Users/scrivoaroby/Projects/liveblog/server/env/lib/python3.7/site-packages/websockets/client.py", line 20, in <module>
        from .protocol import WebSocketCommonProtocol
      File "/Users/scrivoaroby/Projects/liveblog/server/env/lib/python3.7/site-packages/websockets/protocol.py", line 18, in <module>
        from .compatibility import asyncio_ensure_future
      File "/Users/scrivoaroby/Projects/liveblog/server/env/lib/python3.7/site-packages/websockets/compatibility.py", line 15
        asyncio_ensure_future = asyncio.async           # Python < 3.5
  • 1 Comment sorted by
  • Ok I discovered that the problem is the python versiion.