Netflix / photon

Photon is a Java implementation of the Interoperable Master Format (IMF) standard. IMF is a SMPTE standard whose core constraints are defined in the specification st2067-2:2013
Apache License 2.0
239 stars 78 forks source link

slf4j error #366

Closed llamafilm closed 3 months ago

llamafilm commented 6 months ago

I tried running the included Dockerfile and got this error:

% docker build -t photon . 
% docker run --rm -v ./IMF/:/IMF photon IMPAnalyzer /IMF/colorbars
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
    at com.netflix.imflibrary.app.IMPAnalyzer.<clinit>(IMPAnalyzer.java:55)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
    at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    ... 1 more

I'm not a java developer so I don't know the implications of this, but I fixed it by adding slf4j-simple as a dependency: https://github.com/llamafilm/photon/commit/41015cf9c7e8cadcf8c335d2a2114553023dbe58

fschleich commented 3 months ago

Thanks - this has been addressed via #375