cloudera / hue

Open source SQL Query Assistant service for Databases/Warehouses
https://cloudera.com
Apache License 2.0
1.17k stars 366 forks source link

'UnspecifiedConfigSection' object has no attribute 'get' #641

Closed snxq closed 6 years ago

snxq commented 6 years ago

File "/hue/desktop/libs/notebook/src/notebook/conf.py", line 52, in get_ordered_interpreters if not INTERPRETERS.get(): AttributeError: 'UnspecifiedConfigSection' object has no attribute 'get'

snxq commented 6 years ago
dir(INTERPRETERS)
['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_coerce_type', 'bind', 'default', 'default_value', 'dynamic_default', 'each', 'get_member', 'get_presentable_help_text', 'get_presentable_key', 'get_value', 'help', 'key', 'print_help', 'private', 'required', 'type', 'validate']

I checked this class. It has no attribute 'get'.So how to solve this?

romainr commented 6 years ago

Which apps do you have in app_blacklist in hue.ini?

snxq commented 6 years ago

Actually, I copied the notebook module as a new app.Trying to keep notebook,And modify this new app. Then,I have this problem.

I guess probably because there is no new app information configured in hue.ini, resulting in the app is not registered.

PS. setup.py has been modified.

snxq commented 6 years ago

I tracked the program by pdb.

(Pdb) for i in pkg_resources.iter_entry_points('desktop.sdk.application'):print(i)   
about = about
beeswax = beeswax
filebrowser = filebrowser
hbase = hbase
help = help
impala = impala
jobbrowser = jobbrowser
jobsub = jobsub
metastore = metastore
oozie = oozie
pig = pig
proxy = proxy
rdbms = rdbms
search = search
security = security
spark = spark
sqoop = sqoop
useradmin = useradmin
zookeeper = zookeeper
indexer = indexer
metadata = metadata
notebook = notebook
dashboard = dashboard
notebook = notebook
notebook = notebook
notebook = notebook
notebook = notebook