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
import _xxsubinterpreters
from _datetime import *
id = _xxsubinterpreters.create()
number = 1000
input_string = f'''import _datetime
print(dt.datetime_CAPI)
'''
_xxsubinterpreters.run_string(id, input_string)
Output from python3.12 example.py:
Traceback (most recent call last):
File "/mnt/c/Users/jacky/Desktop/simple_multi/src-gen/workers2_compiledwith12/test_custom.py", line 13, in <module>
_xxsubinterpreters.run_string(id, input_string)
_xxsubinterpreters.RunFailedError: <class 'ImportError'>: module _datetime does not support loading in subinterpreters
jackyk02
changed the title
Unable to import module _datetime into subinterpreters in 3.12
[Per-Interpreter GIL] Unable to import module _datetime into subinterpreters in 3.12
Oct 27, 2023
Bug report
Bug description:
Code Example:
Output from
python3.12 example.py
:CPython versions tested on:
3.12
Operating systems tested on:
Linux
@ericsnowcurrently @ericvsmith Any help would be much appreciated :)
The text was updated successfully, but these errors were encountered: