These are packaged together with the virtualenv. These wheels may be acquired from multiple locations as follows: virtualenv ships out of box with a set of embed wheels for all three seed packages (pip, setuptools, wheel). I can run something which basically only does one query (maybe a handful but I think just one, I’d need to double check) and it seems to work fine, although it very rarely fails with the connection does not exist error. To install a seed package via either pip or app-data method virtualenv needs to acquire a wheel of the target package. This seems to mostly just happen when I’m doing something which takes a few seconds, and runs a bunch of concurrent queries. (full exception at Invalidate connection <.AsyncAdapt_asyncpg - ) Types, intro_stmt = await self._introspect_types(įile "C:\Users\moowi\Documents\GitHub\bpl-backend\.venv\lib\site-packages\asyncpg\connection.py", line 454, in _introspect_typesįile "C:\Users\moowi\Documents\GitHub\bpl-backend\.venv\lib\site-packages\asyncpg\connection.py", line 1664, in _executeįile "C:\Users\moowi\Documents\GitHub\bpl-backend\.venv\lib\site-packages\asyncpg\connection.py", line 1711, in _do_executeįile "asyncpg\protocol\protocol.pyx", line 201, in bind_executeĪ: connection was closed in the middle of operation Prepared_stmt = await self._connection.prepare(operation)įile "C:\Users\moowi\Documents\GitHub\bpl-backend\.venv\lib\site-packages\asyncpg\connection.py", line 548, in prepareįile "C:\Users\moowi\Documents\GitHub\bpl-backend\.venv\lib\site-packages\asyncpg\connection.py", line 564, in _prepareįile "C:\Users\moowi\Documents\GitHub\bpl-backend\.venv\lib\site-packages\asyncpg\connection.py", line 408, in _get_statement Prepared_stmt, attributes = await adapt_connection._prepare(įile "C:\Users\moowi\Documents\GitHub\bpl-backend\.venv\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 630, in _prepare Specifically, I’ll run the app, which connects to the postgress app, and it’ll fail with something like this File "C:\Users\moowi\Documents\GitHub\bpl-backend\.venv\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 388, in _prepare_and_execute Lately it’s been giving me a lot of issues. I’ve done this in the past using Wireguard, and it’s worked fine. I’m trying to run it locally to test out some of my changes, but connection to the production DB. I’m working on a python app which talks to postgres.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |