python html5 bootstrap 视频教程

德云社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 4542|回复: 0

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

[复制链接]

100

主题

102

帖子

599

积分

高级技师

Rank: 4

金钱
385
金币
11
威望
0
贡献
0
发表于 2018-9-22 15:40:41 | 显示全部楼层 |阅读模式
AI人工智能 语音助理 人工翻译 教程
安装 odoo 11 localhost:8069 无响应 server/odoo.log 无提示 解决办法

笔者在 MicroSoft Windows 7.1 amd64 操作系统下安装 odoo_11.0.20180920 后,发现 http://localhost:8069/ 不会展示任何内容 (即:无以下界面)


02.png
odoo 11 初始界面

查看 Odoo 11.0/server/odoo.log 文件,也无以下提示

  1. 2018-09-22 08:54:02,381 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:02] "GET /web HTTP/1.1" 303 -
  2. 2018-09-22 08:54:03,333 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:03] "GET /web/database/selector HTTP/1.1" 200 -
  3. 2018-09-22 08:54:03,383 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:03] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 200 -
  4. 2018-09-22 08:54:03,716 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:03] "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.1" 200 -
  5. 2018-09-22 08:54:03,719 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:03] "GET /web/static/lib/jquery/jquery.js HTTP/1.1" 200 -
  6. 2018-09-22 08:54:03,726 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:03] "GET /web/static/lib/bootstrap/js/dropdown.js HTTP/1.1" 200 -
  7. 2018-09-22 08:54:03,727 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:03] "GET /web/static/lib/bootstrap/js/modal.js HTTP/1.1" 200 -
  8. 2018-09-22 08:54:03,728 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:03] "GET /web/static/lib/bootstrap/js/tooltip.js HTTP/1.1" 200 -
  9. 2018-09-22 08:54:04,131 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:04] "GET /web/static/lib/fontawesome/fonts/fontawesome-webfont.woff2?v=4.7.0 HTTP/1.1" 200 -
  10. 2018-09-22 08:54:04,228 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:04] "GET /web/static/src/img/logo2.png HTTP/1.1" 200 -
  11. 2018-09-22 08:54:04,438 34496 INFO ? werkzeug: 127.0.0.1 - - [22/Sep/2018 08:54:04] "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


只有以下提示

  1. 2018-09-21 12:37:38,557 7708 INFO ? odoo: database: openpg@localhost:5432
  2. 2018-09-21 12:37:42,070 4072 INFO ? odoo: Odoo version 11.0-20180920
  3. 2018-09-21 12:37:42,072 4072 INFO ? odoo: Using configuration file at x:\Program Files (x86)\Odoo 11.0\server\odoo.conf
  4. 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 文件部分内容

  1. """Strptime-related classes and functions.

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

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

  9. """
  10. import time
  11. import locale
  12. import calendar
  13. from re import compile as re_compile
  14. from re import IGNORECASE
  15. from re import escape as re_escape
  16. from datetime import (date as datetime_date,
  17.                       timedelta as datetime_timedelta,
  18.                       timezone as datetime_timezone)
  19. try:
  20.     from _thread import allocate_lock as _thread_allocate_lock
  21. except ImportError:
  22.     from _dummy_thread import allocate_lock as _thread_allocate_lock

  23. __all__ = []
复制代码

修改为

  1. """Strptime-related classes and functions.

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

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

  9. """
  10. import time
  11. import locale
  12. import calendar
  13. from re import compile as re_compile
  14. from re import IGNORECASE
  15. from re import escape as re_escape
  16. from datetime import (date as datetime_date,
  17.                       timedelta as datetime_timedelta,
  18.                       timezone as datetime_timezone)
  19. try:
  20.     from _thread import allocate_lock as _thread_allocate_lock
  21. except ImportError:
  22.     from _dummy_thread import allocate_lock as _thread_allocate_lock
  23.    
  24. locale.setlocale(locale.LC_ALL,'en') #添加此行

  25. __all__ = []
复制代码

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

"长按二维码" 或 "扫一扫" 关注 "德云社区" 微信公众号

版权声明:
本文为独家编译稿件,版权归 德云社区,未经许可不得转载;否则,将追究其法律责任。


AI人工智能 语音助理 人工翻译 教程
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|Sitemap|小黑屋|德云社区 |网站地图  

GMT+8, 2024-11-27 06:30 , Processed in 0.027194 second(s), 30 queries .

工业和信息化部: 粤ICP备14079481号-2

技术支持 乐数软件     版权所有 © 2014-2021 德云社区    

快速回复 返回顶部 返回列表