testcontainers / testcontainers/testcontainers-python

could not translate host name "localnpipe" to address: Unknown host

Open
#108 12 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐛 bug 👀 requires attention 📦 package: postgres 🪟 windows
Dominant language
Python
Stars
2.3k
Forks
386
Avg merge
4h 40m
Merged PRs (30d)
1

Description

venv\lib\site-packages\wrapt\wrappers.py:605: in __call__
    return self._self_wrapper(self.__wrapped__, self._self_instance,
venv\lib\site-packages\testcontainers\core\waiting_utils.py:46: in wrapper
    raise TimeoutException(
E   testcontainers.core.exceptions.TimeoutException: Wait time exceeded 120 sec.
E                       Method _connect, args () , kwargs {}.
E                        Exception (psycopg2.OperationalError) could not translate host name "localnpipe" to address: Unknown host
E
E   (Background on this error at: http://sqlalche.me/e/e3q8)

Please help me out with this thing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the testcontainers connection and waiting path shown in venv\lib\site-packages\testcontainers\core\waiting_utils.py and inspect how the SQLAlchemy connection reaches psycopg2. Reproduce the failure and determine why the host name "localnpipe" cannot resolve; done means documenting or testing a verified fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
databases, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.