[issue17293] uuid.getnode() MAC address on AIX

2015-01-05 Thread Dimitri John Ledkov

Dimitri John Ledkov added the comment:

I'm getting socket.gaierror from test_ifconfig_getnode / 
uuid._ifconfig_getnode() on python 3.4.2 on Linux, in a no network environment. 
Thus i'd like to see these try:/excepts: to be ported back to 3.4 branch, if 
they haven't been already.

I filed http://bugs.python.org/issue23170 to track my issue.

Feel free to close that one as a (related) dupe of this one.

--
nosy: +xnox

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-11-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-11-21 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 301d62ef5c0b by Serhiy Storchaka in branch '2.7':
Issue #17293: socket.gethostbyname() can raise an exception of FreeBSD.
https://hg.python.org/cpython/rev/301d62ef5c0b

New changeset 97ceab0bd6f8 by Serhiy Storchaka in branch '3.4':
Issue #17293: socket.gethostbyname() can raise an exception of FreeBSD.
https://hg.python.org/cpython/rev/97ceab0bd6f8

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-11-16 Thread koobs

koobs added the comment:

I don't have the environment to test here. Can you run a custom build on the 
buildbots?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-11-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, socket.gaierror was not made an alias of OSError, only subclass of it. 
Well, we can apply the same patch to all releases. Does it fix tests?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-11-15 Thread koobs

koobs added the comment:

I only attached the 2.7 build log because the failures from 3.4 and 3.x are 
identical, copying them here for completeness:

>From 3.4: 

==
ERROR: test_arp_getnode (test.test_uuid.TestUUID)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.4.koobs-freebsd10/build/Lib/test/test_uuid.py", 
line 324, in test_arp_getnode
node = uuid._arp_getnode()
  File "/usr/home/buildbot/python/3.4.koobs-freebsd10/build/Lib/uuid.py", line 
364, in _arp_getnode
ip_addr = socket.gethostbyname(socket.gethostname())
socket.gaierror: [Errno 8] hostname nor servname provided, or not known

--
Ran 18 tests in 0.209s

>From 3.x:


==
ERROR: test_arp_getnode (test.test_uuid.TestUUID)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_uuid.py", 
line 325, in test_arp_getnode
node = uuid._arp_getnode()
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/uuid.py", line 
362, in _arp_getnode
ip_addr = socket.gethostbyname(socket.gethostname())
socket.gaierror: [Errno 8] hostname nor servname provided, or not known

--

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-11-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This issue had added new tests. Here is a patch against 2.7 (3.4+ should use 
OSError instead of socket.gaierror) which fixes _arp_getnode().

--
Added file: http://bugs.python.org/file37196/uuid_arp_getnode_freebsd.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-11-13 Thread koobs

koobs added the comment:

koobs-freebsd10 buildbot broken on all branches since:

2.7: e80cb046e7641fb8a71dda8254d2e619cdd64480
3.4: ba4b31ed2952b65ca447f57fbd6d540ebc4b749c
3.x: 3e4f3cc4f1f9dbee8e0ed5df47f77baae2ad310c

Full (2.7) log attached.

==
ERROR: test_arp_getnode (test.test_uuid.TestUUID)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/2.7.koobs-freebsd10/build/Lib/test/test_uuid.py", 
line 312, in test_arp_getnode
node = uuid._arp_getnode()
  File "/usr/home/buildbot/python/2.7.koobs-freebsd10/build/Lib/uuid.py", line 
348, in _arp_getnode
ip_addr = socket.gethostbyname(socket.gethostname())
gaierror: [Errno 8] hostname nor servname provided, or not known

--
nosy: +koobs
resolution: fixed -> 
status: closed -> open
Added file: 
http://bugs.python.org/file37193/koobs-freebsd10-python27-build758.log

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-11-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Looks as this hasn't broke buildbots.

