You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected behavior?
the outcome of "python test_case.py" and test_case.exe should be similar
python test_case,py
STDOUT: Logging foo from test_case.py
loki : Logging foo from test_case.py
test_case.exe
STDOUT: Logging foo from test_case.exe
loki : Logging foo from test_case.exe
What is the actual behavior?
This is the actual outcome :
python test_case,py
STDOUT: Logging foo from test_case.py
loki : Logging foo from test_case.py
test_case.exe
STDOUT: Logging foo from test_case.exe Failed to load context: contextvars_context Traceback (most recent call last): File "C:\Users\smuntean\AppData\Local\Temp\ONE57C~1\test_case.py", line 18, in <module> log.info(f"Logging foo from {sys.argv[0]} ") File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\logging\__init__.py", line 1477, in info File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\logging\__init__.py", line 1624, in _log File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\logging\__init__.py", line 1634, in handle File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\logging\__init__.py", line 1696, in callHandlers File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\logging\__init__.py", line 968, in handle File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\sdk\_logs\_internal\__init__.py", line 382, in emit File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\sdk\_logs\_internal\__init__.py", line 361, in _translate File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\trace\propagation\__init__.py", line 48, in get_current_span File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\context\__init__.py", line 96, in get_value File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\context\__init__.py", line 67, in wrapper File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\context\__init__.py", line 131, in get_current AttributeError: 'NoneType' object has no attribute 'get_current'
loki :
Nothing
The text was updated successfully, but these errors were encountered:
I've run several tests with a newer Nuitka (version 1.5.3) and the compilation of next(iter) (the cause of this issue) Python code seems to generate C++ code with equivalent functionality.
A workaround to resolve this issue would be to upgrade Nuitka to a newer version (1.5.3 seems to fine, although older versions newer than 1.4.1 might also resolve the issue)
Describe your environment
Operating system: Windows 11
Python version :3.10
Python dependencies : Nuitka 1.4.1 (https://pypi.org/project/Nuitka/1.4.1)
OpenTelemetry modules:
Checked if version has been fixed in main : Yes, but issue is not fixed
Steps to reproduce
Describe exactly how to reproduce the error. Include a code sample if applicable.
Content of test_case.py:
python -m nuitka test_case.py --standalone --onefile
python test_case.py
test_case.exe
What is the expected behavior?
the outcome of "python test_case.py" and test_case.exe should be similar
STDOUT:
Logging foo from test_case.py
loki :
Logging foo from test_case.py
STDOUT:
Logging foo from test_case.exe
loki :
Logging foo from test_case.exe
What is the actual behavior?
This is the actual outcome :
STDOUT:
Logging foo from test_case.py
loki :
Logging foo from test_case.py
STDOUT:
Logging foo from test_case.exe Failed to load context: contextvars_context Traceback (most recent call last): File "C:\Users\smuntean\AppData\Local\Temp\ONE57C~1\test_case.py", line 18, in <module> log.info(f"Logging foo from {sys.argv[0]} ") File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\logging\__init__.py", line 1477, in info File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\logging\__init__.py", line 1624, in _log File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\logging\__init__.py", line 1634, in handle File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\logging\__init__.py", line 1696, in callHandlers File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\logging\__init__.py", line 968, in handle File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\sdk\_logs\_internal\__init__.py", line 382, in emit File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\sdk\_logs\_internal\__init__.py", line 361, in _translate File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\trace\propagation\__init__.py", line 48, in get_current_span File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\context\__init__.py", line 96, in get_value File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\context\__init__.py", line 67, in wrapper File "C:\Users\xxxxxxxxx\AppData\Local\Temp\ONE57C~1\opentelemetry\context\__init__.py", line 131, in get_current AttributeError: 'NoneType' object has no attribute 'get_current'
loki :
Nothing
The text was updated successfully, but these errors were encountered: