导入模块时无响应
-
[list type=decimal][li]检查一下客户端和服务器安装目录下的log文件,看有什么报错。[/li][li]不是所有的模块都能工作于你安装的Tiny版本下的。[/li][li]你还可以试一下不用模块导入,直接在模块管理中下载安装。[/li][li]具体是什么模块?[/li][/list]
-
试了一下,在Tiny ERP 4.2rc2也就是中文V0.1中客户端会报错:模块文件不是zip文件。在Tiny ERP 4.2中是正常的。
你在V4.2中的错误可能是因为还是用了rc2的数据库,而没有将rc2的数据库升级。你可以用以下命令来升级数据库,或创建一个新的数据库来试试。
在tinyerp服务器目录下输入:
[code]
tinyerp-server --update=all
[/code] -
我装的数据库是postgresql 8.2版,装完后我装tinyerp-server-setup-4.2.0,在输入如下命令初始化完时提示:
C:Program FilesTinyERP Server>tinyerp-server.exe -d terp -r postgres -w postgr
es --db_host=localhost --logfile="c:program filestinyerp servertinyerp-server
.log" --db_port=5432 -s --stop-after-init --init=all
C:Program FilesTinyERP Serverlibrary.ziposvfields.py:90: DeprecationWarning
: The relate attribute doesn't work anymore, use act_window tag instead
Traceback (most recent call last):
File "tinyerp-server.py", line 170, in <module>
File "addons__init__.pyo", line 256, in register_classes
File "C:Program FilesTinyERP Serveraddons__init__.py", line 4, in <module>#File "C:Program FilesTinyERP Serveraddons__init__.py", line 3, in <module>
# Copyright (c) 2004 TINY SPRL. ( tiny.be )ImportError: No module named sales_report
最后tinyerp client装完后也可以使用了,并且可导入post-of-sale模块了,但上述提示请问是何意思?且是否tinyerp在使用时必须连接internet才可进行模块安装呢?[[i] 本帖最后由 tianciyx 于 2007-11-14 20:50 编辑 [/i]]
-
[quote]ImportError: No module named sales_report
最后tinyerp client装完后也可以使用了,并且可导入post-of-sale模块了,但上述提示请问是何意思?且是否tinyerp在使用时必须连接internet才可进行模块安装呢?
[/quote]从上面最后一行的错误看出你使用的数据库terp是以前安装的,曾经安装过sales_report模块。新安装的Tiny demo是不包括这个模块,也许这就是引起错误的原因。安装模块时最好要连接internet,因为大多数模块的安装都要涉及到其他附属模块的安装,除非你已经安装了所有涉及的附属模块,否则在更新模块时Tiny会从网上下载并安装相应附属模块。
-
我格式化后重装系统,数据库安装一切正常,但在装完tinyerp-server-setup-4.2.0后,输入命令C:Program FilesTinyERP Server>tinyerp-server.exe -d terp -r postgres -w postgr
es --db_host=localhost --logfile="c:program filestinyerp servertinyerp-server
.log" --db_port=5432 -s --stop-after-init --init=all后得到如下提示:
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "threading.pyo", line 460, in __bootstrap
File "threading.pyo", line 625, in run
File "C:Program FilesTinyERP Serveraddonsbaseirir_cron.py", line 95, in
_poolJobs
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'now'
Unhandled exception in thread started by
Error in sys.excepthook:Original exception was:
真不知该怎么办了 -
你把--stop-after-init去掉试试。即使有这个错误也应该不影响使用的吧?
-
stop-after-init选项是初始化后就停掉console中的TinyERP服务器,可能线程没有返回就出了问题,也可能是影响了运行中的tinyerp-service服务。你可以手动关掉console窗口,然后在windows服务中启动TinyERP Server服务。 我这里好象没有这个问题,奇怪。
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login