Open yCobanoglu opened 1 year ago
I could fix it by installing mongo for ARCH. You can close the issue.
It could be something Ubuntu version not playing nice with Arch. I have no idea unfortunately. It's good to hear that you have a workaround.
Hey @ekarademir @yCobanoglu I am also getting the same error since yesterday, earlier it was running without an issue.
I have the following env variables:
os.environ["PYMONGOIM__OPERATING_SYSTEM"] = "ubuntu"
os.environ["PYMONGOIM__OS_VERSION"] = "20"
os.environ["PYMONGOIM__MONGO_VERSION"] = "5.0"
with
pymongo 4.3.2
pymongo-inmemory 0.2.11
pytest 6.2.5
Here SS
any thoughts on this? why it could have popped up.
Context:
OS: Ubuntu 20.04.5 Version of pymongo_inmemory 0.2.11 Version of mongo you are downloading 45.0
Same here since pymongo-inmemory 0.3.1
from pymongo_inmemory import MongoClient
client = MongoClient()
db = client['testdb']
collection = db['test-collection']
client.close()
I get
File "../python3.10/site-packages/pymongo/topology.py", line 259, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27018: [Errno 61] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 6555081ddd1de2a12212380f, topology_type: Unknown, servers: [<ServerDescription ('127.0.0.1', 27018) server_type: Unknown, rtt: None, error=AutoReconnect('127.0.0.1:27018: [Errno 61] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>
Works fine with pymongo-inmemory 0.3.0
OS : Apple M1 - macOSVentura 13.4 pymongo version 4.6.0
Describe the bug pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27017: [Errno 111] Connection refused. This used to work in the past due to (probably ?!) System update suddenly stopped working. For generic linux with version 4 everything works as expected.
To Reproduce Steps to reproduce the behavior: Packages needed: pytest==7.2.0, pymongo==4.3.3 ENV Variables: PYMONGOIMMONGO_VERSION=4.4; PYMONGOIM__OPERATING_SYSTEM=ubuntu; PYMONGOIMOS_VERSION=20
Context: