Related
I'm doing a executable with Pyinstaller, based in an app of tkinter. I compile the executable using pyinstaller simple.py --additional-hooks-dir=. .My app need a lot of packages to do the functions. For this reason I build a script (hook-space.py) to collect all necessary packages, or I suppose this do it. This file has the follow code:
from PyInstaller.utils.hooks import collect_all
# ----------------------------- SPACY -----------------------------
data = collect_all("spacy")
datas = data[0]
binaries = data[1]
hiddenimports = data[2]
# ----------------------------- THINC -----------------------------
data = collect_all("thinc")
datas += data[0]
binaries += data[1]
hiddenimports += data[2]
# ----------------------------- CYMEM -----------------------------
data = collect_all("cymem")
datas += data[0]
binaries += data[1]
hiddenimports += data[2]
# ----------------------------- PRESHED -----------------------------
data = collect_all("preshed")
datas += data[0]
binaries += data[1]
hiddenimports += data[2]
# ----------------------------- BLIS -----------------------------
data = collect_all("blis")
datas += data[0]
binaries += data[1]
hiddenimports += data[2]
from PyInstaller.utils.hooks import collect_data_files
datas = collect_data_files("es_core_news_sm")
When I compiled the file .spec, the exe file was build correctly but when I use a function in the executable, I obtain the follow error:
ImportError: attempted relative import with no known parent package
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tkinter/__init__.py", line 1705, in __call__
File "simple.py", line 133, in calcular
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
File "predictors.py", line 5, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
File "textclassification.py", line 9, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
File "utils.py", line 1, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
File "spacy/__init__.py", line 10, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
File "thinc/api.py", line 2, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
File "thinc/initializers.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
File "thinc/backends/__init__.py", line 7, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
File "thinc/backends/cupy_ops.py", line 19, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
File "thinc/backends/_custom_kernels.py", line 37, in <module>
File "pathlib.py", line 1221, in read_text
File "pathlib.py", line 1208, in open
File "pathlib.py", line 1063, in _opener
FileNotFoundError: [Errno 2] No such file or directory: '../ejecutable/dist/simple/thinc/backends/_custom_kernels.cu'
`
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.6/site-packages/airflow/__main__.py", line 44, in <module>
main()
File "/usr/local/lib/python3.6/site-packages/airflow/__main__.py", line 40, in main
args.func(args)
File "/usr/local/lib/python3.6/site-packages/airflow/cli/cli_parser.py", line 47, in command
func = import_string(import_path)
File "/usr/local/lib/python3.6/site-packages/airflow/utils/module_loading.py", line 32, in import_string
module = import_module(module_path)
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/local/lib/python3.6/site-packages/airflow/cli/commands/webserver_command.py", line 43, in <module>
from airflow.www.app import cached_app, create_app
File "/usr/local/lib/python3.6/site-packages/airflow/www/app.py", line 23, in <module>
from flask_appbuilder import SQLA
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/__init__.py", line 5, in <module>
from .api import ModelRestApi # noqa: F401
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/api/__init__.py", line 15, in <module>
from marshmallow_sqlalchemy.fields import Related, RelatedList
File "/usr/local/lib/python3.6/site-packages/marshmallow_sqlalchemy/__init__.py", line 1, in <module>
from .schema import (
File "/usr/local/lib/python3.6/site-packages/marshmallow_sqlalchemy/schema/__init__.py", line 1, in <module>
from .model_schema import ModelSchema, ModelSchemaOpts, ModelSchemaMeta
File "/usr/local/lib/python3.6/site-packages/marshmallow_sqlalchemy/schema/model_schema.py", line 5, in <module>
from ..convert import ModelConverter
File "/usr/local/lib/python3.6/site-packages/marshmallow_sqlalchemy/convert.py", line 8, in <module>
from sqlalchemy.dialects import postgresql, mysql, mssql
ImportError: cannot import name 'mysql'
it started few days back but now it is not running.
installed mysql-connector
installed mysqlclient
`Tried everything but this error is not going.
installed mysql but still getting the error
I'm running an API written in python and deployed in Eve server. Further, I'm trying to run with gunicorn(production). The command I have run is gunicorn wsgi:app --preload -w 4 -b 0.0.0.0:7000 and it works as expected. Further, when we run this command we have to hit Ctrl+s for the workers to start running the same code. A question has already been asked with workers waiting indefinitely to start running using the preload option. However, I wanted to remove the preload option. So, when I run gunicorn wsgi:app -w 4 -b 0.0.0.0:7000, I get an error.
Use a production WSGI server instead.
* Debug mode: off
* Serving Flask app "eve" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
[2020-07-14 14:26:40 +0530] [23780] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
self.load_wsgi()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
self.wsgi = self.app.wsgi()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
return self.load_wsgiapp()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
return util.import_app(self.app_uri)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
mod = importlib.import_module(module)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/root/Improved_ec/v2/improved_easy_credit/wsgi.py", line 4, in <module>
app.run(host='0.0.0.0')
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/eve/flaskapp.py", line 222, in run
super(Eve, self).run(host, port, debug, **options)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/flask/app.py", line 990, in run
run_simple(host, port, self, **options)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 1010, in run_simple
inner()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 963, in inner
fd=fd,
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 806, in make_server
host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 699, in __init__
HTTPServer.__init__(self, server_address, handler)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/socketserver.py", line 452, in __init__
self.server_bind()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/http/server.py", line 137, in server_bind
socketserver.TCPServer.server_bind(self)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
[2020-07-14 14:26:40 +0530] [23797] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
self.load_wsgi()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
self.wsgi = self.app.wsgi()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
return self.load_wsgiapp()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
return util.import_app(self.app_uri)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
mod = importlib.import_module(module)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/root/Improved_ec/v2/improved_easy_credit/wsgi.py", line 4, in <module>
app.run(host='0.0.0.0')
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/eve/flaskapp.py", line 222, in run
super(Eve, self).run(host, port, debug, **options)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/flask/app.py", line 990, in run
run_simple(host, port, self, **options)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 1010, in run_simple
inner()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 963, in inner
fd=fd,
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 806, in make_server
host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 699, in __init__
HTTPServer.__init__(self, server_address, handler)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/socketserver.py", line 452, in __init__
self.server_bind()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/http/server.py", line 137, in server_bind
socketserver.TCPServer.server_bind(self)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
[2020-07-14 14:26:40 +0530] [23780] [INFO] Worker exiting (pid: 23780)
[2020-07-14 14:26:40 +0530] [23797] [INFO] Worker exiting (pid: 23797)
[2020-07-14 14:26:40 +0530] [23796] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
self.load_wsgi()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
self.wsgi = self.app.wsgi()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
return self.load_wsgiapp()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
return util.import_app(self.app_uri)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
mod = importlib.import_module(module)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/root/Improved_ec/v2/improved_easy_credit/wsgi.py", line 4, in <module>
app.run(host='0.0.0.0')
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/eve/flaskapp.py", line 222, in run
super(Eve, self).run(host, port, debug, **options)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/flask/app.py", line 990, in run
run_simple(host, port, self, **options)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 1010, in run_simple
inner()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 963, in inner
fd=fd,
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 806, in make_server
host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
File "/root/anaconda3/envs/imp_ec/lib/python3.7/site-packages/werkzeug/serving.py", line 699, in __init__
HTTPServer.__init__(self, server_address, handler)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/socketserver.py", line 452, in __init__
self.server_bind()
File "/root/anaconda3/envs/imp_ec/lib/python3.7/http/server.py", line 137, in server_bind
socketserver.TCPServer.server_bind(self)
File "/root/anaconda3/envs/imp_ec/lib/python3.7/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
[2020-07-14 14:26:40 +0530] [23796] [INFO] Worker exiting (pid: 23796)
[2020-07-14 14:27:10 +0530] [23776] [INFO] Shutting down: Master
[2020-07-14 14:27:10 +0530] [23776] [INFO] Reason: Worker failed to boot.
Moreover, when I remove the `-w', the server launches as expected with a single worker.
So, how do I fix this error with workers?
A while ago I installed beakerx and an update broke the installation. Every time I start IPython, a warning is shown. How can I cleanly get rid of the extension and this output?
[IPKernelApp] WARNING | Error in loading extension: beakerx.autotranslation
Check your config files in /Users/cls/.ipython/profile_default
Traceback (most recent call last):
File "/Users/cls/anaconda3/lib/python3.6/site-packages/IPython/core/shellapp.py", line 261, in init_extensions
self.shell.extension_manager.load_extension(ext)
File "/Users/cls/anaconda3/lib/python3.6/site-packages/IPython/core/extensions.py", line 80, in load_extension
mod = import_module(module_str)
File "/Users/cls/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'beakerx'
[IPKernelApp] WARNING | Error in loading extension: beakerx_magics.kernel_magic
Check your config files in /Users/cls/.ipython/profile_default
Traceback (most recent call last):
File "/Users/cls/anaconda3/lib/python3.6/site-packages/IPython/core/shellapp.py", line 261, in init_extensions
self.shell.extension_manager.load_extension(ext)
File "/Users/cls/anaconda3/lib/python3.6/site-packages/IPython/core/extensions.py", line 80, in load_extension
mod = import_module(module_str)
File "/Users/cls/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'beakerx_magics'
After following the uninstall directions, I ran grep -r beakerx * in the root of my virtualenv and discovered the following debris:
etc/jupyter/jupyter_notebook_config.json: "beakerx": false
etc/ipython/ipython_config.py:c.InteractiveShellApp.extensions = ['beakerx.autotranslation',
etc/ipython/ipython_config.py:'beakerx_magics.kernel_magic',
etc/ipython/ipython_config.py:'beakerx_magics.groovy_magic',
etc/ipython/ipython_config.py:'beakerx_magics.clojure_magic',
etc/ipython/ipython_config.py:'beakerx_magics.kotlin_magic',
etc/ipython/ipython_config.py:'beakerx_magics.scala_magic',
etc/ipython/ipython_config.py:'beakerx_magics.sql_magic',
etc/ipython/ipython_config.py:'beakerx_magics.java_magic'
I removed offending lines from the above files, and the error messages disappeared.
For ipython_config.py
c = get_config()
c.InteractiveShellApp.extensions = [
]
For jupyter_notebook_config.json
{
"NotebookApp": {
"nbserver_extensions": {
}
},
"KernelSpecManager": {}
}
I want to connect Vertica as the database backend for my Django application. Officially no support is provided by Django to it. I googled this problem and found this:
https://github.com/rutube/django_vertica_backend
The code which is written in this git hub returning following error:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/django/db/utils.py", line 110, in load_backend
return import_module('%s.base' % backend_name)
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/rksharma/ccChatBot/django_vertica_backend/vertica/base.py", line 8, in <module>
from django.db.backends.creation import BaseDatabaseCreation
ModuleNotFoundError: No module named 'django.db.backends.creation'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
utility.execute()
File "/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 347, in execute
django.setup()
File "/usr/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3.6/site-packages/django/apps/registry.py", line 112, in populate
app_config.import_models()
File "/usr/lib/python3.6/site-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/python3.6/site-packages/django/contrib/auth/models.py", line 2, in <module>
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
File "/usr/lib/python3.6/site-
packages/django/contrib/auth/base_user.py", line 47, in <module>
class AbstractBaseUser(models.Model):
File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 114, in __new__
new_class.add_to_class('_meta', Options(meta, app_label))
File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 315, in add_to_class
value.contribute_to_class(cls, name)
File "/usr/lib/python3.6/site-packages/django/db/models/options.py", line 205, in contribute_to_class
self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
File "/usr/lib/python3.6/site-packages/django/db/__init__.py", line 33, in __getattr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "/usr/lib/python3.6/site-packages/django/db/utils.py", line 202, in __getitem__
backend = load_backend(db['ENGINE'])
File "/usr/lib/python3.6/site-packages/django/db/utils.py", line 125, in load_backend
) from e_user
django.core.exceptions.ImproperlyConfigured: 'vertica' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
'mysql', 'oracle', 'postgresql', 'sqlite3'
This is not possible as of now. We can create some custom functionality to do so.