The Voting System web application using Django is a project that serves as the automated voting system of an organization or school. This system works like the common manual system of election voting system whereas this system must be populated by the list of the positions, candidates, and voters. This system can help a certain organization or school to minimize the voting time duration because aside they can provide the voters an online platform to vote, the system will automatically count the votes for each candidate. The system has 2 sides of the user interface which are the administrator and voters side. The admin user is in charge to populate and manage the data of the system and the voter side which is where the voters will choose their candidate and submit their votes.
MIT License
174
stars
60
forks
source link
Version compatibility issue with sqlite3 in Linux CentOS-7 even after installing the Sqlite-3.9.2 #11
(evoting-venv3.8) [root@ip-172-31-84-84 e-voting-with-django]# python3.8 manage.py makemigrations
Traceback (most recent call last):
File "manage.py", line 22, in
main()
File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/core/management/init.py", line 377, in execute
django.setup()
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib64/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/contrib/auth/models.py", line 2, in
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/contrib/auth/base_user.py", line 48, in
class AbstractBaseUser(models.Model):
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/models/base.py", line 122, in new
new_class.add_to_class('_meta', Options(meta, app_label))
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/models/base.py", line 326, in add_to_class
value.contribute_to_class(cls, name)
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/models/options.py", line 206, in contribute_to_class
self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/init.py", line 28, in getattr
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/utils.py", line 214, in getitem
backend = load_backend(db['ENGINE'])
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/utils.py", line 111, in load_backend
return import_module('%s.base' % backend_name)
File "/usr/lib64/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 70, in
check_sqlite_version()
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 67, in check_sqlite_version
raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).
(evoting-venv3.8) [root@ip-172-31-84-84 e-voting-with-django]# ls -l | grep sqlite
-rw-r--r-- 1 root root 0 Jul 25 19:03 db.sqlite3
(evoting-venv3.8) [root@ip-172-31-84-84 e-voting-with-django]# python3.8 manage.py makemigrations Traceback (most recent call last): File "manage.py", line 22, in
main()
File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/core/management/init.py", line 377, in execute
django.setup()
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib64/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/contrib/auth/models.py", line 2, in
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/contrib/auth/base_user.py", line 48, in
class AbstractBaseUser(models.Model):
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/models/base.py", line 122, in new
new_class.add_to_class('_meta', Options(meta, app_label))
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/models/base.py", line 326, in add_to_class
value.contribute_to_class(cls, name)
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/models/options.py", line 206, in contribute_to_class
self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/init.py", line 28, in getattr
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/utils.py", line 214, in getitem
backend = load_backend(db['ENGINE'])
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/utils.py", line 111, in load_backend
return import_module('%s.base' % backend_name)
File "/usr/lib64/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 70, in
check_sqlite_version()
File "/root/e-voting-main/evoting-venv3.8/lib64/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 67, in check_sqlite_version
raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).
(evoting-venv3.8) [root@ip-172-31-84-84 e-voting-with-django]# ls -l | grep sqlite
-rw-r--r-- 1 root root 0 Jul 25 19:03 db.sqlite3