Thank you Aivars for your patch. Thank you Natali and Victor for your 
suggestions and reviews.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-11-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e80cb046e764 by Serhiy Storchaka in branch '2.7':
Issue #17293: uuid.getnode() now determines MAC address on AIX using netstat.
https://hg.python.org/cpython/rev/e80cb046e764

New changeset ba4b31ed2952 by Serhiy Storchaka in branch '3.4':
Issue #17293: uuid.getnode() now determines MAC address on AIX using netstat.
https://hg.python.org/cpython/rev/ba4b31ed2952

New changeset 3e4f3cc4f1f9 by Serhiy Storchaka in branch 'default':
Issue #17293: uuid.getnode() now determines MAC address on AIX using netstat.
https://hg.python.org/cpython/rev/3e4f3cc4f1f9

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-10-23 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here are updated patches for 3.5 (using subprocess) and 3.4 (using os.popen) 
which addresses Victor's comments.

--
Added file: http://bugs.python.org/file36998/uuid_netstat_getnode-3.5_2.patch
Added file: http://bugs.python.org/file36999/uuid_netstat_getnode-3.4.patch

___
Python tracker 

___diff -r f2ce9603346c Lib/test/test_uuid.py
--- a/Lib/test/test_uuid.py Wed Oct 22 12:33:23 2014 +0200
+++ b/Lib/test/test_uuid.py Thu Oct 23 12:57:55 2014 +0300
@@ -320,6 +320,24 @@ class TestUUID(unittest.TestCase):
 if node is not None:
 self.check_node(node, 'ifconfig')
 
+@unittest.skipUnless(os.name == 'posix', 'requires Posix')
+def test_arp_getnode(self):
+node = uuid._arp_getnode()
+if node is not None:
+self.check_node(node, 'arp')
+
+@unittest.skipUnless(os.name == 'posix', 'requires Posix')
+def test_lanscan_getnode(self):
+node = uuid._lanscan_getnode()
+if node is not None:
+self.check_node(node, 'lanscan')
+
+@unittest.skipUnless(os.name == 'posix', 'requires Posix')
+def test_netstat_getnode(self):
+node = uuid._netstat_getnode()
+if node is not None:
+self.check_node(node, 'netstat')
+
 @unittest.skipUnless(os.name == 'nt', 'requires Windows')
 def test_ipconfig_getnode(self):
 node = uuid._ipconfig_getnode()
@@ -377,7 +395,7 @@ eth0  Link encap:Ethernet  HWaddr 12
 return_value=popen):
 mac = uuid._find_mac(
 command='ifconfig',
-arg='',
+args='',
 hw_identifiers=[b'hwaddr'],
 get_index=lambda x: x + 1,
 )
diff -r f2ce9603346c Lib/uuid.py
--- a/Lib/uuid.py   Wed Oct 22 12:33:23 2014 +0200
+++ b/Lib/uuid.py   Thu Oct 23 12:57:55 2014 +0300
@@ -304,7 +304,7 @@ class UUID(object):
 if self.variant == RFC_4122:
 return int((self.int >> 76) & 0xf)
 
-def _find_mac(command, arg, hw_identifiers, get_index):
+def _popen(command, *args):
 import os, shutil, subprocess
 executable = shutil.which(command)
 if executable is None:
