mirror of
https://github.com/Ladebeze66/llm_ticket3.git
synced 2025-12-13 10:46:51 +01:00
66 lines
6.7 KiB
Plaintext
66 lines
6.7 KiB
Plaintext
2025-04-24 15:31:15,914 - DebugImageAnalyser - INFO - Création des agents
|
|
2025-04-24 15:31:15,914 - AgentFactoryLlamaVision - INFO - Création de l'agent d'analyse des images (llama_vision)
|
|
2025-04-24 15:31:15,914 - AgentFactoryLlamaVision - INFO - Initialisation du modèle llama_vision (modèle: llama3.2-vision:90b-instruct-q8_0)
|
|
2025-04-24 15:31:15,915 - LlamaVision - INFO - Initializing LlamaVision with model llama3.2-vision:90b-instruct-q8_0 (English-only mode)
|
|
2025-04-24 15:31:15,915 - AgentImageAnalyser - INFO - AgentImageAnalyser initialized
|
|
2025-04-24 15:31:15,915 - DebugImageAnalyser - INFO - Agent créé: AgentImageAnalyser
|
|
2025-04-24 15:31:15,915 - DebugImageAnalyser - INFO - Attribut llm: None
|
|
2025-04-24 15:31:15,915 - DebugImageAnalyser - INFO - Méthode peut_analyser_images: False
|
|
2025-04-24 15:31:15,915 - DebugImageAnalyser - INFO - Méthode analyser_image: False
|
|
2025-04-24 15:31:15,915 - DebugImageAnalyser - INFO - Analyse de l'image: output/ticket_T11143/T11143_20250422_084617/attachments/image.png
|
|
2025-04-24 15:31:15,915 - OCR - INFO - Traitement OCR pour output/ticket_T11143/T11143_20250422_084617/attachments/image.png (langue: auto)
|
|
2025-04-24 15:31:15,924 - PIL.PngImagePlugin - DEBUG - STREAM b'IHDR' 16 13
|
|
2025-04-24 15:31:15,925 - PIL.PngImagePlugin - DEBUG - STREAM b'IDAT' 41 8192
|
|
2025-04-24 15:31:16,004 - PIL.PngImagePlugin - DEBUG - STREAM b'IHDR' 16 13
|
|
2025-04-24 15:31:16,004 - PIL.PngImagePlugin - DEBUG - STREAM b'IDAT' 41 8192
|
|
2025-04-24 15:31:16,330 - pytesseract - DEBUG - ['tesseract', '/tmp/tess_fq8s4asr_input.PNG', '/tmp/tess_fq8s4asr', '-l', 'fra', '--psm', '3', '--oem', '3', 'txt']
|
|
2025-04-24 15:31:16,971 - pytesseract - DEBUG - ['tesseract', '/tmp/tess_o8makweo_input.PNG', '/tmp/tess_o8makweo', '-l', 'eng', '--psm', '3', '--oem', '3', 'txt']
|
|
2025-04-24 15:31:17,582 - pytesseract - DEBUG - ['tesseract', '/tmp/tess_kdgl5lcw_input.PNG', '/tmp/tess_kdgl5lcw', '-l', 'fra+eng', '--psm', '3', '--oem', '3', 'txt']
|
|
2025-04-24 15:31:18,510 - OCR - INFO - Langue détectée: eng
|
|
2025-04-24 15:31:18,593 - pytesseract - DEBUG - ['tesseract', '/tmp/tess_cq33tt5t_input.PNG', '/tmp/tess_cq33tt5t', '-l', 'eng', '--psm', '3', '--oem', '3', 'txt']
|
|
2025-04-24 15:31:19,132 - OCR - WARNING - Impossible de sauvegarder les fichiers de débogage: cannot write mode RGBA as JPEG
|
|
2025-04-24 15:31:19,132 - OCR - INFO - OCR réussi [output/ticket_T11143/T11143_20250422_084617/attachments/image.png] — 1347 caractères: Apache Tomcat x +
|
|
|
|
GC @ 2 zk1.brg-lab.com
|
|
|
|
@ Andre Demo Devmat @ Base modéle
|
|
|
|
It works !
|
|
|
|
If you're ...
|
|
2025-04-24 15:31:19,133 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): translate.google.com:443
|
|
2025-04-24 15:31:19,260 - urllib3.connectionpool - DEBUG - https://translate.google.com:443 "GET /m?tl=en&sl=fr&q=Apache+Tomcat+x+%2B%0A%0AGC+%40+2+zk1.brg-lab.com%0A%0A%40+Andre+Demo+Devmat+%40+Base+mod%C3%A9le%0A%0AIt+works+%21%0A%0AIf+you%27re+seeing+this+page+via+a+web+browser%2C+it+means+you%27ve+setup+Tomcat+successfully.+Congratulations%21%0A%0AThis+is+the+default+Tomcat+home+page.+It+can+be+found+on+the+local+filesystem+at%3A+%2Fvar%2Flib%2Ftomcat7%2Fwebapps%2FROOT%2Findex.html%0A%0ATomcat%3F+veterans+might+be+pleased+to+learn+that+this+system+instance+of+Tomcat+is+installed+with+CATALINA_HOME+in+%2Fusr%2Fshare%2Ftomcat7+and+CATALINA_BASE+in+%2Fvar%2F1ib%2Ftomcat7%2C+following+the+rules+from+%2Fusr%2Fshare%2Fdoc%2Ftomcat7-common%2FRUNNING.+txt.+gz.%0AYou+might+consider+installing+the+following+packages%2C+if+you+haven%27t+already+done+so%3A%0A%0Atomcat7-docs%3A+This+package+installs+a+web+application+that+allows+to+browse+the+Tomcat+7+documentation+locally.+Once+installed%2C+you+can+access+it+by+clicking%0A%0Atomcat7-examples%3A+This+package+installs+a+web+application+that+allows+to+access+the+Tomcat+7+Servlet+and+JSP+examples.+Once+installed%2C+you+can+access+it+by+clicking%0A%0Atomcat7-admin%3A+This+package+installs+two+web+applications+that+can+help+managing+this+Tomcat+instance.+Once+installed%2C+you+can+access+the+and+the%0A%0ANOTE%3A+For+security+reasons%2C+using+the+manager+webapp+is+restricted+to+users+with+role+%22manager-gui%22.+The+host-manager+webapp+is+restricted+to+users+with+role+%22admin-gui%22.+Users+are+defined+in+%2Fetc%2Ftomcat7%2Ftomcat-users.xml. HTTP/1.1" 200 None
|
|
2025-04-24 15:31:19,348 - DebugImageAnalyser - INFO - OCR texte: 1328 caractères en en
|
|
2025-04-24 15:31:19,348 - DebugImageAnalyser - INFO - Appel à l'agent d'analyse d'images
|
|
2025-04-24 15:31:19,348 - DebugImageAnalyser - ERROR - Exception lors de l'appel à peut_analyser_images: 'NoneType' object has no attribute 'peut_analyser_images'
|
|
Traceback (most recent call last):
|
|
File "/home/fgras-ca/llm-ticket3/debug_image_analyser.py", line 102, in main
|
|
can_analyze = agent_analyser.llm.peut_analyser_images()
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
AttributeError: 'NoneType' object has no attribute 'peut_analyser_images'
|
|
2025-04-24 15:31:19,349 - AgentImageAnalyser - INFO - Début d'analyse de l'image: image.png
|
|
2025-04-24 15:31:19,349 - PIL.PngImagePlugin - DEBUG - STREAM b'IHDR' 16 13
|
|
2025-04-24 15:31:19,349 - PIL.PngImagePlugin - DEBUG - STREAM b'IDAT' 41 8192
|
|
2025-04-24 15:31:19,349 - AgentImageAnalyser - INFO - Vérification du support d'analyse d'images pour image.png
|
|
2025-04-24 15:31:19,349 - AgentImageAnalyser - ERROR - Exception lors de la vérification du support d'images: 'NoneType' object has no attribute 'peut_analyser_images'
|
|
2025-04-24 15:31:19,349 - AgentImageAnalyser - ERROR - Erreur: Erreur lors de la vérification du support d'images: 'NoneType' object has no attribute 'peut_analyser_images' pour output/ticket_T11143/T11143_20250422_084617/attachments/image.png
|
|
2025-04-24 15:31:19,350 - DebugImageAnalyser - INFO - Analyse réussie: 0 caractères
|
|
2025-04-24 15:31:19,350 - DebugImageAnalyser - ERROR - Exception lors de l'analyse: Object of type LlamaVision is not JSON serializable
|
|
Traceback (most recent call last):
|
|
File "/home/fgras-ca/llm-ticket3/debug_image_analyser.py", line 118, in main
|
|
json.dump(resultat, f, ensure_ascii=False, indent=2)
|
|
File "/usr/lib/python3.12/json/__init__.py", line 179, in dump
|
|
for chunk in iterable:
|
|
File "/usr/lib/python3.12/json/encoder.py", line 432, in _iterencode
|
|
yield from _iterencode_dict(o, _current_indent_level)
|
|
File "/usr/lib/python3.12/json/encoder.py", line 406, in _iterencode_dict
|
|
yield from chunks
|
|
File "/usr/lib/python3.12/json/encoder.py", line 406, in _iterencode_dict
|
|
yield from chunks
|
|
File "/usr/lib/python3.12/json/encoder.py", line 439, in _iterencode
|
|
o = _default(o)
|
|
^^^^^^^^^^^
|
|
File "/usr/lib/python3.12/json/encoder.py", line 180, in default
|
|
raise TypeError(f'Object of type {o.__class__.__name__} '
|
|
TypeError: Object of type LlamaVision is not JSON serializable
|