具体错误日志如下:
OpenERP Server Error
Client Traceback (most recent call last):
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\web\http.py", line 204, in dispatch
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\web\controllers\main.py", line 1132, in call_button
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\web\controllers\main.py", line 1120, in _call_kw
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\web\session.py", line 42, in proxy
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\web\session.py", line 30, in proxy_method
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\web\session.py", line 103, in send
Server Traceback (most recent call last):
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\web\session.py", line 89, in send
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\netsvc.py", line 296, in dispatch_rpc
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\service\web_services.py", line 626, in dispatch
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\osv\osv.py", line 190, in execute_kw
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\osv\osv.py", line 132, in wrapper
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\osv\osv.py", line 199, in execute
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\osv\osv.py", line 187, in execute_cr
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\stock\wizard\stock_partial_picking.py", line 214, in do_partial
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\stock\stock.py", line 1370, in do_partial
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\stock\stock.py", line 909, in action_move
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server\openerp\addons\stock\stock.py", line 2437, in action_done
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\workflow\wkf_service.py", line 55, in trg_write
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\workflow\instance.py", line 52, in update
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\workflow\workitem.py", line 60, in process
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\workflow\workitem.py", line 157, in _split_test
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\workflow\wkf_expr.py", line 80, in check
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\workflow\wkf_expr.py", line 57, in _eval_expr
File "C:\SWTOOLS\OpenERP7\OpenERP 7.0-20140616-231123\Server\server.\openerp\tools\safe_eval.py", line 285, in safe_eval
File "", line 1, in <module>
NameError: name 'test_serial' is not defined
cnkenny
-
OE执行序列号入库时出现NameError: name 'test_serial' is not defined -
【已解决】Ubuntu12.10x64安装OpenERP时PIL问题[quote author=Jeff link=topic=4404.msg12075#msg12075 date=1351147574]
看了楼主的博客,写得清晰完整,有两个小建议:
1、 latest版本是每日构建的版本,可能不稳定,建议记住日期20120619,并关注后续版本是否有重要修正。
2、源码可直接运行,不需要 setup.py install ,直接到目录下运行即可。这样发现有问题可以下载更新的源文件覆盖后即可重用。
[/quote]
多谢 Jeff 的指点,同时非常感谢你们带来这么好的产品~~~ -
【已解决】Ubuntu12.10x64安装OpenERP时PIL问题 -
【已解决】Ubuntu12.10x64安装OpenERP时PIL问题预览带图片的PDF文件时出错(纯文本没有问题):
decoder zip not available
identity=[ImageReader@0x7f37802e0550]
handle_pageBegin args=()
(<type 'exceptions.IOError'>, IOError('decoder zip not available\nidentity=[ImageReader@0x7f37802e0550]\n handle_pageBegin args=()',), <traceback object at 0x7f378cecfb90>)
重新安装PIL还是出错,
也做了软链接:
------------------------------------------------------------------------------------------------------------------------------------
# ln -sf /lib/x86_64-linux-gnu/libz.so.1.2.7 /usr/lib/libz.so
# ln -sf /lib/x86_64-linux-gnu/libfreetype.so.6.9.0 /usr/lib/libfreetype.so
# ln -sf /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2 /usr/lib/libjpeg.so
------------------------------------------------------------------------------------------------------------------------------------
依然报错:
--------------------------------------------------------------------
PIL 1.1.7 TEST SUMMARY
--------------------------------------------------------------------
Python modules loaded from ./PIL
Binary modules loaded from ./PIL
--------------------------------------------------------------------
--- PIL CORE support ok
*** TKINTER support not installed
*** JPEG support not installed
*** ZLIB (PNG/ZIP) support not installed
--- FREETYPE2 support ok
--- LITTLECMS support ok
--------------------------------------------------------------------
Running selftest:
**************************************************************
Failure in example:
try:
_info(Image.open(os.path.join(ROOT, "Images/lena.jpg")))
except IOError, v:
print v
from line #24 of selftest.testimage
Expected: ('JPEG', 'RGB', (128, 128))
Got: decoder jpeg not available
1 items had failures:
1 of 57 in selftest.testimage
Test Failed 1 failures.
1 tests of 57 failed.
先记录一下,等解决了再贴出方法~~ -
CentOS6.2+OpenERP6.1 打印报价单出错:decoder zip not available问题自己解决了,这是因为安装PIL-1.1.6导致的错误,错误如下:
**************************************************************
Failure in example: _info(Image.open("Images/lena.jpg"))
from line #24 of selftest.testimage
Exception raised:
Traceback (most recent call last):
File "./doctest.py", line 499, in _run_examples_inner
exec compile(source, "<string>", "single") in globs
File "<string>", line 1, in <module>
File "./selftest.py", line 22, in _info
im.load()
File "PIL/ImageFile.py", line 180, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "PIL/Image.py", line 375, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
1 items had failures:
1 of 57 in selftest.testimage
Test Failed 1 failures.
1 tests of 57 failed.
后来直接去安装了个 PIL-1.1.7,完美解决!!! -
CentOS6.2+OpenERP6.1 打印报价单出错:decoder zip not availabledecoder zip not available
(<type 'exceptions.IOError'>, IOError('decoder zip not available',), <traceback object at 0xb270c5a4>)