-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
struct.error: 'q' format requires -9223372036854775808 <= number <= 9223372036854775807 #1205
Comments
It looks like
|
This may also be Python 3.13 / 3.13.1 specific. I installed Python 3.12.8 and I now get reasonable numbers out of
With this version of Python mitogen now runs without any issue. |
Notes
|
It's doesn't look like a boundary value, or a misinterpreted "special" value like -1 >>> hex(18446744072484806452)
'0xffffffffb6ffdf34'
>>> hex (2**64-1)
'0xffffffffffffffff' |
Not seeing the larger value on Ubuntu 24.04 and Python 3.13.1 installed with uv 0.5.11 on aarch64. I don't know what the standalone Python's used by uv are linked against. alex@ubuntu2404:~/src$ uv run --python 3.13 python
Python 3.13.1 (main, Dec 19 2024, 14:23:30) [GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import _thread; _thread.get_ident()
274109895942176
>>> import _thread; hex(_thread.get_ident())
'0xf94d2efa2020'
>>> hex(2**64-1)
'0xffffffffffffffff' alex@ubuntu2404:~/src$ uname -a
Linux ubuntu2404 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:32:09 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux |
DItto in Python 3.13.1 alpine container image
|
👋 Hey,
I was experimenting with mitogen today, and ran into the following issues in one of our devices:
This happens when gathering facts on a normal playbook. I've tested this playbook with mitogen on different hosts and it ran normally.
I suspect it's something to do with this being a musl linked python interpreter, but I can't really confirm it. I've attached strace logs (following the instructions on the website) as well as ansible logs with the verbose flags.
The logs are running on the latest git commit of mitogen (e8005ec) and the error seems to point to this line (
mitogen/mitogen/core.py
Lines 2795 to 2796 in e8005ec
I haven't run into any incompatibilities when running ansible (without mitogen) on this host otherwise.
It's installed from homebrew but I don't think they carry any patches
module_utils
loaded?No
Yes!
Host: MacOS Sonoma 14.6.1
Target: PTXDist 4.6.1 (
Linux bad 5.15.107-rt62-w04.03.06 #1 PREEMPT_RT Wed Oct 23 17:06:52 UTC 2024 armv7l GNU/Linux
)Host Python: Python 3.12.7 (Installed from homebrew)
Target Python: Python 3.13.1 (Built against musl libc)
Attached Files:
ansible-verbose.txt
ansible-config-changed.txt
strace-python.12959.12963.txt
strace-python.12959.12964.txt
strace-python.12959.12986.txt
The text was updated successfully, but these errors were encountered: