Hi Ryan!

On 2018-06-25 21:25:02 +0200 Ryan Schmidt <[email protected]> wrote:

I suppose python is acting up, since this always worked.
Can you tell if it is core python or some modules acting up?

While not all packages I have are up-to-date since I have some issues to fix, all python modules look to be except one. Here is the situation:
py27-numpy                     @1.14.5         python/py-numpy


the package currently has some issues installing, I will report about that. Can it be related? Doesn't look like

Riccardo


It looks like there was a bug in Python's uuid:

https://bugs.python.org/issue32502

It looks like it was fixed in Python 3.6.5. Can you use that instead of Python 2.7?


No, touching a firefox build is tricky...
The issue looks exactly as that bug! interesting is that it is an old MacBook and 10.5 Leopard, nothign should have changed!

Anyway, I backported the patch to 2.7! easy enough.. I did only the fix part, not the test one, but...

Could you add it to our build? Would be great! It fixed it for me. Attached!

Riccardo

<uuid-64bit.patch>
--- uuid.py	2018-06-26 20:57:57.000000000 +0200
+++ uuid.py.orig	2018-06-26 20:49:55.000000000 +0200
@@ -522,12 +522,6 @@
 
 _node = None
 
-_NODE_GETTERS_WIN32 = [_windll_getnode, _netbios_getnode, _ipconfig_getnode]
-
-_NODE_GETTERS_UNIX = [_unixdll_getnode, _ifconfig_getnode, _arp_getnode,
-                      _lanscan_getnode, _netstat_getnode]
-
-
 def getnode():
     """Get the hardware address as a 48-bit positive integer.
 
@@ -543,18 +537,18 @@
 
     import sys
     if sys.platform == 'win32':
-        getters = _NODE_GETTERS_WIN32
+        getters = [_windll_getnode, _netbios_getnode, _ipconfig_getnode]
     else:
-        getters = _NODE_GETTERS_UNIX
+        getters = [_unixdll_getnode, _ifconfig_getnode, _arp_getnode,
+                   _lanscan_getnode, _netstat_getnode]
 
     for getter in getters + [_random_getnode]:
         try:
             _node = getter()
         except:
             continue
-        if (_node is not None) and (0 <= _node < (1 << 48)):
+        if _node is not None:
             return _node
-    assert False, '_random_getnode() returned invalid value: {}'.format(_node)
 
 _last_timestamp = None
 

Reply via email to