AttributeError while installation

I am getting below error while installing HUE 4.6 on RHEL7.
What wrong am i doing? or its a bug? @Romain

AttributeError: ‘NoneType’ object has no attribute ‘get’

Please give a try with a more recent Hue https://docs.gethue.com/#releases and if still problems provide more info.

hi @Romain,

Its same with latest hue as well. Below the full error log.

First error:
Running ‘/usr/app/hue/build/env/bin/hue makemigrations --noinput’ with None
Traceback (most recent call last):
File “/usr/app/hue/build/env/bin/hue”, line 11, in
load_entry_point(‘desktop’, ‘console_scripts’, ‘hue’)()
File “/usr/app/hue/desktop/core/src/desktop/manage_entry.py”, line 225, in entry
execute_from_command_line(sys.argv)
File “/usr/app/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/usr/app/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/management/init.py”, line 308, in execute
settings.INSTALLED_APPS
File “/usr/app/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/conf/init.py”, line 56, in getattr
self._setup(name)
File “/usr/app/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/conf/init.py”, line 41, in _setup
self._wrapped = Settings(settings_module)
File “/usr/app/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/conf/init.py”, line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib64/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/usr/app/hue/desktop/core/src/desktop/settings.py”, line 624, in
if is_abfs_enabled():
File “/usr/app/hue/desktop/libs/azure/src/azure/conf.py”, line 152, in is_abfs_enabled
return (‘default’ in list(AZURE_ACCOUNTS.keys()) and AZURE_ACCOUNTS[‘default’].get_raw() and AZURE_ACCOUNTS[‘default’].CLIENT_ID.get() or (conf_idbroker.is_idbroker_enabled(‘azure’) and has_azure_metadata())) and ‘default’ in list(ABFS_CLUSTERS.keys())
File “/usr/app/hue/desktop/core/src/desktop/lib/idbroker/conf.py”, line 61, in is_idbroker_enabled
return get_cab_address(fs) is not None
File “/usr/app/hue/desktop/core/src/desktop/lib/idbroker/conf.py”, line 42, in get_cab_address
return get_conf().get(_CNF_CAB_ADDRESS % fs) if fs else None
AttributeError: ‘NoneType’ object has no attribute ‘get’





./build/env/bin/hue collectstatic --noinput
Traceback (most recent call last):
File “./build/env/bin/hue”, line 11, in
load_entry_point(‘desktop’, ‘console_scripts’, ‘hue’)()
File “/usr/app/hue/desktop/core/src/desktop/manage_entry.py”, line 225, in entry
execute_from_command_line(sys.argv)
File “/usr/app/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/usr/app/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/management/init.py”, line 308, in execute
settings.INSTALLED_APPS
File “/usr/app/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/conf/init.py”, line 56, in getattr
self._setup(name)
File “/usr/app/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/conf/init.py”, line 41, in _setup
self._wrapped = Settings(settings_module)
File “/usr/app/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/conf/init.py”, line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib64/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/usr/app/hue/desktop/core/src/desktop/settings.py”, line 624, in
if is_abfs_enabled():
File “/usr/app/hue/desktop/libs/azure/src/azure/conf.py”, line 152, in is_abfs_enabled
return (‘default’ in list(AZURE_ACCOUNTS.keys()) and AZURE_ACCOUNTS[‘default’].get_raw() and AZURE_ACCOUNTS[‘default’].CLIENT_ID.get() or (conf_idbroker.is_idbroker_enabled(‘azure’) and has_azure_metadata())) and ‘default’ in list(ABFS_CLUSTERS.keys())
File “/usr/app/hue/desktop/core/src/desktop/lib/idbroker/conf.py”, line 61, in is_idbroker_enabled
return get_cab_address(fs) is not None
File “/usr/app/hue/desktop/core/src/desktop/lib/idbroker/conf.py”, line 42, in get_cab_address
return get_conf().get(_CNF_CAB_ADDRESS % fs) if fs else None
AttributeError: ‘NoneType’ object has no attribute ‘get’
make[1]: *** [create-static] Error 1
make[1]: Leaving directory `/usr/app/hue’
make: *** [install-env] Error 2

Looks like an issue with your ABFS, would recommend to check with latest Hue / disable ABFS for now