Issue:

When you install RDO stack on CentOS, you may encounter following error.

Error:

[root@localhost ~]# packstack --allinone

ERROR:root:Failed to load plugin from file prescript_000.py

ERROR:root:Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 884, in loadPlugins

moduleobj = __import__(moduleToLoad)

File "/usr/lib/python2.7/site-packages/packstack/plugins/prescript_000.py", line 35, in <module>

from packstack.modules.documentation import update_params_usage

File "/usr/lib/python2.7/site-packages/packstack/modules/documentation.py", line 20, in <module>

from docutils import core

File "/usr/lib/python2.7/site-packages/docutils/core.py", line 20, in <module>

from docutils import frontend, io, utils, readers, writers

File "/usr/lib/python2.7/site-packages/docutils/frontend.py", line 41, in <module>

import docutils.utils

File "/usr/lib/python2.7/site-packages/docutils/utils/__init__.py", line 20, in <module>

import docutils.io

File "/usr/lib/python2.7/site-packages/docutils/io.py", line 18, in <module>

from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput

File "/usr/lib/python2.7/site-packages/docutils/utils/error_reporting.py", line 46, in <module>

locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]

File "/usr/lib64/python2.7/locale.py", line 511, in getdefaultlocale

return _parse_localename(localename)

File "/usr/lib64/python2.7/locale.py", line 443, in _parse_localename

raise ValueError, 'unknown locale: %s' % localename

ValueError: unknown locale: UTF-8

ERROR:root:Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 949, in main

loadPlugins()

File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 892, in loadPlugins

raise Exception("Failed to load plugin from file %s" % item)

Exception: Failed to load plugin from file prescript_000.py

ERROR : Failed to load plugin from file prescript_000.py

Traceback (most recent call last):

File "/usr/bin/packstack", line 15, in <module>

run_setup.main()

File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 1019, in main

print(output_messages.ERR_CHECK_LOG_FILE_FOR_MORE_INFO % (logFile))

UnboundLocalError: local variable 'logFile' referenced before assignment

Solution:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

RDO Stack Exception: UnboundLocalError: local variable 'logFile' referenced before assignment的更多相关文章

  1. 洗礼灵魂,修炼python(23)--自定义函数(4)—闭包进阶问题—>报错UnboundLocalError: local variable 'x' referenced before assignment

    闭包(lexical closure) 什么是闭包前面已经说过了,但是由于遗留问题,所以单独作为一个章节详解讲解下 不多说,看例子: def funx(x): def funy(y): return ...

  2. _markupbase.py if not match: UnboundLocalError: local variable 'match' referenced before assignment,分析Python 库 html.parser 中存在的一个解析BUG

    BUG触发时的完整报错内容(本地无关路径用已经用 **** 隐去): **************\lib\site-packages\bs4\builder\_htmlparser.py:78: U ...

  3. 变量引用的错误:UnboundLocalError: local variable 'range' referenced before assignment

    class Battery(): """一次模拟电瓶汽车的简单尝试""" def __init__(self,battery_size = ...

  4. 出现UnboundLocalError: local variable 'a' referenced before assignment异常的情况与解决方法

    出现UnboundLocalError: local variable ‘a’ referenced before assignment异常的情况与解决方法字面意思:局部变量赋值前被引用原因:局部变量 ...

  5. UnboundLocalError: local variable 'range' referenced before assignment

    1. 报错信息 UnboundLocalError: local variable 'range' referenced before assignment 2. 代码 class Car(): &q ...

  6. 全局变量报错:UnboundLocalError: local variable 'l' referenced before assignment

    总结: 内部函数,不修改全局变量可以访问全局变量 内部函数,修改同名全局变量,则python会认为它是一个局部变量 在内部函数修改同名全局变量之前调用变量名称(如print sum),则引发Unbou ...

  7. python:UnboundLocalError: local variable 'xxx' referenced before assignment

    近来一直都在学习python语言,偶然在伯乐在线看到2017年京东C/C++的面试题.就打算用python+ST3 IDE顺便敲下面试题代码. 原题 C语言: #include <stdio.h ...

  8. UnboundLocalError: local variable ‘xxx‘ referenced before assignment

    原因 在Python函数中调用了某个和全局变量同名的局部变量,导致编译器不知道此时使用的是全局变量还是局部变量 a = 3 def func(): a+=3 func() UnboundLocalEr ...

  9. UnboundLocalError: local variable 'f' referenced before assignment

    参考方案链接: 1.http://blog.chinaunix.net/uid-631981-id-3766212.html 2.http://blog.sina.com.cn/s/blog_4b9e ...

随机推荐

  1. CentOS安装node.js-8.11.1+替换淘宝NPM镜像

    注:以下所有操作均在CentOS 6.8 x86_64位系统下完成. #准备工作# 由于node.js-8.11.1在源码编译安装的时候需要gcc 4.9.4或clang++ 3.4.2以上版本的支持 ...

  2. mysql乱码配置

    1.进入mysql   show variables like "char%"   2.在/etc/mysql/my.cnf中增加以下内容   [client] default-c ...

  3. contenteditable 插入及粘贴纯文本内容

    本文主要介绍 div 标签设置  contenteditable = ' true ' 时,在光标位置插入输入的内容,或在光标位置粘贴纯文本内容.文中涉及知识,可参考以下: http://www.zh ...

  4. mysql sql语句执行时是否使用索引检查方法

    在日常开发中,使用到的数据表经常都会有索引,这些索引可能是开发人员/DBA建表时创建的,也可能是在使用过程中新增的.合理的使用索引,可以加快数据库查询速度.然而,在实际开发工作中,会出现有些sql语句 ...

  5. [LeetCode] Degree of an Array 数组的度

    Given a non-empty array of non-negative integers nums, the degree of this array is defined as the ma ...

  6. jenkins实战(一):war安装及插件安装

    一:整体介绍 以下摘自维基百科: Jenkins是一个用Java编写的开源的持续集成工具.在与Oracle发生争执后,项目从Hudson项目复刻. Jenkins提供了软件开发的持续集成服务.它运行在 ...

  7. LeetCode题目----求中位数---标签:Array

    题目难度---困难 题目要求: 给定两个大小为 m 和 n 的有序数组 nums1 和 nums2 . 请找出这两个有序数组的中位数.要求算法的时间复杂度为 O(log (m+n)) . 思路:第一眼 ...

  8. [HDU 3507]Print Article

    Description Zero has an old printer that doesn't work well sometimes. As it is antique, he still lik ...

  9. bzoj 5248: [2018多省省队联测]一双木棋

    Description 菲菲和牛牛在一块n行m列的棋盘上下棋,菲菲执黑棋先手,牛牛执白棋后手.棋局开始时,棋盘上没有任何棋子, 两人轮流在格子上落子,直到填满棋盘时结束.落子的规则是:一个格子可以落子 ...

  10. 【NOIP2016】【LCA】【树上差分】【史诗级难度】天天爱跑步

    学弟不是说要出丧题吗>>所以我就研究了1天lca又研究了1天tj然后研究了一天天天爱跑步,终于写了出来.(最后的平均用时为240ms...比学弟快了1倍...) 题意:给你颗树,然后有m个 ...