I’m having an issue with the code interpreter. At first it failed to load files, then I realized it might be a more generalized issue with importing libraries like pandas, numpy, matplotlib etc, since it works when I ask it to only print “hello world”.
MemoryError
. It also happens with the API and with the Palyground using the assistants.
OpenBLAS blas_thread_init: pthread_create failed for thread 16 of 32: Resource temporarily unavailable
Exception ignored in: <bound method IPythonKernel._clean_thread_parent_frames of <ipykernel.ipkernel.IPythonKernel object at 0x7ee571fe4c20>>
Traceback (most recent call last):
File "/home/sandbox/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 775, in _clean_thread_parent_frames
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 17 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 18 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 19 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 20 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 21 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 22 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 23 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 24 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 25 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 26 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 27 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 28 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 29 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 30 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 31 of 32: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
def _clean_thread_parent_frames(
KeyboardInterrupt:
Unexpected exception formatting exception. Falling back to standard exception
Traceback (most recent call last):
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3577, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/tmp/ipykernel_12/3303771377.py", line 1, in <module>
import matplotlib.pyplot as plt
File "/home/sandbox/.local/lib/python3.11/site-packages/matplotlib/__init__.py", line 108, in <module>
import numpy
File "/home/sandbox/.local/lib/python3.11/site-packages/numpy/__init__.py", line 152, in <module>
from . import random
File "/home/sandbox/.local/lib/python3.11/site-packages/numpy/random/__init__.py", line 180, in <module>
from . import _pickle
File "/home/sandbox/.local/lib/python3.11/site-packages/numpy/random/_pickle.py", line 1, in <module>
from .mtrand import RandomState
File "mtrand.pyx", line 1, in init numpy.random.mtrand
File "bit_generator.pyx", line 1, in init numpy.random.bit_generator
ImportError: /home/sandbox/.local/lib/python3.11/site-packages/numpy/random/_common.cpython-311-x86_64-linux-gnu.so: failed to map segment from shared object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 2168, in showtraceback
stb = self.InteractiveTB.structured_traceback(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/ultratb.py", line 1457, in structured_traceback
return FormattedTB.structured_traceback(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/ultratb.py", line 1348, in structured_traceback
return VerboseTB.structured_traceback(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/ultratb.py", line 1195, in structured_traceback
formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/ultratb.py", line 1085, in format_exception_as_a_whole
self.get_records(etb, number_of_lines_of_context, tb_offset) if etb else []
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/ultratb.py", line 1182, in get_records
res = list(stack_data.FrameInfo.stack_data(etb, options=options))[tb_offset:]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/stack_data/core.py", line 597, in stack_data
yield from collapse_repeated(
File "/home/sandbox/.local/lib/python3.11/site-packages/stack_data/utils.py", line 83, in collapse_repeated
yield from map(mapper, original_group)
File "/home/sandbox/.local/lib/python3.11/site-packages/stack_data/core.py", line 587, in mapper
return cls(f, options)
^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/stack_data/core.py", line 551, in __init__
self.executing = Source.executing(frame_or_tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/executing/executing.py", line 264, in executing
source = cls.for_frame(frame)
^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/executing/executing.py", line 183, in for_frame
return cls.for_filename(frame.f_code.co_filename, frame.f_globals or {}, use_cache)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/executing/executing.py", line 212, in for_filename
return cls._for_filename_and_lines(filename, tuple(lines))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/executing/executing.py", line 223, in _for_filename_and_lines
result = source_cache[(filename, lines)] = cls(filename, lines)
^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/executing/executing.py", line 163, in __init__
self.tree = ast.parse(self.text, filename=filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MemoryError