OSError: [Errno 49] Can't assign requested address

See original GitHub issue

I just tried upgrading 0.7.3 to 0.8.1 and my runs are failing with error below. Downgrading back to 0.7.3 fixes the problem

Traceback (most recent call last):
  File "launch_interact.py", line 49, in <module>
    wandb.init(project='moonscrub', name=args.run_name)
  File "/Users/yaroslavvb/anaconda3/envs/main/lib/python3.6/site-packages/wandb/__init__.py", line 778, in init
    _init_headless(run)
  File "/Users/yaroslavvb/anaconda3/envs/main/lib/python3.6/site-packages/wandb/__init__.py", line 184, in _init_headless
    server = wandb_socket.Server()
  File "/Users/yaroslavvb/anaconda3/envs/main/lib/python3.6/site-packages/wandb/wandb_socket.py", line 29, in __init__
    self.socket.bind(('localhost', 0))
OSError: [Errno 49] Can't assign requested address

> /Users/yaroslavvb/anaconda3/envs/main/lib/python3.6/site-packages/wandb/wandb_socket.py(29)__init__()
-> self.socket.bind(('localhost', 0))
(Pdb) 

This is MacOS 10.13.6, Python 3.6.8 :: Anaconda, Inc.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vanpeltcommented, Jun 20, 2019

Actually, can you run cat /etc/hosts and tell me if there’s an entry for localhost there? Mine looks like:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost
0reactions
vanpeltcommented, Jun 20, 2019

0.8.2 falls back to 127.0.0.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't assign requested address : Python Multicasting
The Client code runs properly and is waiting to receive message on the socket. But the Code Server crashes as soon as I...
Read more >
OSError: [Errno 49] Can't assign requested address · Issue #379
I just tried upgrading 0.7.3 to 0.8.1 and my runs are failing with error below. Downgrading back to 0.7.3 fixes the problem Traceback...
Read more >
Python Sockets "[Errno 49] Can't assign requested address "
Hi guys I'm new to Python and Networking in general and I'm having trouble with my socket setup using my laptop and a...
Read more >
OSX: “Can't assign requested address (code=49)”
OSX: “Can't assign requested address (code=49)” ... low level networking tools, this error occurs when OSX's TCP stack routing table has become corrupted....
Read more >
Mac: Can't assign requested address (code=49) - OVPN.com
Can't assign requested address (code=49) is a bug in macOS and not an issue with OVPN itself. ... Type every line separately. If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found