System Requirements
bormeparser requires Python 3.6 or higher. The library has been tested on Python 3.6, 3.7, and 3.8.System Dependencies
Before installing bormeparser, you need to install some system-level dependencies. Thelxml package used by bormeparser requires compilation and needs development headers.
Ubuntu/Debian
Fedora/CentOS/RHEL
macOS
On macOS, you’ll need Xcode Command Line Tools:These dependencies are required because the
lxml library needs to compile C extensions for XML parsing performance.Installation Methods
Installing from Source
If you want to install the latest development version or contribute to the project, you can install from source:Dependencies
bormeparser automatically installs the following Python dependencies:- lxml (4.9.1) - XML and HTML parsing
- pdfminer.six (20220524) - PDF text extraction
- PyPDF2 (2.11.0) - PDF file manipulation
- requests (>=2.22.0, <3.0.0) - HTTP library for downloading BORME files
- wheel (0.38.1) - Package building
Verifying the Installation
To verify that bormeparser is installed correctly, open a Python interactive shell and try importing the library:Running Tests
If you’ve installed from source, you can run the test suite to ensure everything works correctly:Troubleshooting
lxml Installation Fails
If you encounter errors installinglxml, make sure you have installed all system dependencies:
Permission Denied
If you get permission errors during installation, either:- Use a virtual environment (recommended)
- Install with
--userflag:pip install --user bormeparser - Use
sudo(not recommended):sudo pip install bormeparser
Python Version Issues
bormeparser requires Python 3.6 or higher. Check your Python version:pip3 instead of pip to ensure you’re installing for Python 3.