got Error on start “unsupported address family”
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
Than you for reading this
when I run from source, I got "unsupported address family" Error, because method "_get_wildcard_address" returned a value of "::"
in tensorboard source code, I modified program.py, print some vars
program.py
def _get_wildcard_address(self, port):
"""Returns a wildcard address for the port in question.
This will attempt to follow the best practice of calling getaddrinfo() with
a null host and AI_PASSIVE to request a server-side socket wildcard address.
If that succeeds, this returns the first IPv6 address found, or if none,
then returns the first IPv4 address. If that fails, then this returns the
hardcoded address "::" if socket.has_ipv6 is True, else "0.0.0.0".
"""
print("port:", port)
fallback_address = '::' if socket.has_ipv6 else '0.0.0.0'
if hasattr(socket, 'AI_PASSIVE'):
try:
addrinfos = socket.getaddrinfo(None, port, socket.AF_UNSPEC,
socket.SOCK_STREAM, socket.IPPROTO_TCP,
socket.AI_PASSIVE)
print("addrinfos:", addrinfos)
except socket.gaierror as e:
logger.warn('Failed to auto-detect wildcard address, assuming %s: %s',
fallback_address, str(e))
return fallback_address
addrs_by_family = defaultdict(list)
for family, _, _, _, sockaddr in addrinfos:
# Format of the "sockaddr" socket address varies by address family,
# but [0] is always the IP address portion.
addrs_by_family[family].append(sockaddr[0])
print("addrs_by_family:", addrs_by_family)
print("socket.AF_INET6:", socket.AF_INET6)
print("socket.AF_INET:", socket.AF_INET)
if hasattr(socket, 'AF_INET6') and addrs_by_family[socket.AF_INET6]:
print("return INET6 addr:", addrs_by_family[socket.AF_INET6][0])
return addrs_by_family[socket.AF_INET6][0]
if hasattr(socket, 'AF_INET') and addrs_by_family[socket.AF_INET]:
print("return INET addr:", addrs_by_family[socket.AF_INET][0])
return addrs_by_family[socket.AF_INET][0]
logger.warn('Failed to auto-detect wildcard address, assuming %s',
fallback_address)
return fallback_address
run command got this:
$ bazel run //tensorboard -- --logdir /home/admin/sean.xd/tmp/
INFO: Analysed target //tensorboard:tensorboard (0 packages loaded).
INFO: Found 1 target...
Target //tensorboard:tensorboard up-to-date:
bazel-bin/tensorboard/tensorboard
INFO: Elapsed time: 0.280s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
port: 6006
addrinfos: [(2, 1, 6, '', ('0.0.0.0', 6006)), (10, 1, 6, '', ('::', 6006, 0, 0))]
addrs_by_family: defaultdict(<type 'list'>, {2: ['0.0.0.0'], 10: ['::']})
socket.AF_INET6: 10
socket.AF_INET: 2
return INET6 addr: ::
host: ::
E1116 20:02:21.122143 MainThread program.py:201] Tensorboard could not bind to unsupported address family ::
WARNING: Logging before flag parsing goes to stderr.
E1116 20:02:21.122143 139781956085568 program.py:201] Tensorboard could not bind to unsupported address family ::
ERROR: Tensorboard could not bind to unsupported address family ::
envivonment:
$ uname -a
Linux arks7.inc.alipay.net 3.10.0-327.ali2000.alios7.x86_64 #1 SMP Tue Dec 29 19:54:05 CST 2015 x86_64 x86_64 x86_64 GNU/Linux
(xudong_test)
tensorflow tensorboard
add a comment |
Than you for reading this
when I run from source, I got "unsupported address family" Error, because method "_get_wildcard_address" returned a value of "::"
in tensorboard source code, I modified program.py, print some vars
program.py
def _get_wildcard_address(self, port):
"""Returns a wildcard address for the port in question.
This will attempt to follow the best practice of calling getaddrinfo() with
a null host and AI_PASSIVE to request a server-side socket wildcard address.
If that succeeds, this returns the first IPv6 address found, or if none,
then returns the first IPv4 address. If that fails, then this returns the
hardcoded address "::" if socket.has_ipv6 is True, else "0.0.0.0".
"""
print("port:", port)
fallback_address = '::' if socket.has_ipv6 else '0.0.0.0'
if hasattr(socket, 'AI_PASSIVE'):
try:
addrinfos = socket.getaddrinfo(None, port, socket.AF_UNSPEC,
socket.SOCK_STREAM, socket.IPPROTO_TCP,
socket.AI_PASSIVE)
print("addrinfos:", addrinfos)
except socket.gaierror as e:
logger.warn('Failed to auto-detect wildcard address, assuming %s: %s',
fallback_address, str(e))
return fallback_address
addrs_by_family = defaultdict(list)
for family, _, _, _, sockaddr in addrinfos:
# Format of the "sockaddr" socket address varies by address family,
# but [0] is always the IP address portion.
addrs_by_family[family].append(sockaddr[0])
print("addrs_by_family:", addrs_by_family)
print("socket.AF_INET6:", socket.AF_INET6)
print("socket.AF_INET:", socket.AF_INET)
if hasattr(socket, 'AF_INET6') and addrs_by_family[socket.AF_INET6]:
print("return INET6 addr:", addrs_by_family[socket.AF_INET6][0])
return addrs_by_family[socket.AF_INET6][0]
if hasattr(socket, 'AF_INET') and addrs_by_family[socket.AF_INET]:
print("return INET addr:", addrs_by_family[socket.AF_INET][0])
return addrs_by_family[socket.AF_INET][0]
logger.warn('Failed to auto-detect wildcard address, assuming %s',
fallback_address)
return fallback_address
run command got this:
$ bazel run //tensorboard -- --logdir /home/admin/sean.xd/tmp/
INFO: Analysed target //tensorboard:tensorboard (0 packages loaded).
INFO: Found 1 target...
Target //tensorboard:tensorboard up-to-date:
bazel-bin/tensorboard/tensorboard
INFO: Elapsed time: 0.280s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
port: 6006
addrinfos: [(2, 1, 6, '', ('0.0.0.0', 6006)), (10, 1, 6, '', ('::', 6006, 0, 0))]
addrs_by_family: defaultdict(<type 'list'>, {2: ['0.0.0.0'], 10: ['::']})
socket.AF_INET6: 10
socket.AF_INET: 2
return INET6 addr: ::
host: ::
E1116 20:02:21.122143 MainThread program.py:201] Tensorboard could not bind to unsupported address family ::
WARNING: Logging before flag parsing goes to stderr.
E1116 20:02:21.122143 139781956085568 program.py:201] Tensorboard could not bind to unsupported address family ::
ERROR: Tensorboard could not bind to unsupported address family ::
envivonment:
$ uname -a
Linux arks7.inc.alipay.net 3.10.0-327.ali2000.alios7.x86_64 #1 SMP Tue Dec 29 19:54:05 CST 2015 x86_64 x86_64 x86_64 GNU/Linux
(xudong_test)
tensorflow tensorboard
Please provide a Minimal, Complete, and Verifiable example which others can run to reproduce your problem.
– IonicSolutions
Nov 16 '18 at 12:36
that looks like a env problem, I don't know how to provide a env.
– xu dong
Nov 19 '18 at 4:10
$ uname -a Linux arks7.inc.alipay.net 3.10.0-327.ali2000.alios7.x86_64 #1 SMP Tue Dec 29 19:54:05 CST 2015 x86_64 x86_64 x86_64 GNU/Linux (xudong_test)
– xu dong
Nov 19 '18 at 4:11
add a comment |
Than you for reading this
when I run from source, I got "unsupported address family" Error, because method "_get_wildcard_address" returned a value of "::"
in tensorboard source code, I modified program.py, print some vars
program.py
def _get_wildcard_address(self, port):
"""Returns a wildcard address for the port in question.
This will attempt to follow the best practice of calling getaddrinfo() with
a null host and AI_PASSIVE to request a server-side socket wildcard address.
If that succeeds, this returns the first IPv6 address found, or if none,
then returns the first IPv4 address. If that fails, then this returns the
hardcoded address "::" if socket.has_ipv6 is True, else "0.0.0.0".
"""
print("port:", port)
fallback_address = '::' if socket.has_ipv6 else '0.0.0.0'
if hasattr(socket, 'AI_PASSIVE'):
try:
addrinfos = socket.getaddrinfo(None, port, socket.AF_UNSPEC,
socket.SOCK_STREAM, socket.IPPROTO_TCP,
socket.AI_PASSIVE)
print("addrinfos:", addrinfos)
except socket.gaierror as e:
logger.warn('Failed to auto-detect wildcard address, assuming %s: %s',
fallback_address, str(e))
return fallback_address
addrs_by_family = defaultdict(list)
for family, _, _, _, sockaddr in addrinfos:
# Format of the "sockaddr" socket address varies by address family,
# but [0] is always the IP address portion.
addrs_by_family[family].append(sockaddr[0])
print("addrs_by_family:", addrs_by_family)
print("socket.AF_INET6:", socket.AF_INET6)
print("socket.AF_INET:", socket.AF_INET)
if hasattr(socket, 'AF_INET6') and addrs_by_family[socket.AF_INET6]:
print("return INET6 addr:", addrs_by_family[socket.AF_INET6][0])
return addrs_by_family[socket.AF_INET6][0]
if hasattr(socket, 'AF_INET') and addrs_by_family[socket.AF_INET]:
print("return INET addr:", addrs_by_family[socket.AF_INET][0])
return addrs_by_family[socket.AF_INET][0]
logger.warn('Failed to auto-detect wildcard address, assuming %s',
fallback_address)
return fallback_address
run command got this:
$ bazel run //tensorboard -- --logdir /home/admin/sean.xd/tmp/
INFO: Analysed target //tensorboard:tensorboard (0 packages loaded).
INFO: Found 1 target...
Target //tensorboard:tensorboard up-to-date:
bazel-bin/tensorboard/tensorboard
INFO: Elapsed time: 0.280s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
port: 6006
addrinfos: [(2, 1, 6, '', ('0.0.0.0', 6006)), (10, 1, 6, '', ('::', 6006, 0, 0))]
addrs_by_family: defaultdict(<type 'list'>, {2: ['0.0.0.0'], 10: ['::']})
socket.AF_INET6: 10
socket.AF_INET: 2
return INET6 addr: ::
host: ::
E1116 20:02:21.122143 MainThread program.py:201] Tensorboard could not bind to unsupported address family ::
WARNING: Logging before flag parsing goes to stderr.
E1116 20:02:21.122143 139781956085568 program.py:201] Tensorboard could not bind to unsupported address family ::
ERROR: Tensorboard could not bind to unsupported address family ::
envivonment:
$ uname -a
Linux arks7.inc.alipay.net 3.10.0-327.ali2000.alios7.x86_64 #1 SMP Tue Dec 29 19:54:05 CST 2015 x86_64 x86_64 x86_64 GNU/Linux
(xudong_test)
tensorflow tensorboard
Than you for reading this
when I run from source, I got "unsupported address family" Error, because method "_get_wildcard_address" returned a value of "::"
in tensorboard source code, I modified program.py, print some vars
program.py
def _get_wildcard_address(self, port):
"""Returns a wildcard address for the port in question.
This will attempt to follow the best practice of calling getaddrinfo() with
a null host and AI_PASSIVE to request a server-side socket wildcard address.
If that succeeds, this returns the first IPv6 address found, or if none,
then returns the first IPv4 address. If that fails, then this returns the
hardcoded address "::" if socket.has_ipv6 is True, else "0.0.0.0".
"""
print("port:", port)
fallback_address = '::' if socket.has_ipv6 else '0.0.0.0'
if hasattr(socket, 'AI_PASSIVE'):
try:
addrinfos = socket.getaddrinfo(None, port, socket.AF_UNSPEC,
socket.SOCK_STREAM, socket.IPPROTO_TCP,
socket.AI_PASSIVE)
print("addrinfos:", addrinfos)
except socket.gaierror as e:
logger.warn('Failed to auto-detect wildcard address, assuming %s: %s',
fallback_address, str(e))
return fallback_address
addrs_by_family = defaultdict(list)
for family, _, _, _, sockaddr in addrinfos:
# Format of the "sockaddr" socket address varies by address family,
# but [0] is always the IP address portion.
addrs_by_family[family].append(sockaddr[0])
print("addrs_by_family:", addrs_by_family)
print("socket.AF_INET6:", socket.AF_INET6)
print("socket.AF_INET:", socket.AF_INET)
if hasattr(socket, 'AF_INET6') and addrs_by_family[socket.AF_INET6]:
print("return INET6 addr:", addrs_by_family[socket.AF_INET6][0])
return addrs_by_family[socket.AF_INET6][0]
if hasattr(socket, 'AF_INET') and addrs_by_family[socket.AF_INET]:
print("return INET addr:", addrs_by_family[socket.AF_INET][0])
return addrs_by_family[socket.AF_INET][0]
logger.warn('Failed to auto-detect wildcard address, assuming %s',
fallback_address)
return fallback_address
run command got this:
$ bazel run //tensorboard -- --logdir /home/admin/sean.xd/tmp/
INFO: Analysed target //tensorboard:tensorboard (0 packages loaded).
INFO: Found 1 target...
Target //tensorboard:tensorboard up-to-date:
bazel-bin/tensorboard/tensorboard
INFO: Elapsed time: 0.280s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
port: 6006
addrinfos: [(2, 1, 6, '', ('0.0.0.0', 6006)), (10, 1, 6, '', ('::', 6006, 0, 0))]
addrs_by_family: defaultdict(<type 'list'>, {2: ['0.0.0.0'], 10: ['::']})
socket.AF_INET6: 10
socket.AF_INET: 2
return INET6 addr: ::
host: ::
E1116 20:02:21.122143 MainThread program.py:201] Tensorboard could not bind to unsupported address family ::
WARNING: Logging before flag parsing goes to stderr.
E1116 20:02:21.122143 139781956085568 program.py:201] Tensorboard could not bind to unsupported address family ::
ERROR: Tensorboard could not bind to unsupported address family ::
envivonment:
$ uname -a
Linux arks7.inc.alipay.net 3.10.0-327.ali2000.alios7.x86_64 #1 SMP Tue Dec 29 19:54:05 CST 2015 x86_64 x86_64 x86_64 GNU/Linux
(xudong_test)
tensorflow tensorboard
tensorflow tensorboard
edited Nov 19 '18 at 4:12
xu dong
asked Nov 16 '18 at 12:33
xu dongxu dong
11
11
Please provide a Minimal, Complete, and Verifiable example which others can run to reproduce your problem.
– IonicSolutions
Nov 16 '18 at 12:36
that looks like a env problem, I don't know how to provide a env.
– xu dong
Nov 19 '18 at 4:10
$ uname -a Linux arks7.inc.alipay.net 3.10.0-327.ali2000.alios7.x86_64 #1 SMP Tue Dec 29 19:54:05 CST 2015 x86_64 x86_64 x86_64 GNU/Linux (xudong_test)
– xu dong
Nov 19 '18 at 4:11
add a comment |
Please provide a Minimal, Complete, and Verifiable example which others can run to reproduce your problem.
– IonicSolutions
Nov 16 '18 at 12:36
that looks like a env problem, I don't know how to provide a env.
– xu dong
Nov 19 '18 at 4:10
$ uname -a Linux arks7.inc.alipay.net 3.10.0-327.ali2000.alios7.x86_64 #1 SMP Tue Dec 29 19:54:05 CST 2015 x86_64 x86_64 x86_64 GNU/Linux (xudong_test)
– xu dong
Nov 19 '18 at 4:11
Please provide a Minimal, Complete, and Verifiable example which others can run to reproduce your problem.
– IonicSolutions
Nov 16 '18 at 12:36
Please provide a Minimal, Complete, and Verifiable example which others can run to reproduce your problem.
– IonicSolutions
Nov 16 '18 at 12:36
that looks like a env problem, I don't know how to provide a env.
– xu dong
Nov 19 '18 at 4:10
that looks like a env problem, I don't know how to provide a env.
– xu dong
Nov 19 '18 at 4:10
$ uname -a Linux arks7.inc.alipay.net 3.10.0-327.ali2000.alios7.x86_64 #1 SMP Tue Dec 29 19:54:05 CST 2015 x86_64 x86_64 x86_64 GNU/Linux (xudong_test)
– xu dong
Nov 19 '18 at 4:11
$ uname -a Linux arks7.inc.alipay.net 3.10.0-327.ali2000.alios7.x86_64 #1 SMP Tue Dec 29 19:54:05 CST 2015 x86_64 x86_64 x86_64 GNU/Linux (xudong_test)
– xu dong
Nov 19 '18 at 4:11
add a comment |
1 Answer
1
active
oldest
votes
Recently, I faced a similar problem.
In case, if you haven't found a solution, you may want to give a look at https://groups.google.com/forum/#!topic/keras-users/CSKLSgCqjaM
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53338011%2fgot-error-on-start-unsupported-address-family%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Recently, I faced a similar problem.
In case, if you haven't found a solution, you may want to give a look at https://groups.google.com/forum/#!topic/keras-users/CSKLSgCqjaM
add a comment |
Recently, I faced a similar problem.
In case, if you haven't found a solution, you may want to give a look at https://groups.google.com/forum/#!topic/keras-users/CSKLSgCqjaM
add a comment |
Recently, I faced a similar problem.
In case, if you haven't found a solution, you may want to give a look at https://groups.google.com/forum/#!topic/keras-users/CSKLSgCqjaM
Recently, I faced a similar problem.
In case, if you haven't found a solution, you may want to give a look at https://groups.google.com/forum/#!topic/keras-users/CSKLSgCqjaM
answered Dec 12 '18 at 13:57
Pramod BachhavPramod Bachhav
61
61
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53338011%2fgot-error-on-start-unsupported-address-family%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please provide a Minimal, Complete, and Verifiable example which others can run to reproduce your problem.
– IonicSolutions
Nov 16 '18 at 12:36
that looks like a env problem, I don't know how to provide a env.
– xu dong
Nov 19 '18 at 4:10
$ uname -a Linux arks7.inc.alipay.net 3.10.0-327.ali2000.alios7.x86_64 #1 SMP Tue Dec 29 19:54:05 CST 2015 x86_64 x86_64 x86_64 GNU/Linux (xudong_test)
– xu dong
Nov 19 '18 at 4:11