-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'serial' has no attribute 'Serial' #1
Comments
Hi, as it seems that you get the error when you exit the parser (?), did
the parser work for you? Did you get any readings from your smart meter?
I cannot reason yet what went wrong, it works fine on my side
…On Fri, Jul 1, 2022 at 11:54 AM PA8E ***@***.***> wrote:
Got error:
AttributeError: module 'serial' has no attribute 'Serial'
dsmr-mqtt.mqtt INFO: FUNCTION:*del* LINE:162: >>
Python 3.8.6 @ Synology DSM6
—
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFFPZD3XUSPT5LB6CRTJXSLVR2543ANCNFSM52MFMU3A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
have you installed module pyserial? See requirements.txt for all
prerequisites.
…On Fri, Jul 1, 2022 at 11:54 AM PA8E ***@***.***> wrote:
Got error:
AttributeError: module 'serial' has no attribute 'Serial'
dsmr-mqtt.mqtt INFO: FUNCTION:*del* LINE:162: >>
Python 3.8.6 @ Synology DSM6
—
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFFPZD3XUSPT5LB6CRTJXSLVR2543ANCNFSM52MFMU3A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi Hans, yes I did. I installed a fresh RaspberryPi for this purpose only. I've got the same error. It turn out I had the script as root. As a systemd-service it seems to run fine. Can you confirm if these lines in the log are okay? |
Your log files look OK. I have check my notes, below comment will likely
solve your issue:
# add root (or user which runs script) to group dialout (/etc/groups)
…On Fri, Jul 1, 2022 at 4:27 PM PA8E ***@***.***> wrote:
Hi Hans, yes I did. I installed a fresh RaspberryPi for this purpose only.
I've got the same error. It turn out I had the script as root. As a
systemd-service it seems to run fine. Can you confirm if these lines in the
log are okay?
Jul 1 16:15:18 DSRM dsmr-mqtt.mqtt[2976] WARNING: 16:15:18
FUNCTION:__do_mqtt LINE:328: No connection with MQTT Broker; 2 messages
queued
Jul 1 16:15:18 DSRM dsmr-mqtt.py[2976]: dsmr-mqtt.mqtt INFO:
FUNCTION:__do_mqtt LINE:331: Connection with MQTT Broker; 3 messages queued
Jul 1 16:15:19 DSRM dsmr-mqtt.mqtt[2976] INFO: 16:15:18 FUNCTION:__do_mqtt
LINE:331: Connection with MQTT Broker; 3 messages queued
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFFPZD3EIBFU3DKGVCGMRVLVR356RANCNFSM52MFMU3A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
close by lack of feedback on last suggestion |
Got error:
AttributeError: module 'serial' has no attribute 'Serial'
dsmr-mqtt.mqtt INFO: FUNCTION:del LINE:162: >>
Python 3.8.6 @ Synology DSM6
The text was updated successfully, but these errors were encountered: