Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

Redhat as5 python2.7 安装openerp7.0出现RuntimeError: maximum recursion dept



  • 最近接触openerp,尝试在Redhat as5 python2.7 nginx1.4 postgreSQL9.2.1下部署一套openerp7.0 ,<br />可发现不太容易。<br /><br />解压执行python setup.py install 抛出一个异常:RuntimeError: maximum recursion depth exceeded  ,然后就终止了<br /><br />好纠结,貌似不是openerp问题,但不熟悉python,无从下手, 想各位前辈指点下,谦虚求教....<br /><br />===下面是机器环境和我部署程序的记录===<br />Redhat as5 2.6.18-164.el5<br />python2.7 (最近升级了) /  python2.4(YUM用)<br />安装路径: /usr/bin/python -> /usr/local/python27/bin/python<br /><br />nginx1.4 :服务和80端口正常<br />postgreSQL9.2.1 :服务和5432端口正常<br /><br />安装openerp-7.0<br />#tar -zxvf openerp-7.0-latest.tar.gz && cd openerp-7.0-20140307-002223;<br />#ls<br />debian  doc  install  LICENSE  MANIFEST.in  openerp  openerp.egg-info  openerp-server  PKG-INFO  README  setup.cfg  setup.nsi  setup.py  setup_rpm.sh  win32<br />#cat README <br />--------------------<br />Installation on RedHat, Fedora, CentOS<br />--------------------------------------<br /><br />Install the required dependencies:<br /><br />    $ yum install python<br />    $ easy_install pip<br />    $ pip install .....<br /><br />Install the openerp rpm<br /><br />    $ rpm -i openerp-VERSION.rpm<br />----------------------------<br /><br /><br />我检查了一下是否满足安装条件:<br />03-07 13:52 2to3<br />03-14 15:04 cherryd<br />03-12 11:37 easy_install<br />03-12 11:37 easy_install-2.7<br />03-07 13:52 idle<br />03-14 15:04 mako-render<br />03-14 14:57 pilconvert.py<br />03-14 14:57 pildriver.py<br />03-14 14:57 pilfile.py<br />03-14 14:57 pilfont.py<br />03-14 14:57 pilprint.py<br />03-14 12:58 pip<br />03-14 12:58 pip2<br />03-14 12:58 pip2.7<br />03-14 14:59 pybabel<br />03-07 13:52 pydoc<br />03-07 14:00 python -> python2<br />03-07 14:00 python2 -> python2.7<br />03-07 14:00 python2.7<br />03-07 14:00 python2.7-config<br />03-07 14:00 python2-config -> python2.7-config<br />03-07 14:00 python-config -> python2-config<br /><br />看满足条件,我就参考:http://shine-it.net/index.php/topic,7293.0.html 第一部分,不行,服务缺模块忘记了哪个..<br />然后我cd openerp-7.0-20140307-002223;执行perl setup.py install;然后又报错了:<br /><br /><br />略一堆log,截取最后一个for循环:<br /><br />    for pkg, src_dir, build_dir, filenames in build_py.data_files:<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 39, in getattr<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 44, in _get_data_files<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 92, in analyze_manifest<br />  File "/usr/local/python27/lib/python2.7/distutils/cmd.py", line 326, in run_command<br />    self.distribution.run_command(command)<br />  File "/usr/local/python27/lib/python2.7/distutils/dist.py", line 972, in run_command<br />    cmd_obj.run()<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 177, in run<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 252, in find_sources<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 306, in run<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 330, in add_defaults<br />  File "/usr/local/python27/lib/python2.7/distutils/command/sdist.py", line 270, in add_defaults<br />    for pkg, src_dir, build_dir, filenames in build_py.data_files:<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 39, in getattr<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 44, in _get_data_files<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 92, in analyze_manifest<br />  File "/usr/local/python27/lib/python2.7/distutils/cmd.py", line 326, in run_command<br />    self.distribution.run_command(command)<br />  File "/usr/local/python27/lib/python2.7/distutils/dist.py", line 972, in run_command<br />    cmd_obj.run()<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 170, in run<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 379, in write_pkg_info<br />  File "/usr/local/python27/lib/python2.7/distutils/dist.py", line 1104, in write_pkg_info<br />    pkg_info = open(os.path.join(base_dir, 'PKG-INFO'), 'w')<br />  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 161, in _open<br />  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 172, in _ok<br />  File "/usr/local/python27/lib/python2.7/posixpath.py", line 367, in realpath<br />    path, ok = _joinrealpath('', filename, {})<br />  File "/usr/local/python27/lib/python2.7/posixpath.py", line 392, in _joinrealpath<br />    if not islink(newpath):<br />  File "/usr/local/python27/lib/python2.7/posixpath.py", line 145, in islink<br />    return stat.S_ISLNK(st.st_mode)<br />  File "/usr/local/python27/lib/python2.7/stat.py", line 56, in S_ISLNK<br />    return S_IFMT(mode) == S_IFLNK<br />RuntimeError: maximum recursion depth exceeded<br /><br /><br /><br /><br />期间因多次出现“RuntimeError: maximum recursion depth exceeded”,我手动安装了安装OpenERP需要的Python库(http://greybeard.iteye.com/blog/1326526)<br /><br />  $ easy_install2.6 lxml<br />  $ easy_install2.6 psycopg2<br />  $ easy_install2.6 pyaml<br />  $ easy_install2.6 reportlab<br />  $ easy_install2.6 mako (RuntimeError: maximum recursion depth exceeded)<br />  $ easy_install2.6 pil<br />  --------------------------------------------------------------------------------------<br />  $ easy_install2.6 cherrypy<br />  $ easy_install2.6 formencode (RuntimeError: maximum recursion depth exceeded in cmp)<br />  $ easy_install2.6 simplejson<br />  $ easy_install2.6 babel<br />  $ easy_install2.6 pytz<br />  $ easy_install2.6 werkzeug  (RuntimeError: maximum recursion depth exceeded)<br />  --------------------------------------------------------------------------------------<br />  $ easy_install2.6 python-dateutil <br /><br /><br /><br /><br /><br />然后,我已经迷惘了,不知道怎么安装下去了.....<br /><br /><br /><br />求横批.....<br /><br /><br /><br />



  • 最近接触openerp,尝试在Redhat as5 python2.7 nginx1.4 postgreSQL9.2.1下部署一套openerp7.0 ,<br />可发现不太容易。<br /><br />解压执行python setup.py install 抛出一个异常:RuntimeError: maximum recursion depth exceeded  ,然后就终止了<br /><br />好纠结,貌似不是openerp问题,但不熟悉python,无从下手, 想各位前辈指点下,谦虚求教....<br /><br />===下面是机器环境和我部署程序的记录===<br />Redhat as5 2.6.18-164.el5<br />python2.7 (最近升级了) /  python2.4(YUM用)<br />安装路径: /usr/bin/python -> /usr/local/python27/bin/python<br /><br />nginx1.4 :服务和80端口正常<br />postgreSQL9.2.1 :服务和5432端口正常<br /><br />安装openerp-7.0<br />#tar -zxvf openerp-7.0-latest.tar.gz && cd openerp-7.0-20140307-002223;<br />#ls<br />debian  doc  install  LICENSE  MANIFEST.in  openerp  openerp.egg-info  openerp-server  PKG-INFO  README  setup.cfg  setup.nsi  setup.py  setup_rpm.sh  win32<br />#cat README <br />--------------------<br />Installation on RedHat, Fedora, CentOS<br />--------------------------------------<br /><br />Install the required dependencies:<br /><br />    $ yum install python<br />    $ easy_install pip<br />    $ pip install .....<br /><br />Install the openerp rpm<br /><br />    $ rpm -i openerp-VERSION.rpm<br />----------------------------<br /><br /><br />我检查了一下是否满足安装条件:<br />03-07 13:52 2to3<br />03-14 15:04 cherryd<br />03-12 11:37 easy_install<br />03-12 11:37 easy_install-2.7<br />03-07 13:52 idle<br />03-14 15:04 mako-render<br />03-14 14:57 pilconvert.py<br />03-14 14:57 pildriver.py<br />03-14 14:57 pilfile.py<br />03-14 14:57 pilfont.py<br />03-14 14:57 pilprint.py<br />03-14 12:58 pip<br />03-14 12:58 pip2<br />03-14 12:58 pip2.7<br />03-14 14:59 pybabel<br />03-07 13:52 pydoc<br />03-07 14:00 python -> python2<br />03-07 14:00 python2 -> python2.7<br />03-07 14:00 python2.7<br />03-07 14:00 python2.7-config<br />03-07 14:00 python2-config -> python2.7-config<br />03-07 14:00 python-config -> python2-config<br /><br />看满足条件,我就参考:http://shine-it.net/index.php/topic,7293.0.html 第一部分,不行,服务缺模块忘记了哪个..<br />然后我cd openerp-7.0-20140307-002223;执行perl setup.py install;然后又报错了:<br /><br /><br />略一堆log,截取最后一个for循环:<br /><br />    for pkg, src_dir, build_dir, filenames in build_py.data_files:<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 39, in getattr<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 44, in _get_data_files<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 92, in analyze_manifest<br />  File "/usr/local/python27/lib/python2.7/distutils/cmd.py", line 326, in run_command<br />    self.distribution.run_command(command)<br />  File "/usr/local/python27/lib/python2.7/distutils/dist.py", line 972, in run_command<br />    cmd_obj.run()<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 177, in run<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 252, in find_sources<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 306, in run<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 330, in add_defaults<br />  File "/usr/local/python27/lib/python2.7/distutils/command/sdist.py", line 270, in add_defaults<br />    for pkg, src_dir, build_dir, filenames in build_py.data_files:<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 39, in getattr<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 44, in _get_data_files<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 92, in analyze_manifest<br />  File "/usr/local/python27/lib/python2.7/distutils/cmd.py", line 326, in run_command<br />    self.distribution.run_command(command)<br />  File "/usr/local/python27/lib/python2.7/distutils/dist.py", line 972, in run_command<br />    cmd_obj.run()<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 170, in run<br />  File "build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py", line 379, in write_pkg_info<br />  File "/usr/local/python27/lib/python2.7/distutils/dist.py", line 1104, in write_pkg_info<br />    pkg_info = open(os.path.join(base_dir, 'PKG-INFO'), 'w')<br />  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 161, in _open<br />  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 172, in _ok<br />  File "/usr/local/python27/lib/python2.7/posixpath.py", line 367, in realpath<br />    path, ok = _joinrealpath('', filename, {})<br />  File "/usr/local/python27/lib/python2.7/posixpath.py", line 392, in _joinrealpath<br />    if not islink(newpath):<br />  File "/usr/local/python27/lib/python2.7/posixpath.py", line 145, in islink<br />    return stat.S_ISLNK(st.st_mode)<br />  File "/usr/local/python27/lib/python2.7/stat.py", line 56, in S_ISLNK<br />    return S_IFMT(mode) == S_IFLNK<br />RuntimeError: maximum recursion depth exceeded<br /><br /><br /><br /><br />期间因多次出现“RuntimeError: maximum recursion depth exceeded”,我手动安装了安装OpenERP需要的Python库(http://greybeard.iteye.com/blog/1326526)<br /><br />  $ easy_install2.6 lxml<br />  $ easy_install2.6 psycopg2<br />  $ easy_install2.6 pyaml<br />  $ easy_install2.6 reportlab<br />  $ easy_install2.6 mako (RuntimeError: maximum recursion depth exceeded)<br />  $ easy_install2.6 pil<br />  --------------------------------------------------------------------------------------<br />  $ easy_install2.6 cherrypy<br />  $ easy_install2.6 formencode (RuntimeError: maximum recursion depth exceeded in cmp)<br />  $ easy_install2.6 simplejson<br />  $ easy_install2.6 babel<br />  $ easy_install2.6 pytz<br />  $ easy_install2.6 werkzeug  (RuntimeError: maximum recursion depth exceeded)<br />  --------------------------------------------------------------------------------------<br />  $ easy_install2.6 python-dateutil <br /><br /><br /><br /><br /><br />然后,我已经迷惘了,不知道怎么安装下去了.....<br /><br /><br /><br />求横批.....<br /><br /><br /><br />



  • 直接用GreeOpenERP就可以了,方便好用!!


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待