So the thing I had to do was basically download the required .TXT file from their Github and make the folder inside the /usr/share/httpd folder. Which I did and now I get a different error namely a KeyError, I’ll put the traceback down below.
Traceback:
Environment:
Request Method: GET
Request URL: https://visits.cloudspot.be/map/mapoverviewcollaborators
Django Version: 3.2.13
Python Version: 3.6.8
Installed Applications:
[‘django.contrib.admin’,
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’,
‘widget_tweaks’,
‘django_select2’,
‘dateutil’,
‘pgeocode’,
‘urllib3’,
‘geopy’,
‘main’]
Installed Middleware:
[‘django.middleware.security.SecurityMiddleware’,
‘django.contrib.sessions.middleware.SessionMiddleware’,
‘django.middleware.common.CommonMiddleware’,
‘django.middleware.csrf.CsrfViewMiddleware’,
‘django.contrib.auth.middleware.AuthenticationMiddleware’,
‘django.contrib.messages.middleware.MessageMiddleware’,
‘django.middleware.clickjacking.XFrameOptionsMiddleware’]
Traceback (most recent call last):
File “/var/www/env_phytovetvisits/lib/python3.6/site-packages/django/core/handlers/exception.py”, line 47, in inner
response = get_response(request)
File “/var/www/env_phytovetvisits/lib/python3.6/site-packages/django/core/handlers/base.py”, line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/var/www/env_phytovetvisits/lib/python3.6/site-packages/django/views/generic/base.py”, line 70, in view
return self.dispatch(request, *args, **kwargs)
File “/var/www/env_phytovetvisits/lib/python3.6/site-packages/django/views/generic/base.py”, line 98, in dispatch
return handler(request, *args, **kwargs)
File “/var/www/app_phytovetvisits/main/views.py”, line 846, in get
nomi = pgeocode.Nominatim(‘be’)
File “/var/www/env_phytovetvisits/lib/python3.6/site-packages/pgeocode.py”, line 211, in init
self._data_frame = self._index_postal_codes()
File “/var/www/env_phytovetvisits/lib/python3.6/site-packages/pgeocode.py”, line 252, in _index_postal_codes
df_unique_cp_group = self._data.groupby(“postal_code”)
File “/var/www/env_phytovetvisits/lib/python3.6/site-packages/pandas/core/frame.py”, line 6525, in groupby
dropna=dropna,
File “/var/www/env_phytovetvisits/lib/python3.6/site-packages/pandas/core/groupby/groupby.py”, line 533, in init
dropna=self.dropna,
File “/var/www/env_phytovetvisits/lib/python3.6/site-packages/pandas/core/groupby/grouper.py”, line 786, in get_grouper
raise KeyError(gpr)
Exception Type: KeyError at /map/mapoverviewcollaborators
Exception Value: ‘postal_code’