<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Numba on 얼쑤 · Team Edo</title><link>https://team-edo.github.io/tags/numba/</link><description>Recent content in Numba on 얼쑤 · Team Edo</description><generator>Hugo</generator><language>ko-kr</language><lastBuildDate>Wed, 28 Oct 2026 00:00:00 +0900</lastBuildDate><atom:link href="https://team-edo.github.io/tags/numba/index.xml" rel="self" type="application/rss+xml"/><item><title>컨테이너 기동 후 첫 분석 요청이 500인 이유</title><link>https://team-edo.github.io/posts/2026/10/numba-cache-nonroot-first-request/</link><pubDate>Wed, 28 Oct 2026 00:00:00 +0900</pubDate><guid>https://team-edo.github.io/posts/2026/10/numba-cache-nonroot-first-request/</guid><description>&lt;p>얼쑤의 녹음 분석 API를 Docker 이미지로 만들었습니다. 이미지 안에서 root로 실행한 테스트는 통과했고, 기본 실행 명령으로 서버도 떴습니다. 그런데 기본 계정으로 뜬 서버에 처음 녹음 분석을 요청하자 HTTP 500이 돌아왔습니다. 로그에는 &lt;code>RuntimeError&lt;/code>가 남았습니다. 서버가 요청을 받을 수 있게 된 시점과 실제로 분석 코드를 불러오는 시점 사이에 차이가 있었습니다.&lt;/p>
&lt;h2 id="분석-코드를-불러올-때-캐시가-필요했다">모듈을 불러올 때 필요한 Numba 캐시&lt;/h2>
&lt;p>분석에 쓰는 librosa에는 Numba가 JIT 컴파일하고 결과를 캐시하는 함수가 있습니다. 이번에는 분석 요청에서 관련 모듈을 불러올 때 Numba가 캐시 위치를 찾지 못해 &lt;code>cannot cache function … no locator available&lt;/code> 오류를 냈습니다. 요청 전체를 보내지 않고 같은 이미지에서 &lt;code>import librosa.core.notation&lt;/code>만 실행해도 이 오류를 확인할 수 있었습니다.&lt;/p></description></item></channel></rss>