python 2.7 usage failure

Ryan Schmidt ryandesign at macports.org
Mon Jun 25 19:25:02 UTC 2018


On Jun 25, 2018, at 09:02, Riccardo Mottola wrote:

> Hi,
> 
> today during my attempts of TFF build, I get this unexpected stacktrace:
> 
> Traceback (most recent call last):
>  File "/Users/multix/Documents/code/tenfourfox/mach", line 148, in <module>
>    main(sys.argv[1:])
>  File "/Users/multix/Documents/code/tenfourfox/mach", line 76, in main
>    mach = get_mach()
>  File "/Users/multix/Documents/code/tenfourfox/mach", line 67, in get_mach
>    mach = check_and_get_mach(dir_path)
>  File "/Users/multix/Documents/code/tenfourfox/mach", line 42, in check_and_get_mach
>    return load_mach(dir_path, mach_path)
>  File "/Users/multix/Documents/code/tenfourfox/mach", line 30, in load_mach
>    return mach_bootstrap.bootstrap(dir_path)
>  File "/Users/multix/Documents/code/tenfourfox/build/mach_bootstrap.py", line 317, in bootstrap
>    mach.load_commands_from_file(os.path.join(mozilla_dir, path))
>  File "/Users/multix/Documents/code/tenfourfox/python/mach/mach/main.py", line 256, in load_commands_from_file
>    module_name = 'mach.commands.%s' % uuid.uuid1().get_hex()
>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/uuid.py", line 588, in uuid1
>    clock_seq_hi_variant, clock_seq_low, node), version=1)
>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/uuid.py", line 164, in __init__
>    raise ValueError('field 6 out of range (need a 48-bit value)')
> ValueError: field 6 out of range (need a 48-bit value)
> Traceback (most recent call last):
>  File "/Users/multix/Documents/code/tenfourfox/mach", line 148, in <module>
>    main(sys.argv[1:])
>  File "/Users/multix/Documents/code/tenfourfox/mach", line 76, in main
>    mach = get_mach()
>  File "/Users/multix/Documents/code/tenfourfox/mach", line 67, in get_mach
>    mach = check_and_get_mach(dir_path)
>  File "/Users/multix/Documents/code/tenfourfox/mach", line 42, in check_and_get_mach
>    return load_mach(dir_path, mach_path)
>  File "/Users/multix/Documents/code/tenfourfox/mach", line 30, in load_mach
>    return mach_bootstrap.bootstrap(dir_path)
>  File "/Users/multix/Documents/code/tenfourfox/build/mach_bootstrap.py", line 317, in bootstrap
>    mach.load_commands_from_file(os.path.join(mozilla_dir, path))
>  File "/Users/multix/Documents/code/tenfourfox/python/mach/mach/main.py", line 256, in load_commands_from_file
>    module_name = 'mach.commands.%s' % uuid.uuid1().get_hex()
>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/uuid.py", line 588, in uuid1
>    clock_seq_hi_variant, clock_seq_low, node), version=1)
>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/uuid.py", line 164, in __init__
>    raise ValueError('field 6 out of range (need a 48-bit value)')
> ValueError: field 6 out of range (need a 48-bit value)
> python2.7 /Users/multix/Documents/code/tenfourfox/config/pythonpath.py -I /Users/multix/Documents/code/tenfourfox/testing/mozbase/mozfile \
>    /Users/multix/Documents/code/tenfourfox/python/mozbuild/mozbuild/controller/clobber.py /Users/multix/Documents/code/tenfourfox
> Usage: clobber.py topsrcdir topobjdir
> 
> 
> 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?



More information about the macports-users mailing list