I am using pyhtml2pdf for converting HTML to PDF which has a requirement of Chrome headless.
When the server is run as python manage.py runserver
there is no issue.
But when the django is run as a service it throws and error regarding split with chrome.py :
Exception occurred in file ‘/var/www/myProject/env/lib/python3.11/site-packages/webdriver_manager/drivers/chrome.py’, line 64: ‘NoneType’ object has no attribute ‘split’.