@@ -312,28 +312,32 @@ def _find_mac(command, arg, hw_identifie
 executable = shutil.which(command, path=path)
 if executable is None:
 return None
+# LC_ALL=C to ensure English output, stderr=DEVNULL to prevent output
+# on stderr (Note: we don't have an example where the words we search
+# for are actually localized, but in theory some system could do so.)
+env = dict(os.environ)
+env['LC_ALL'] = 'C'
+proc = subprocess.Popen((executable,) + args,
+stdout=subprocess.PIPE,
+stderr=subprocess.DEVNULL,
+env=env)
+return proc
 
+def _find_mac(command, args, hw_identifiers, get_index):
 try:
-# LC_ALL=C to ensure English output, stderr=DEVNULL to prevent output
-# on stderr (Note: we don't have an example where the words we search
-# for are actually localized, but in theory some system could do so.)
-env = dict(os.environ)
-env['LC_ALL'] = 'C'
-cmd = [executable]
-if arg:
-cmd.append(arg)
-proc = subprocess.Popen(cmd,
-stdout=subprocess.PIPE,
-stderr=subprocess.DEVNULL,
-env=env)
+proc = _popen(command, *args.split())
+if not proc:
+return
 with proc:
 for line in proc.stdout:
-words = line.lower().split()
+words = line.lower().rstrip().split()
 for i in range(len(words)):
 if words[i] in hw_identifiers:
 try:
-return int(
-words[get_index(i)].replace(b':', b''), 16)
+word = words[get_index(i)]
+mac = int(word.replace(b':', b''), 16)
+if mac:
+return mac
 except (ValueError, IndexError):
 # Virtual interfaces, such as those provided by
 # VPNs, do not have a colon-delimited MAC address
@@ -346,27 +350,50 @@ def _find_mac(command, arg, hw_identifie
 
 def _ifconfig_getnode():
 """Get the hardware address on Unix by running ifconfig."""
-
 # This works on Linux ('' or '-a'), Tru64 ('-av'), but not all Unixes.
 for args in ('', '-a', '-av'):
 mac = _find_mac('ifconfig', args, [b'hwaddr', b'ether'], lambda i: i+1)
 if mac:
 return mac
 
-   

[issue17293] uuid.getnode() MAC address on AIX

2014-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> You probably forgot to attach the patch...

Indeed. :-(

--
Added file: http://bugs.python.org/file36993/uuid_netstat_getnode-3.5.patch

___
Python tracker 

___diff -r f2ce9603346c Lib/test/test_uuid.py
--- a/Lib/test/test_uuid.py Wed Oct 22 12:33:23 2014 +0200
+++ b/Lib/test/test_uuid.py Wed Oct 22 21:54:25 2014 +0300
@@ -320,6 +320,24 @@ class TestUUID(unittest.TestCase):
 if node is not None:
 self.check_node(node, 'ifconfig')
 
+@unittest.skipUnless(os.name == 'posix', 'requires Posix')
+def test_arp_getnode(self):
+node = uuid._arp_getnode()
+if node is not None:
+self.check_node(node, 'arp')
+
+@unittest.skipUnless(os.name == 'posix', 'requires Posix')
+def test_lanscan_getnode(self):
+node = uuid._lanscan_getnode()
+if node is not None:
+self.check_node(node, 'lanscan')
+
+@unittest.skipUnless(os.name == 'posix', 'requires Posix')
+def test_netstat_getnode(self):
+node = uuid._netstat_getnode()
+if node is not None:
+self.check_node(node, 'netstat')
+
 @unittest.skipUnless(os.name == 'nt', 'requires Windows')
 def test_ipconfig_getnode(self):
 node = uuid._ipconfig_getnode()
diff -r f2ce9603346c Lib/uuid.py
--- a/Lib/uuid.py   Wed Oct 22 12:33:23 2014 +0200
+++ b/Lib/uuid.py   Wed Oct 22 21:54:25 2014 +0300
@@ -304,7 +304,7 @@ class UUID(object):
 if self.variant == RFC_4122:
 return int((self.int >> 76) & 0xf)
 
-def _find_mac(command, arg, hw_identifiers, get_index):
+def _popen(command, *args):
 import os, shutil, subprocess
 executable = shutil.which(command)
 if executable is None:
@@ -312,20 +312,23 @@ def _find_mac(command, arg, hw_identifie
 executable = shutil.which(command, path=path)
 if executable is None:
 return None
+# LC_ALL=C to ensure English output, stderr=DEVNULL to prevent output
+# on stderr (Note: we don't have an example where the words we search
+# for are actually localized, but in theory some system could do so.)
+env = dict(os.environ)
+env['LC_ALL'] = 'C'
+proc = subprocess.Popen((executable,) + args,
+stdout=subprocess.PIPE,
+stderr=subprocess.DEVNULL,
+env=env)
+return proc
 
+def _find_mac(command, arg, hw_identifiers, get_index):
 try:
-# LC_ALL=C to ensure English output, stderr=DEVNULL to prevent output
-# on stderr (Note: we don't have an example where the words we search
-# for are actually localized, but in theory some system could do so.)
-env = dict(os.environ)
-env['LC_ALL'] = 'C'
-cmd = [executable]
-if arg:
-cmd.append(arg)
-proc = subprocess.Popen(cmd,
-stdout=subprocess.PIPE,
-stderr=subprocess.DEVNULL,
-env=env)
+args = (arg,) if arg else ()
+proc = _popen(command, *args)
+if not proc:
+return
 with proc:
 for line in proc.stdout:
 words = line.lower().split()
@@ -346,27 +349,45 @@ def _find_mac(command, arg, hw_identifie
 
 def _ifconfig_getnode():
 """Get the hardware address on Unix by running ifconfig."""
-
 # This works on Linux ('' or '-a'), Tru64 ('-av'), but not all Unixes.
 for args in ('', '-a', '-av'):
 mac = _find_mac('ifconfig', args, [b'hwaddr', b'ether'], lambda i: i+1)
 if mac:
 return mac
 
-import socket
+def _arp_getnode():
+"""Get the hardware address on Unix by running arp."""
+import os, socket
 ip_addr = socket.gethostbyname(socket.gethostname())
 
 # Try getting the MAC addr from arp based on our IP address (Solaris).
-mac = _find_mac('arp', '-an', [os.fsencode(ip_addr)], lambda i: -1)
-if mac:
-return mac
+return _find_mac('arp', '-an', [os.fsencode(ip_addr)], lambda i: -1) or 
None
 
+def _lanscan_getnode():
+"""Get the hardware address on Unix by running lanscan."""
 # This might work on HP-UX.
-mac = _find_mac('lanscan', '-ai', [b'lan0'], lambda i: 0)
-if mac:
-return mac
+return _find_mac('lanscan', '-ai', [b'lan0'], lambda i: 0) or None
 
-return None
+def _netstat_getnode():
+"""Get the hardware address on Unix by running netstat."""
+# This might work on AIX, Tru64 UNIX and presumably on IRIX.
+try:
+proc = _popen('netstat', '-ia')
+if not proc:
+return
+with proc:
+words = proc.stdout.readline().split()
+i = words.index('Address')
+for line in proc.stdout:
+try:
+words = l

[issue17293] uuid.getnode() MAC address on AIX

2014-10-22 Thread STINNER Victor

STINNER Victor added the comment:

> Here is a patch for 3.5 which uses subprocess.Popen() (subprocess.Popen() 
> used in _find_mac() since issue22637).

You probably forgot to attach the patch...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch for 3.5 which uses subprocess.Popen() (subprocess.Popen() used 
in _find_mac() since issue22637).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> The code you *add in this patch* uses os.popen, why not use subprocess 
> instead?

Added code is just modified copy of existing code.

> Furthermore, the code catches OSError when calling popen(), but
popen() doesn't raise an exception.

It can raise an exception in rare cases. The manual of pipe mentions this. The 
code of posix_popen() contains error handling.

> FYI os.popen() now calls subprocess...

Not in 2.7.

> It's safer to use the subprocess module instead of using a shell (see the 
> recent Shellshock story) to change the environment variables and to redirect 
> stderr.

May be, but this is different issue, which is not related to this issue. If 
os.popen should be replaced with subprocess, it should be done even without 
applying the patch of this issue. Please open new issue.

However the recent Shellshock story affects only users of platforms which use 
bash or zsh as system shell (are there any?).

> subprocess now has a convinient subprocess.DEVNULL.

Not in 2.7.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-10-12 Thread STINNER Victor

STINNER Victor added the comment:

+cmd = 'LC_ALL=C %s %s 2>/dev/null' % (executable, '-ia')

It's safer to use the subprocess module instead of using a shell (see the 
recent Shellshock story) to change the environment variables and to redirect 
stderr. subprocess now has a convinient subprocess.DEVNULL. So it's something 
like:

env = os.environ.copy()
env['LC_ALL'] = 'C'
process = subprocess.Popen([executable, '-ia'], stderr=subprocess.DEVNULL)
...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-10-12 Thread STINNER Victor

STINNER Victor added the comment:

FYI os.popen() now calls subprocess... So it's safe to call directly subprocess.

--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-10-12 Thread Charles-François Natali

Charles-François Natali added the comment:

Why is that a different issue?
The code you *add in this patch* uses os.popen, why not use subprocess instead?

Furthermore, the code catches OSError when calling popen(), but
popen() doesn't raise an exception.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is different issue and can be applied only to 3.5.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-10-12 Thread Charles-François Natali

Charles-François Natali added the comment:

My only comment would be to use subprocess instead of os.popen().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

If there are no objections, I'll commit the patch soon.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-10-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Aivars for your patch. I have verified and confirm that this method 
works on AIX and True64 UNIX (it should also work on IRIX, but I can't login in 
Snakebite's i6).

Here is modified patch. MAC address is now searched only in column with the 
"Address" header. Added try/except around converting to int for the case if 
candidate word contains non-heximal digits. Synchronized _netstat_getnode() 
with current code of _find_mac and extracted common code in separate function. 
Split _ifconfig_getnode() into separate functions which use different commands: 
ifconfig, arp and lanscan.

--
assignee:  -> serhiy.storchaka
nosy: +serhiy.storchaka
stage:  -> patch review
Added file: http://bugs.python.org/file36768/uuid_netstat_getnode.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-07-23 Thread Mark Lawrence

Mark Lawrence added the comment:

David is listed against AIX on the experts list 
https://docs.python.org/devguide/experts.html.  That alone suggests to me that 
AIX is an officially supported platform.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-07-22 Thread Charles-François Natali

Charles-François Natali added the comment:

> Huh?  What does officially supported platform mean? CPython builds and runs 
> on AIX.

It means a platform for which we have regular contributors committed
to support the port, and ideallly with a stable buildbot.

We apparently have an unstable buildbot with mainy tests failing (and
last time I checked it didn't even build IIRC))
http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/

So it would be nice to have the full regtest pass (with skips if applicable).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-07-22 Thread David Edelsohn

David Edelsohn added the comment:

Huh?  What does officially supported platform mean? CPython builds and runs on 
AIX.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-07-22 Thread Charles-François Natali

Charles-François Natali added the comment:

Thanks for the patch, but I'm not even sure AIX is an officially supported 
platform, so I'm not sure what to do with this patch.

--
nosy: +neologix

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2014-07-17 Thread Mark Lawrence

Mark Lawrence added the comment:

@Aivars sorry about the delay in getting back to you.

--
nosy: +BreamoreBoy, David.Edelsohn
type:  -> behavior
versions: +Python 3.4, Python 3.5 -Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17293] uuid.getnode() MAC address on AIX

2013-02-24 Thread Aivars Kalvāns

New submission from Aivars Kalvāns:

uuid.getnode() on AIX returned random integer. This patch finds MAC in output 
of `netstat -ia`.
Tested on AIX 5.2

--
components: Library (Lib)
files: aix_mac.patch
keywords: patch
messages: 182925
nosy: aivarsk
priority: normal
severity: normal
status: open
title: uuid.getnode() MAC address on AIX
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file29229/aix_mac.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com