Python-heatclient fails with 'Empty module name' when using relative path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-heatclient |
New
|
Undecided
|
zhaozhilong |
Bug Description
You get error message as described in https:/
but when you change Line 8 in /usr/local/
sys.path.insert(0, os.path.
sys.path.insert(0, os.path.
Then the error goes away.
Based on in bug 1475279 comment:
"Matthias Runge (mrunge) wrote on 2015-07-20:
then it's a heatclient issue (missing dependency)"
I could guess that this is heat client issue then. Or simply configuration issue, but hard to see where.
I can confirm that Error occurs also when installing horizon (stable/liberty) from sources:
Jan 29 12:27:55 controlplane01 '[horizon]'[27138]:
Jan 29 12:27:55 controlplane01 '[horizon]'[27138]: utils.import_
Jan 29 12:27:55 controlplane01 '[horizon]'[27138]: File "/usr/local/
Jan 29 12:27:55 controlplane01 '[horizon]'[27138]:
Jan 29 12:27:55 controlplane01 '[horizon]'[27138]: __import_
Jan 29 12:27:55 controlplane01 '[horizon]'[27138]: ValueError
Jan 29 12:27:55 controlplane01 '[horizon]'[27138]: :
Jan 29 12:27:55 controlplane01 '[horizon]'[27138]: Empty module name
Jan 29 12:27:55 controlplane01 '[horizon]'[27138]:
Jan 29 12:27:55 controlplane01 '[horizon]'[27138]: unable to load app 0 (mountpoint='') (callable not found or import error)
Changed in python-heatclient: | |
assignee: | nobody → zhaozhilong (zhaozhilong) |