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
When I have django and Pdf miner installed, the application fails. Could you please fix this issue?
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
File "/usr/local/lib/python3.5/dist-packages/pdfminer/pdfinterp.py", line 5, in
from .cmapdb import CMapDB
File "/usr/local/lib/python3.5/dist-packages/pdfminer/cmapdb.py", line 24, in
from .psparser import PSStackParser
File "/usr/local/lib/python3.5/dist-packages/pdfminer/psparser.py", line 24, in
STRICT = getattr(settings, 'PDF_MINER_IS_STRICT', True)
File "/home/vijay/.local/lib/python3.5/site-packages/django/conf/init.py", line 53, in getattr
self._setup(name)
File "/home/vijay/.local/lib/python3.5/site-packages/django/conf/init.py", line 39, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting PDF_MINER_IS_STRICT, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
The text was updated successfully, but these errors were encountered:
When I have django and Pdf miner installed, the application fails. Could you please fix this issue?
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
File "/usr/local/lib/python3.5/dist-packages/pdfminer/pdfinterp.py", line 5, in
from .cmapdb import CMapDB
File "/usr/local/lib/python3.5/dist-packages/pdfminer/cmapdb.py", line 24, in
from .psparser import PSStackParser
File "/usr/local/lib/python3.5/dist-packages/pdfminer/psparser.py", line 24, in
STRICT = getattr(settings, 'PDF_MINER_IS_STRICT', True)
File "/home/vijay/.local/lib/python3.5/site-packages/django/conf/init.py", line 53, in getattr
self._setup(name)
File "/home/vijay/.local/lib/python3.5/site-packages/django/conf/init.py", line 39, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting PDF_MINER_IS_STRICT, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
The text was updated successfully, but these errors were encountered: