Cleaning up environment Preparing virtual environment Installing latest version of the repository Processing /tmp/tmp.Ky18Ya6993/repo Collecting pyyaml Using cached PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB) Collecting redis Using cached redis-3.5.3-py2.py3-none-any.whl (72 kB) Collecting requests Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB) Collecting croniter Using cached croniter-1.0.7-py2.py3-none-any.whl (13 kB) Collecting sqlalchemy Using cached SQLAlchemy-1.3.23-cp39-cp39-manylinux2010_x86_64.whl (1.3 MB) Collecting websockets Using cached websockets-8.1.tar.gz (58 kB) Collecting websocket-client Using cached websocket_client-0.58.0-py2.py3-none-any.whl (61 kB) Collecting wheel Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB) Collecting zeroconf>=0.27.0 Using cached zeroconf-0.28.8-py3-none-any.whl (55 kB) Collecting tz Using cached tz-0.2.2-py3-none-any.whl (12 kB) Collecting python-dateutil Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB) Collecting cryptography Using cached cryptography-3.4.6-cp36-abi3-manylinux2014_x86_64.whl (3.2 MB) Collecting pyjwt Using cached PyJWT-2.0.1-py3-none-any.whl (15 kB) Collecting flask Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB) Collecting frozendict Using cached frozendict-1.2.tar.gz (2.6 kB) Collecting bcrypt Using cached bcrypt-3.2.0-cp36-abi3-manylinux2010_x86_64.whl (63 kB) Collecting chardet<5,>=3.0.2 Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB) Collecting idna<3,>=2.5 Using cached idna-2.10-py2.py3-none-any.whl (58 kB) Collecting certifi>=2017.4.17 Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB) Collecting urllib3<1.27,>=1.21.1 Using cached urllib3-1.26.3-py2.py3-none-any.whl (137 kB) Collecting future Using cached future-0.18.2.tar.gz (829 kB) Collecting natsort Using cached natsort-7.1.1-py3-none-any.whl (35 kB) Collecting six Using cached six-1.15.0-py2.py3-none-any.whl (10 kB) Collecting ifaddr>=0.1.7 Using cached ifaddr-0.1.7-py2.py3-none-any.whl (10 kB) Collecting cffi>=1.12 Using cached cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl (406 kB) Collecting click>=5.1 Using cached click-7.1.2-py2.py3-none-any.whl (82 kB) Collecting itsdangerous>=0.24 Using cached itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB) Collecting Jinja2>=2.10.1 Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB) Collecting Werkzeug>=0.15 Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB) Collecting pycparser Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB) Collecting MarkupSafe>=0.23 Using cached MarkupSafe-1.1.1-cp39-cp39-manylinux2010_x86_64.whl (32 kB) Using legacy 'setup.py install' for platypush, since package 'wheel' is not installed. Using legacy 'setup.py install' for websockets, since package 'wheel' is not installed. Using legacy 'setup.py install' for frozendict, since package 'wheel' is not installed. Using legacy 'setup.py install' for future, since package 'wheel' is not installed. Installing collected packages: pyyaml, redis, chardet, idna, certifi, urllib3, requests, future, six, python-dateutil, natsort, croniter, sqlalchemy, websockets, websocket-client, wheel, ifaddr, zeroconf, tz, pycparser, cffi, cryptography, pyjwt, click, itsdangerous, MarkupSafe, Jinja2, Werkzeug, flask, frozendict, bcrypt, platypush Running setup.py install for future: started Running setup.py install for future: finished with status 'done' Running setup.py install for websockets: started Running setup.py install for websockets: finished with status 'done' Running setup.py install for frozendict: started Running setup.py install for frozendict: finished with status 'done' Running setup.py install for platypush: started Running setup.py install for platypush: finished with status 'done' Successfully installed Jinja2-2.11.3 MarkupSafe-1.1.1 Werkzeug-1.0.1 bcrypt-3.2.0 certifi-2020.12.5 cffi-1.14.5 chardet-4.0.0 click-7.1.2 croniter-1.0.7 cryptography-3.4.6 flask-1.1.2 frozendict-1.2 future-0.18.2 idna-2.10 ifaddr-0.1.7 itsdangerous-1.1.0 natsort-7.1.1 platypush-0.20.3 pycparser-2.20 pyjwt-2.0.1 python-dateutil-2.8.1 pyyaml-5.4.1 redis-3.5.3 requests-2.25.1 six-1.15.0 sqlalchemy-1.3.23 tz-0.2.2 urllib3-1.26.3 websocket-client-0.58.0 websockets-8.1 wheel-0.36.2 zeroconf-0.28.8 Running tests INFO:root:Starting platypush service INFO:platypush:---- Starting platypush v.0.20.3 INFO:root:Sleeping 5 seconds while waiting for the daemon to start up WARNING:platypush:web:Could not import routes from /tmp/tmp.Ky18Ya6993/repo/platypush/backend/http/app/routes/plugins/camera/pi.py: : No module named 'numpy' WARNING:platypush:web:Could not import routes from /tmp/tmp.Ky18Ya6993/repo/platypush/backend/http/app/routes/plugins/camera/__init__.py: : No module named 'numpy' WARNING:platypush:web:Could not import routes from /tmp/tmp.Ky18Ya6993/repo/platypush/backend/http/app/routes/plugins/camera/ir/mlx90640.py: : No module named 'numpy' WARNING:platypush:web:Could not import routes from /tmp/tmp.Ky18Ya6993/repo/platypush/backend/http/app/routes/plugins/camera/ir/__init__.py: : No module named 'numpy' INFO:platypush:backend:redis:Initialized Redis backend on queue platypush_bus_mq with arguments {} INFO:platypush:Received event: {"type": "event", "target": "gitter", "origin": "gitter", "id": "650efc5ca8242a700694b5a4d9c560f3", "_timestamp": 1614977026.6043549, "args": {"type": "platypush.message.event.zeroconf.ZeroconfServiceAddedEvent", "service_event": "add", "service_type": "_platypush-http._tcp.local.", "service_name": "gitter._platypush-http._tcp.local.", "service_info": {"addresses": ["172.105.246.212"], "port": 8123, "host_ttl": 120, "other_ttl": 4500, "priority": 0, "properties": {"name": "Platypush", "vendor": "Platypush", "version": "0.20.3"}, "server": "gitter._platypush-http._tcp.local.", "weight": 0}}} INFO:platypush:backend:http:Starting local web server on port 8123 INFO:platypush: * Serving Flask app "platypush" (lazy loading) INFO:platypush: * Environment: production INFO:platypush: WARNING: This is a development server. Do not use it in a production deployment. INFO:platypush: Use a production WSGI server instead. INFO:platypush: * Debug mode: off INFO:werkzeug: * Running on http://0.0.0.0:8123/ (Press CTRL+C to quit) INFO:root:Stopping platypush service . ---------------------------------------------------------------------- Ran 1 test in 5.012s OK INFO:platypush:bus:Bus service stoppped WARNING:platypush:backend:http:Could not register Zeroconf service gitter._platypush-http._tcp.local.: KeyError: 'gitter._platypush-http._tcp.local.' INFO:platypush:backend:http:Received STOP event on HttpBackend INFO:platypush:backend:http:Received STOP event on HttpBackend INFO:platypush:backend:http:HTTP server process terminated INFO:platypush:backend:http:HTTP server process terminated INFO:root:Starting platypush service INFO:platypush:---- Starting platypush v.0.20.3 INFO:root:Sleeping 5 seconds while waiting for the daemon to start up WARNING:platypush:web:Could not import routes from /tmp/tmp.Ky18Ya6993/repo/platypush/backend/http/app/routes/plugins/camera/pi.py: : No module named 'numpy' WARNING:platypush:web:Could not import routes from /tmp/tmp.Ky18Ya6993/repo/platypush/backend/http/app/routes/plugins/camera/__init__.py: : No module named 'numpy' WARNING:platypush:web:Could not import routes from /tmp/tmp.Ky18Ya6993/repo/platypush/backend/http/app/routes/plugins/camera/ir/mlx90640.py: : No module named 'numpy' WARNING:platypush:web:Could not import routes from /tmp/tmp.Ky18Ya6993/repo/platypush/backend/http/app/routes/plugins/camera/ir/__init__.py: : No module named 'numpy' INFO:platypush:backend:redis:Initialized Redis backend on queue platypush_bus_mq with arguments {} INFO:platypush:Received event: {"type": "event", "target": "gitter", "origin": "gitter", "id": "055ea4e13e345294ccbb03bccfc3aa28", "_timestamp": 1614977032.1750586, "args": {"type": "platypush.message.event.zeroconf.ZeroconfServiceAddedEvent", "service_event": "add", "service_type": "_platypush-http._tcp.local.", "service_name": "gitter._platypush-http._tcp.local.", "service_info": {"addresses": ["172.105.246.212"], "port": 8123, "host_ttl": 120, "other_ttl": 4500, "priority": 0, "properties": {"name": "Platypush", "vendor": "Platypush", "version": "0.20.3"}, "server": "gitter._platypush-http._tcp.local.", "weight": 0}}} INFO:platypush:backend:http:Starting local web server on port 8123 INFO:platypush: * Serving Flask app "platypush" (lazy loading) INFO:platypush: * Environment: production INFO:platypush: WARNING: This is a development server. Do not use it in a production deployment. INFO:platypush: Use a production WSGI server instead. INFO:platypush: * Debug mode: off INFO:werkzeug: * Running on http://0.0.0.0:8123/ (Press CTRL+C to quit) WARNING:platypush:/usr/lib/python3.9/asyncio/base_events.py:681: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False> _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self) ResourceWarning: Enable tracemalloc to get the object allocation traceback INFO:werkzeug:127.0.0.1 - - [05/Mar/2021 21:43:56] "POST /execute HTTP/1.1" 307 - INFO:werkzeug:127.0.0.1 - - [05/Mar/2021 21:43:56] "POST /register?redirect=http://localhost:8123/execute HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [05/Mar/2021 21:43:56] "POST /register?redirect=http://localhost:8123/ HTTP/1.1" 302 - INFO:werkzeug:127.0.0.1 - - [05/Mar/2021 21:43:56] "GET / HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [05/Mar/2021 21:43:56] "POST /execute HTTP/1.1" 307 - INFO:werkzeug:127.0.0.1 - - [05/Mar/2021 21:43:56] "POST /login?redirect=http://localhost:8123/execute HTTP/1.1" 200 - INFO:platypush:web:Received message on the HTTP backend: {'type': 'request', 'action': 'shell.exec', 'args': {'cmd': 'echo ping'}} INFO:platypush:Processed response from action shell.exec: {"id": null, "type": "response", "target": null, "origin": null, "_timestamp": 1614977037.1317365, "response": {"output": "ping\n", "errors": []}} INFO:werkzeug:127.0.0.1 - - [05/Mar/2021 21:43:57] "POST /execute HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [05/Mar/2021 21:43:57] "POST /execute HTTP/1.1" 307 - INFO:werkzeug:127.0.0.1 - - [05/Mar/2021 21:43:57] "POST /login?redirect=http://localhost:8123/execute HTTP/1.1" 200 - INFO:root:Stopping platypush service INFO:root:Removing temporary db file /tmp/platypush-test-http.db . ---------------------------------------------------------------------- Ran 1 test in 6.098s OK INFO:platypush:backend:http:Received STOP event on HttpBackend INFO:platypush:backend:http:HTTP server process terminated INFO:platypush:backend:redis:Redis backend terminated INFO:platypush:bus:Bus service stoppped INFO:platypush:backend:http:Received STOP event on HttpBackend INFO:platypush:backend:http:HTTP server process terminated ss ---------------------------------------------------------------------- Ran 2 tests in 0.000s OK (skipped=2) All tests passed Cleaning up environment