testcontainers / testcontainers/testcontainers-python
could not translate host name "localnpipe" to address: Unknown host
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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