Running platypush on Pi 3 #86

Closed
opened 2022-07-05 01:38:48 +02:00 by blacklight · 0 comments
Owner

Created by: WojtekKozaczynski

Now, after resolving installation issues (see isue #133), I am running into problems starting the platypush service. I am following your post "How to Transform a RaspberryPi Into a Universal Zigbee and Z-Wave Bridge". I created ~/etc/platypush/config.yaml file with this content

backend.http:
    port: 8008
zwave:
    device: /dev/ttyACM0
backend.zwave:
    enabled: true

The /dev/ttyACM0 is what showed up after I plugged the Z-Wave USB transceiver into the Pi.

The first launch failed with an error indicating that bcypt module was missing. Since python2 is Raspbian's default I had to use the following to load the module

sudo python3 -m pip install bcrypt

Below is the SSH console output of the second launch

pi@piTwo:~/platypush $ platypush
2020-05-14 22:36:52,283| INFO|platypush|---- Starting platypush v.0.12.6
2020-05-14 22:36:53,370|WARNING|platypush|Traceback (most recent call last):
2020-05-14 22:36:53,371|WARNING|platypush|  File "/usr/local/bin/platypush", line 11, in <module>
2020-05-14 22:36:53,371|WARNING|platypush|load_entry_point('platypush==0.12.6', 'console_scripts', 'platypush')()
2020-05-14 22:36:53,372|WARNING|platypush|  File "/usr/local/lib/python3.7/dist-packages/platypush-0.12.6-py3.7.egg/platypush/__init__.py", line 199, in main
2020-05-14 22:36:53,373|WARNING|platypush|app.start()
2020-05-14 22:36:53,373|WARNING|platypush|  File "/usr/local/lib/python3.7/dist-packages/platypush-0.12.6-py3.7.egg/platypush/__init__.py", line 171, in start
2020-05-14 22:36:53,374|WARNING|platypush|self.backends = register_backends(bus=self.bus, global_scope=True)
2020-05-14 22:36:53,374|WARNING|platypush|  File "/usr/local/lib/python3.7/dist-packages/platypush-0.12.6-py3.7.egg/platypush/context/__init__.py", line 53, in register_backends
2020-05-14 22:36:53,375|WARNING|platypush|b = getattr(module, cls_name)(bus=bus, **cfg, **kwargs)
2020-05-14 22:36:53,376|WARNING|platypush|TypeError
2020-05-14 22:36:53,376|WARNING|platypush|:
2020-05-14 22:36:53,376|WARNING|platypush|__init__() missing 1 required positional argument: 'device'

It looks like this time it is looking for 'device" argument, which I assumed should have come from the config file(?)

*Created by: WojtekKozaczynski* Now, after resolving installation issues (see isue #133), I am running into problems starting the platypush service. I am following your post "How to Transform a RaspberryPi Into a Universal Zigbee and Z-Wave Bridge". I created ~/etc/platypush/config.yaml file with this content ``` backend.http: port: 8008 zwave: device: /dev/ttyACM0 backend.zwave: enabled: true ``` _The /dev/ttyACM0 is what showed up after I plugged the Z-Wave USB transceiver into the Pi._ The first launch failed with an error indicating that bcypt module was missing. Since python2 is Raspbian's default I had to use the following to load the module ``` sudo python3 -m pip install bcrypt ``` Below is the SSH console output of the second launch ``` pi@piTwo:~/platypush $ platypush 2020-05-14 22:36:52,283| INFO|platypush|---- Starting platypush v.0.12.6 2020-05-14 22:36:53,370|WARNING|platypush|Traceback (most recent call last): 2020-05-14 22:36:53,371|WARNING|platypush| File "/usr/local/bin/platypush", line 11, in <module> 2020-05-14 22:36:53,371|WARNING|platypush|load_entry_point('platypush==0.12.6', 'console_scripts', 'platypush')() 2020-05-14 22:36:53,372|WARNING|platypush| File "/usr/local/lib/python3.7/dist-packages/platypush-0.12.6-py3.7.egg/platypush/__init__.py", line 199, in main 2020-05-14 22:36:53,373|WARNING|platypush|app.start() 2020-05-14 22:36:53,373|WARNING|platypush| File "/usr/local/lib/python3.7/dist-packages/platypush-0.12.6-py3.7.egg/platypush/__init__.py", line 171, in start 2020-05-14 22:36:53,374|WARNING|platypush|self.backends = register_backends(bus=self.bus, global_scope=True) 2020-05-14 22:36:53,374|WARNING|platypush| File "/usr/local/lib/python3.7/dist-packages/platypush-0.12.6-py3.7.egg/platypush/context/__init__.py", line 53, in register_backends 2020-05-14 22:36:53,375|WARNING|platypush|b = getattr(module, cls_name)(bus=bus, **cfg, **kwargs) 2020-05-14 22:36:53,376|WARNING|platypush|TypeError 2020-05-14 22:36:53,376|WARNING|platypush|: 2020-05-14 22:36:53,376|WARNING|platypush|__init__() missing 1 required positional argument: 'device' ``` It looks like this time it is looking for 'device" argument, which I assumed should have come from the config file(?)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: platypush/platypush#86
No description provided.