question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError after upgrading from 1.2.2

See original GitHub issue

After upgrading from version 1.2.2 to 1.2.4 we receive the following error when trying to start the controller:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/aiosmtpd/controller.py", line 165, in start
    raise RuntimeError("Unknown Error, failed to init SMTP server")
RuntimeError: Unknown Error, failed to init SMTP server

This error can even be triggered by running the sample code from the documentation:

import asyncio
class ExampleHandler:
  async def handle_RCPT(self, server, session, envelope, address, rcpt_options):
    return '250 OK'

from aiosmtpd.controller import Controller
controller = Controller(ExampleHandler())
controller.start()

After executing “controller.start()” the RuntimeError from above appears.

Python version is 3.6.8 OS is Red Hat 7.9 aiosmtpd was installed with pip3. After downgrading via “sudo pip3 install aiosmtpd=1.2.2” everything works again and aiosmtpd receives and processes emails without problems.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:32

github_iconTop GitHub Comments

1reaction
msztolcmancommented, Mar 5, 2021

Hi, sure. I was thinking it can be similar one 😃 New one opened.

1reaction
LeoVertocommented, Feb 18, 2021

This has fixed the issue for me, thank you so much for the quick debugging and fix, @pepoluan!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Newest 'python-poetry' Questions
I am trying to update my version of Poetry to 1.2.*, but when running poetry self update I get the error Could not...
Read more >
InfluxDB 1.8 release notes
After upgrading, customers have experienced an excessively large output additional lines due to a Println statement introduced in this release.
Read more >
Source code for canopen.network
BusABC` instance which is set after #: :meth:`canopen. ... to be transmitted """ if not self.bus: raise RuntimeError("Not connected to CAN bus") msg...
Read more >
Changes to CVXPY — CVXPY 1.2 documentation
When NumPy 1.20 was released many users encountered errors in installing or importing CVXPY. Users would see errors like RuntimeError: module compiled ......
Read more >
Troubleshooting - DepthAI documentation - Luxonis
If you are seeing the following error after installing DepthAI for Windows: (venv) C:\Users\Context\depthai>python depthai_demo.py Traceback (most recent ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found