astral-sh / astral-sh/python-build-standalone
`uuid.get_node` is failing to find a stable identifier
Open
bug
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 314
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 27
Description
```
❯ uvx python -c "import uuid; print(uuid.getnode())"
87776899200804
❯ uvx python -c "import uuid; print(uuid.getnode())"
16554352112436
❯ uvx --no-managed-python python -c "import uuid; print(uuid.getnode())"
178803724683704
❯ uvx --no-managed-python python -c "import uuid; print(uuid.getnode())"
178803724683704
```
https://docs.python.org/3/library/uuid.html#uuid.getnode
> ... If all attempts to obtain the hardware address fail, we choose a random 48-bit number with the multicast bit (least significant bit of the first octet) set to 1 as recommended in RFC 4122.
Contributor guide
Assessment
This issue has not been assessed yet.