Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
web3dev2023 opened this issue Jul 23, 2023 · 1 comment · Fixed by #3060
Closed

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

web3dev2023 opened this issue Jul 23, 2023 · 1 comment · Fixed by #3060
Assignees

Comments

@web3dev2023
Copy link

web3dev2023 commented Jul 23, 2023

  • 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

No tasks being tracked yet.
@pacrob pacrob self-assigned this Jul 24, 2023
@pacrob
Copy link
Contributor

pacrob commented Jul 24, 2023

Thanks for the issue @web3dev2023 ! PR incoming. It looks like it should actually be '\\.\pipe\geth.ipc' per the geth docs, so fixed that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants