Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you encounter a RuntimeError stating inability to initiate the tika server when using tika in conjunction with Python, you can try the following solutions:

  1. Check if the Java Development Kit (JDK) is installed on your system. Tika requires the latest version of JDK to be installed to function properly. If JDK is not installed, download and install it from the official website.

  2. Try to start the tika server manually. Open a terminal window and navigate to the tika-server-<version>/bin directory. Run the command ./tika-server.sh to start the server. If this works, try running your Python script again.

  3. Check if there is any firewall or antivirus software blocking the tika server. Some antivirus software may block the server from starting. Disable any firewall or antivirus temporarily and try to run the Python script again.

  4. If none of the above solutions work, try using a different version of the tika server. Some versions may have compatibility issues with Python. You can download multiple versions of the tika server from the official website and try using them.

  5. If you are still having trouble, consider using an alternative package for parsing documents in Python, such as PyPDF2 or pdfminer.six.