Skip to content
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

[Bug or Feature Requests] aioredis connect raise 'Event callback failed' #120

Open
625781186 opened this issue Nov 21, 2019 · 0 comments
Open

Comments

@625781186
Copy link

env:
python 3.6.4 64bit
pyqt5 5.10.1
aioredis 1.1.0 ~1.3.0
quamash 0.6.1

error:

image

use asyncio loop is ok:

image

##testcode.py
from PyQt5.QtWidgets import QApplication, QProgressBar
from quamash import QEventLoop, QThreadExecutor

app = QApplication(sys.argv)
loop = QEventLoop(app)
asyncio.set_event_loop(loop)  # NEW must set the event loop

progress = QProgressBar()
progress.setRange(0, 99)
progress.show()

async def master():
    await first_50()


async def first_50():
    red_sql = await aioredis.create_redis_pool(f"redis://localhost:6379/1")

with loop: ## context manager calls .close() when loop completes, and releases all resources
    loop.run_until_complete(master())
@625781186 625781186 changed the title aioredis connect raise 'Event callback failed' [Bug or Feature Requests] aioredis connect raise 'Event callback failed' Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant