Qt/C++ 发表于 2018-9-22 15:40:41

安装 odoo 11 localhost:8069 无响应 server/odoo.log 无提示 解决办法

安装 odoo 11 localhost:8069 无响应 server/odoo.log 无提示 解决办法
笔者在 MicroSoft Windows 7.1 amd64 操作系统下安装 odoo_11.0.20180920 后,发现 http://localhost:8069/ 不会展示任何内容 (即:无以下界面)
odoo 11 初始界面
查看 Odoo 11.0/server/odoo.log 文件,也无以下提示 2018-09-22 08:54:02,381 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web HTTP/1.1" 303 -
2018-09-22 08:54:03,333 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web/database/selector HTTP/1.1" 200 -
2018-09-22 08:54:03,383 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 200 -
2018-09-22 08:54:03,716 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.1" 200 -
2018-09-22 08:54:03,719 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web/static/lib/jquery/jquery.js HTTP/1.1" 200 -
2018-09-22 08:54:03,726 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web/static/lib/bootstrap/js/dropdown.js HTTP/1.1" 200 -
2018-09-22 08:54:03,727 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web/static/lib/bootstrap/js/modal.js HTTP/1.1" 200 -
2018-09-22 08:54:03,728 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web/static/lib/bootstrap/js/tooltip.js HTTP/1.1" 200 -
2018-09-22 08:54:04,131 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web/static/lib/fontawesome/fonts/fontawesome-webfont.woff2?v=4.7.0 HTTP/1.1" 200 -
2018-09-22 08:54:04,228 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web/static/src/img/logo2.png HTTP/1.1" 200 -
2018-09-22 08:54:04,438 34496 INFO ? werkzeug: 127.0.0.1 - - "GET /web/static/src/img/favicon.ico HTTP/1.1" 200 -
10 倍以上效率提升 极速智能编辑 重构 "数字化 Python IDE" 开发工具http://idepy.digitser.cn/http://forum.digitser.cn/thread-2266-1-1.html
百度网盘
https://pan.baidu.com/s/1cKxajG
软件仓库
https://github.com/digitser
https://digitser.sourceforge.io/https://pan.baidu.com/s/1TV70__Be1ta0ney1-tudFQ
只有以下提示2018-09-21 12:37:38,557 7708 INFO ? odoo: database: openpg@localhost:5432
2018-09-21 12:37:42,070 4072 INFO ? odoo: Odoo version 11.0-20180920
2018-09-21 12:37:42,072 4072 INFO ? odoo: Using configuration file at x:\Program Files (x86)\Odoo 11.0\server\odoo.conf
2018-09-21 12:37:42,072 4072 INFO ? odoo: addons paths: ['C:\\Users\\xxx\\AppData\\Local\\OpenERP S.A.\\Odoo\\addons\\11.0', 'x:\\Program Files (x86)\\Odoo 11.0\\server\\odoo\\addons']
解决办法
把 Odoo 11.0/python/Lib/_strptime.py 文件部分内容
"""Strptime-related classes and functions.

CLASSES:
    LocaleTime -- Discovers and stores locale-specific time information
    TimeRE -- Creates regexes for pattern matching a string of text containing
                time information

FUNCTIONS:
    _getlang -- Figure out what language is being used for the locale
    strptime -- Calculates the time struct represented by the passed-in string

"""
import time
import locale
import calendar
from re import compile as re_compile
from re import IGNORECASE
from re import escape as re_escape
from datetime import (date as datetime_date,
                      timedelta as datetime_timedelta,
                      timezone as datetime_timezone)
try:
    from _thread import allocate_lock as _thread_allocate_lock
except ImportError:
    from _dummy_thread import allocate_lock as _thread_allocate_lock

__all__ = []修改为"""Strptime-related classes and functions.

CLASSES:
    LocaleTime -- Discovers and stores locale-specific time information
    TimeRE -- Creates regexes for pattern matching a string of text containing
                time information

FUNCTIONS:
    _getlang -- Figure out what language is being used for the locale
    strptime -- Calculates the time struct represented by the passed-in string

"""
import time
import locale
import calendar
from re import compile as re_compile
from re import IGNORECASE
from re import escape as re_escape
from datetime import (date as datetime_date,
                      timedelta as datetime_timedelta,
                      timezone as datetime_timezone)
try:
    from _thread import allocate_lock as _thread_allocate_lock
except ImportError:
    from _dummy_thread import allocate_lock as _thread_allocate_lock
   
locale.setlocale(locale.LC_ALL,'en') #添加此行

__all__ = []重启所有 Odoo 服务或重启 PC 后,再 http://localhost:8069/ 就一切正常了,可进行初始设置了。

http://forum.digitser.cn/data/attachment/forum/201605/19/132155fevczeyds5e5y1wy.jpg"长按二维码" 或 "扫一扫" 关注 "德云社区" 微信公众号
版权声明:
本文为独家编译稿件,版权归 德云社区,未经许可不得转载;否则,将追究其法律责任。

页: [1]
查看完整版本: 安装 odoo 11 localhost:8069 无响应 server/odoo.log 无提示 解决办法