[英]ConfigParser.NoSectionError: No section: 'metadata' in installing mysql-python
When I try install mysql-python to CentOs6.5 it casts a error 当我尝试将mysql-python安装到CentOs6.5时,它会引发错误
python /sw/ple.bkp/workspace/tianfd/TEMP/MySQL-python-1.2.5/setup.py install
Traceback (most recent call last):
File "/sw/ple.bkp/workspace/tianfd/TEMP/MySQL-python1.2.5/setup.py", line 17, in <module>metadata, options = get_config()
File "/sw/ple.bkp/workspace/tianfd/TEMP/MySQL-python1.2.5/setup_posix.py", line 32, in get_config
metadata, options = get_metadata_and_options()
File "/sw/ple.bkp/workspace/tianfd/TEMP/MySQL-python-1.2.5/setup_common.py", line 12, in get_metadata_and_options metadata = dict(config.items('metadata'))
File "/usr/local/lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'metadata'
I have tried to install mysql-devel and recompile Python, But the error doesn't fix. 我尝试安装mysql-devel并重新编译Python,但该错误无法解决。 So,Could you give me some hints about this error?
那么,您能给我一些有关此错误的提示吗?
Thank for your time! 感谢您的宝贵时间!
This seems to be the case of ConfigParser
not being able to read the metadata.cfg
file. 似乎是
ConfigParser
无法读取metadata.cfg
文件的情况。 Try setting the right permissions to this file as well as site.cfg
. 尝试为此文件以及
site.cfg
设置正确的权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.