multiple test failures due to permissions #35
Labels
No Label
architecture
bug
ci/cd
cleanup
documentation
duplicate
enhancement
good first issue
help wanted
in progress
invalid
new feature
packaging
question
ui
waiting user input
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: platypush/platypush#35
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, I'm new to Platypush and can't get it working after following your Hackernoon article step-by-step (How to Transform a Raspberry pi into a universal zigbee and z-wave bridge.) After hitting problems with the pip3 install of Platypush, I also downloaded and installed the source code. When I attempt to run your tests, I get permission errors, so suspect it's something pretty basic. Any suggestions?
Here are the permission errors:
pi@raspberrypi:~/platypush $ python3 -m tests
============================= test session starts ==============================
platform linux -- Python 3.7.3, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/pi/platypush
collected 9 items
tests/test_cron.py E [ 11%]
tests/test_event_parse.py E [ 22%]
tests/test_http.py EEEEE [ 77%]
tests/test_procedure.py EE [100%]
==================================== ERRORS ====================================
____________________ ERROR at setup of test_cron_execution _____________________
tests/conftest.py:33:
platypush/config/init.py:377: in init
_default_config_instance = Config(cfgfile)
platypush/config/init.py:84: in init
os.makedirs(self._config['dashboards_dir'], mode=0o755, exist_ok=True)
name = '/home/pi/platypush/tests/etc/dashboards', mode = 493, exist_ok = True
E PermissionError: [Errno 13] Permission denied: '/home/pi/platypush/tests/etc/dashboards'
/usr/lib/python3.7/os.py:221: PermissionError
---------------------------- Captured stdout setup -----------------------------
INFO:root:Starting Platypush test service
------------------------------ Captured log setup ------------------------------
INFO root:conftest.py:31 Starting Platypush test service
______________________ ERROR at setup of test_event_parse ______________________
tests/conftest.py:33:
platypush/config/init.py:377: in init
_default_config_instance = Config(cfgfile)
platypush/config/init.py:84: in init
os.makedirs(self._config['dashboards_dir'], mode=0o755, exist_ok=True)
name = '/home/pi/platypush/tests/etc/dashboards', mode = 493, exist_ok = True
E PermissionError: [Errno 13] Permission denied: '/home/pi/platypush/tests/etc/dashboards'
/usr/lib/python3.7/os.py:221: PermissionError
___________ ERROR at setup of test_request_with_no_registered_users ____________
tests/conftest.py:33:
platypush/config/init.py:377: in init
_default_config_instance = Config(cfgfile)
platypush/config/init.py:84: in init
os.makedirs(self._config['dashboards_dir'], mode=0o755, exist_ok=True)
name = '/home/pi/platypush/tests/etc/dashboards', mode = 493, exist_ok = True
E PermissionError: [Errno 13] Permission denied: '/home/pi/platypush/tests/etc/dashboards'
/usr/lib/python3.7/os.py:221: PermissionError
________________ ERROR at setup of test_first_user_registration ________________
tests/conftest.py:33:
platypush/config/init.py:377: in init
_default_config_instance = Config(cfgfile)
platypush/config/init.py:84: in init
os.makedirs(self._config['dashboards_dir'], mode=0o755, exist_ok=True)
name = '/home/pi/platypush/tests/etc/dashboards', mode = 493, exist_ok = True
E PermissionError: [Errno 13] Permission denied: '/home/pi/platypush/tests/etc/dashboards'
/usr/lib/python3.7/os.py:221: PermissionError
_______ ERROR at setup of test_unauthorized_request_with_registered_user _______
tests/conftest.py:33:
platypush/config/init.py:377: in init
_default_config_instance = Config(cfgfile)
platypush/config/init.py:84: in init
os.makedirs(self._config['dashboards_dir'], mode=0o755, exist_ok=True)
name = '/home/pi/platypush/tests/etc/dashboards', mode = 493, exist_ok = True
E PermissionError: [Errno 13] Permission denied: '/home/pi/platypush/tests/etc/dashboards'
/usr/lib/python3.7/os.py:221: PermissionError
________ ERROR at setup of test_authorized_request_with_registered_user ________
tests/conftest.py:33:
platypush/config/init.py:377: in init
_default_config_instance = Config(cfgfile)
platypush/config/init.py:84: in init
os.makedirs(self._config['dashboards_dir'], mode=0o755, exist_ok=True)
name = '/home/pi/platypush/tests/etc/dashboards', mode = 493, exist_ok = True
E PermissionError: [Errno 13] Permission denied: '/home/pi/platypush/tests/etc/dashboards'
/usr/lib/python3.7/os.py:221: PermissionError
____________ ERROR at setup of test_request_with_wrong_credentials _____________
tests/conftest.py:33:
platypush/config/init.py:377: in init
_default_config_instance = Config(cfgfile)
platypush/config/init.py:84: in init
os.makedirs(self._config['dashboards_dir'], mode=0o755, exist_ok=True)
name = '/home/pi/platypush/tests/etc/dashboards', mode = 493, exist_ok = True
E PermissionError: [Errno 13] Permission denied: '/home/pi/platypush/tests/etc/dashboards'
/usr/lib/python3.7/os.py:221: PermissionError
____________________ ERROR at setup of test_procedure_call _____________________
tests/conftest.py:33:
platypush/config/init.py:377: in init
_default_config_instance = Config(cfgfile)
platypush/config/init.py:84: in init
os.makedirs(self._config['dashboards_dir'], mode=0o755, exist_ok=True)
name = '/home/pi/platypush/tests/etc/dashboards', mode = 493, exist_ok = True
E PermissionError: [Errno 13] Permission denied: '/home/pi/platypush/tests/etc/dashboards'
/usr/lib/python3.7/os.py:221: PermissionError
_________________ ERROR at setup of test_procedure_from_event __________________
tests/conftest.py:33:
platypush/config/init.py:377: in init
_default_config_instance = Config(cfgfile)
platypush/config/init.py:84: in init
os.makedirs(self._config['dashboards_dir'], mode=0o755, exist_ok=True)
name = '/home/pi/platypush/tests/etc/dashboards', mode = 493, exist_ok = True
E PermissionError: [Errno 13] Permission denied: '/home/pi/platypush/tests/etc/dashboards'
/usr/lib/python3.7/os.py:221: PermissionError
=============================== warnings summary ===============================
../.local/lib/python3.7/site-packages/_pytest/cacheprovider.py:428
/home/pi/.local/lib/python3.7/site-packages/_pytest/cacheprovider.py:428: PytestCacheWarning: could not create cache path /home/pi/platypush/.pytest_cache/v/cache/nodeids
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
../.local/lib/python3.7/site-packages/_pytest/cacheprovider.py:382
/home/pi/.local/lib/python3.7/site-packages/_pytest/cacheprovider.py:382: PytestCacheWarning: could not create cache path /home/pi/platypush/.pytest_cache/v/cache/lastfailed
config.cache.set("cache/lastfailed", self.lastfailed)
../.local/lib/python3.7/site-packages/_pytest/stepwise.py:49
/home/pi/.local/lib/python3.7/site-packages/_pytest/stepwise.py:49: PytestCacheWarning: could not create cache path /home/pi/platypush/.pytest_cache/v/cache/stepwise
session.config.cache.set(STEPWISE_CACHE_DIR, [])
-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
ERROR tests/test_cron.py::test_cron_execution - PermissionError: [Errno 13] P...
ERROR tests/test_event_parse.py::test_event_parse - PermissionError: [Errno 1...
ERROR tests/test_http.py::test_request_with_no_registered_users - PermissionE...
ERROR tests/test_http.py::test_first_user_registration - PermissionError: [Er...
ERROR tests/test_http.py::test_unauthorized_request_with_registered_user - Pe...
ERROR tests/test_http.py::test_authorized_request_with_registered_user - Perm...
ERROR tests/test_http.py::test_request_with_wrong_credentials - PermissionErr...
ERROR tests/test_procedure.py::test_procedure_call - PermissionError: [Errno ...
ERROR tests/test_procedure.py::test_procedure_from_event - PermissionError: [...
======================== 3 warnings, 9 errors in 18.65s ========================