我在Magento应用程序的页面上发现了一个错误; 我访问它时总是显示此消息错误:
致命错误:在第95行的/home/.../lib/Zend/Feed/Abstract.php中找不到类'DOMDocument'
你能给我一个解决方案吗?我正在使用magento 1.4.1.1.
在安装openerp 6的过程时,我想用这个命令生成一个配置文件,
cd/home/openerp/openerp-server/bin /
./openerp-server.py -s --stop-after-init -c /home/openerp/openerp-server.cfg
但它总是显示出一个信息
ImportError: No module named psycopg2
当我检查psycopg2包时,它已经安装好,
包python-psycopg2-2.4.5-1.rhel5.x86_64已安装和最新版本
没事做
这有什么问题?我的服务器是centos,我安装了python 2.6.7.
真的需要你的帮助..
我需要安装psycopg2的openerp安装过程,但我总是发现错误.我已经使用pip和easy_install,我的gcc是最新的版本.真的需要你的帮助来解决我的问题......
这是我对easy_install的完整错误..
[root@server01 ~]# easy_install psycopg2
Searching for psycopg2
Reading http://pypi.python.org/simple/psycopg2/
Reading http://initd.org/psycopg/
Reading http://initd.org/projects/psycopg2
Best match: psycopg2 2.4.5
Downloading http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz
Processing psycopg2-2.4.5.tar.gz
Running psycopg2-2.4.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-anWVvJ/psycopg2-2.4.5/egg-dist-tmp-cZbdtn
no previously-included directories found matching 'doc/src/_build' In file included from psycopg/psycopgmodule.c:27:
./psycopg/psycopg.h:31:22: error: libpq-fe.h: No such file or directory In file included from psycopg/psycopgmodule.c:29:
...
error: Setup script exited with error: command 'gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud) 我用pip和easy_install.
我收到此错误消息:
Downloading/unpacking psycopg2
Running setup.py egg_info for package psycopg2
error: invalid Python installation: unable to open /usr/include/python2.6/pyconfig.h (No such file or directory)
Complete output from command python setup.py egg_info:
running egg_info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
error: invalid Python installation: unable to open /usr/include/python2.6/pyconfig.h (No such file or directory)
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/psycopg2
Storing …Run Code Online (Sandbox Code Playgroud) 当我想制作按钮时type="action",我遇到了一个问题,它真的与之不同type="object".我只想制作可以将一个模块连接到另一个模块的按钮.它已经存在于openerp中的几个按钮中type="action".我只是想了解"name"这个按钮的功能是什么?
我有一个例子,我在后端销售文件夹中找到了这个xml脚本:
<button name="%(action_view_sale_advance_payment_inv)d"
string="Create Invoice"
type="action"
states="manual"
class="oe_highlight"
groups="base.group_user"/>
Run Code Online (Sandbox Code Playgroud)
当我安装销售模块,然后我在前端看到xml脚本sale.order.form,它已经变成:
<button name="278"
string="Create Invoice"
type="action"
states="manual"
class="oe_highlight"
groups="base.group_user"/>
Run Code Online (Sandbox Code Playgroud)
发生了什么事"name"?任何人都可以给我一个简单的按钮type="action"吗?