Skip to content

Patch uuid.getnode() to use a different MAC address identification method #595

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Apr 25, 2025

Takes python/cpython#132901

Needs to be backported to 3.13, etc.

@zanieb zanieb changed the title Patch uuid.get_node() to use a different MAC address identification method Patch uuid.getnode() to use a different MAC address identification method Apr 25, 2025
@zanieb
Copy link
Member Author

zanieb commented Apr 25, 2025

This doesn't seem to work on aarch64 Linux? (more on this at python/cpython#132901 (comment))

❯ docker run -it -v ./python:/python ubuntu:latest /bin/bash
root@20b506c09fbd:/# /python/install/bin/python -c "import uuid; print(uuid.getnode())"
276090243745164
root@20b506c09fbd:/# /python/install/bin/python -c "import uuid; print(uuid.getnode())"
148934309301581

and something is wrong with the patch on x86-64 macOS (I tested aarch64 macOS locally).

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant