Skip to content

Default IPC path is incorrect on Windows with Anaconda 2023.07 #3058

Closed
@web3dev2023

Description

@web3dev2023
  • Version: 6.6.1
  • Python: 3.11
  • OS: win

I updated my Anaconda to the latest version recently, which uses Python 3.11.
web3.py is no longer able to set the default IPC path for IPCProvider on Windows. The problem and fix are as follows:

In ipc.py, line 105
ipc_path = os.path.join("\\\\", ".", "pipe", "geth.ipc")
makes the default IPC path '\\\\\\.\\pipe\\geth.ipc', which cannot be found with os.path.exists(ipc_path) in the next line

How can it be fixed?

In ipc.py, replace line 105
ipc_path = os.path.join("\\\\", ".", "pipe", "geth.ipc")
with
ipc_path = '\\\.\pipe\geth.ipc' as is described in the documentation.

### Tasks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions