You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import tika
import time
from tika import parser, tika as server
import logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
tika.initVM()
parser.from_file("tests//resources/sample-complaint.pdf")
server.killServer()
Logging output:
NOTE: I adjusted the tika.py error logging in killServer to contain the PID and error message
2024-06-26 14:45:09,823 [MainThread ] [WARNI] Failed to see startup log message; retrying...
2024-06-26 14:45:09,823 - tika.tika - WARNING - Failed to see startup log message; retrying...
2024-06-26 14:45:15,458 [MainThread ] [ERROR] Failed to kill the current server session: pid=12595,message=[Errno 3] No such process
2024-06-26 14:45:15,458 - tika.tika - ERROR - Failed to kill the current server session: pid=12595,message=[Errno 3] No such process
2024-06-26 14:45:16,462 [MainThread ] [ERROR] Failed to kill the current server session: pid=12595,message=[Errno 3] No such process
2024-06-26 14:45:16,462 - tika.tika - ERROR - Failed to kill the current server session: pid=12595,message=[Errno 3] No such process
OS: MacOS 14.5
Python: 3.11.9 (CPython)
tika-python: 2.6.0
test.py:
Logging output:
The process number is incorrect:
The parent process is
12596
but the logger indicates that it's trying to use12595
.The text was updated successfully, but these errors were encountered: