long2ice / asyncmy

A fast asyncio MySQL/MariaDB driver with replication protocol support
https://github.com/long2ice/asyncmy
Apache License 2.0
230 stars 25 forks source link

asyncmy.connection now missing in 2.5.0 from docker pip install #53

Closed jacmarjorie closed 1 year ago

jacmarjorie commented 1 year ago

Hello, all the sudden asyncmy is unable to find connection package when pip installed inside python3.9-alpine3.16. See below to reproduce:

Dockerfile

FROM python:3.9-alpine3.16

RUN pip install asyncmy==0.2.5
CMD /bin/bash ls

Build: docker build -t testing .

SSH: docker run --rm -it --entrypoint sh testing:latest

/ # python
>>> from asyncmy.connection import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/asyncmy/__init__.py", line 1, in <module>
    from .connection import Connection, connect  # noqa:F401
ModuleNotFoundError: No module named 'asyncmy.connection'

However:

pip install asyncmy==0.2.7rc4
/ # python
Python 3.9.16 (main, Jan 24 2023, 00:06:28)
[GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from asyncmy.connection import *
>>>

Works fine. I see that rc4 and rc5 were released in pypi yesterday, and we are now experiencing this issue. Not sure if this is a coincidence. Any advice?

Thanks in advance.

long2ice commented 1 year ago

dup of https://github.com/long2ice/asyncmy/issues/50