astral-sh / astral-sh/python-build-standalone

`uuid.get_node` is failing to find a stable identifier

Open
#587 19 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.