elastic / die-python

Native Python3 bindings for @horsicq's Detect-It-Easy
Apache License 2.0
48 stars 3 forks source link

is there are way to mute qt.qml.compiler msgs? #20

Open doomedraven opened 2 months ago

doomedraven commented 2 months ago

Hello, first of all thank you for bindings, we use it in CAPE sandbox. I was trying to find solution by myself but i don't see how to fix it. any idea?

i see logs like those per each file and that spams a lot output

thanks in advance

qt.core.qobject.connect: QObject::connect: No such signal global_script::_removeResultSignal(QString)
qt.core.qobject.connect: QObject::connect: No such signal global_script::_removeResultSignal(QString)
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/archive.AR.1.sg:46:37 Variable "nOffset" is used before its declaration at 51:13.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TGA.1.sg:18:54 Variable "col" is used before its declaration at 36:9.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:16:50 Variable "nOffset" is used before its declaration at 82:17.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:16:63 Variable "bEndian" is used before its declaration at 70:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:17:60 Variable "nCount" is used before its declaration at 89:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:21:21 Variable "nCount" is used before its declaration at 89:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:22:53 Variable "nOffset" is used before its declaration at 82:17.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:22:66 Variable "bEndian" is used before its declaration at 70:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:25:54 Variable "nOffset" is used before its declaration at 82:17.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:25:67 Variable "bEndian" is used before its declaration at 70:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:26:28 Variable "nCount" is used before its declaration at 89:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:27:70 Variable "bEndian" is used before its declaration at 70:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:34:21 Variable "nCount" is used before its declaration at 89:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:35:53 Variable "nOffset" is used before its declaration at 82:17.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:35:66 Variable "bEndian" is used before its declaration at 70:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:38:54 Variable "nOffset" is used before its declaration at 82:17.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:38:67 Variable "bEndian" is used before its declaration at 70:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:39:28 Variable "nCount" is used before its declaration at 89:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/image.TIFF.1.sg:40:70 Variable "bEndian" is used before its declaration at 70:21.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/audio.1.sg:4725:16 Variable "lastsmpofs" is used before its declaration at 4851:13.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/audio.1.sg:4828:54 Variable "u" is used before its declaration at 4958:29.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/audio.1.sg:4830:46 Variable "u" is used before its declaration at 4958:29.
qt.qml.compiler: file:///home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/die/db/db/Binary/audio.1.sg:4830:60 Variable "u" is used before its declaration at 4958:29.

installed from pip and used as result_json = die.scan_file(file_path, die.ScanFlags.RESULT_AS_JSON, str(die.database_path / "db"))

calladoum-elastic commented 1 month ago

Hi @doomedraven !

Sorry for the long delay in replying. Those messages are indeed pretty annoying. As far as I could tell since they are Qt specific, I have been looking for a way to silence them through a build option and haven't found anything so far, but I will have another look and keep this issue updated.

Thanks

doomedraven commented 1 month ago

Thank you

El vie, 25 oct 2024, 18:33, Christophe Alladoum @.***> escribió:

Hi @doomedraven https://github.com/doomedraven !

Sorry for the long delay in replying. Those messages are indeed pretty annoying. As far as I could tell since they are Qt specific, I have been looking for a way to silence them through a build option and haven't found anything so far, but I will have another look and keep this issue updated.

Thanks

— Reply to this email directly, view it on GitHub https://github.com/elastic/die-python/issues/20#issuecomment-2438276411, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOFH3434LXTNO747HBKKKLZ5JXFXAVCNFSM6AAAAABOZ7G2Q2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZYGI3TMNBRGE . You are receiving this because you were mentioned.Message ID: @.***>