Skip to content

SMTPSensor doesn't work on python38 #48

Description

@guo3561101

docker exec -it st2actionrunner bash

/opt/stackstorm/st2/bin/st2sensorcontainer --config-file=/etc/st2/st2.docker.conf --sensor-ref=email.SMTPSensor

2022-05-30 08:36:15,808 ERROR [-] Traceback (most recent call last):

2022-05-30 08:36:15,808 ERROR [-] File "/opt/stackstorm/st2/lib/python3.8/site-packages/st2reactor/container/sensor_wrapper.py", line 449, in

2022-05-30 08:36:15,809 ERROR [-]
2022-05-30 08:36:15,809 ERROR [-] obj.run()
2022-05-30 08:36:15,809 ERROR [-]

2022-05-30 08:36:15,809 ERROR [-] File "/opt/stackstorm/st2/lib/python3.8/site-packages/st2reactor/container/sensor_wrapper.py", line 273, in run

2022-05-30 08:36:15,809 ERROR [-]
2022-05-30 08:36:15,809 ERROR [-] self._sensor_instance.setup()
2022-05-30 08:36:15,809 ERROR [-]

2022-05-30 08:36:15,809 ERROR [-] File "/opt/stackstorm/packs/email/sensors/smtp_sensor.py", line 33, in setup

2022-05-30 08:36:15,809 ERROR [-]
2022-05-30 08:36:15,809 ERROR [-] self._server = St2SMTPServer(localaddr=(self._listen_ip, self._listen_port),
2022-05-30 08:36:15,809 ERROR [-]

2022-05-30 08:36:15,809 ERROR [-] File "/opt/stackstorm/packs/email/sensors/smtp_sensor.py", line 58, in init

2022-05-30 08:36:15,809 ERROR [-]
2022-05-30 08:36:15,809 ERROR [-] smtpd.SMTPServer.init(self, localaddr, remoteaddr) # pylint: disable=no-member
2022-05-30 08:36:15,809 ERROR [-]

2022-05-30 08:36:15,809 ERROR [-] File "/usr/lib/python3.8/smtpd.py", line 645, in init

2022-05-30 08:36:15,810 ERROR [-]
2022-05-30 08:36:15,810 ERROR [-] gai_results = socket.getaddrinfo(*localaddr,
2022-05-30 08:36:15,810 ERROR [-]

2022-05-30 08:36:15,810 ERROR [-] TypeError
2022-05-30 08:36:15,810 ERROR [-] :
2022-05-30 08:36:15,810 ERROR [-] getaddrinfo() got an unexpected keyword argument 'type'
2022-05-30 08:36:15,810 ERROR [-]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions