Hi there,
After installatoin crmsh-2.1.0-1.x86_64, when invoking crm i got:
# crm
Fatal error:
No module named lxml
No module named modules
There's missing python-lxml requirement, attached patch fixes this.
With python-lxml installed, i got another error:
# crm
Fatal error:
No module named pdb
No module named modules
I've installed python-devel-tools (contains pdb.py), and crmsh works
Full trace:
# python
Python 2.7.8 (default, Jul 18 2014, 10:11:56)
[GCC 4.8.3 20140522 (release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from crmsh import main
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/crmsh/main.py", line 33, in
<module>
import ui_root
File "/usr/lib64/python2.7/site-packages/crmsh/ui_root.py", line 36,
in <module>
import ui_cib
File "/usr/lib64/python2.7/site-packages/crmsh/ui_cib.py", line 22,
in <module>
import xmlutil
File "/usr/lib64/python2.7/site-packages/crmsh/xmlutil.py", line 20,
in <module>
from lxml import etree, doctestcompare
File "/usr/lib64/python2.7/site-packages/lxml/doctestcompare.py",
line 41, in <module>
File "/usr/share/python2.7/doctest.py", line 99, in <module>
ImportError: No module named pdb
>>>
/usr/share/python2.7/doctest.pyc belongs to
python-modules-2.7.8-1.x86_64, so i think python-modules should include
/usr/share/python2.7/pdb.pyc or python-modules should require
python-devel-tools, or python-lxml should require python-devel-tools.
Any toughts?
--
Bartek
diff --git a/crmsh.spec b/crmsh.spec
index 92575d6..b77ea73 100644
--- a/crmsh.spec
+++ b/crmsh.spec
@@ -4,7 +4,7 @@
Summary: Pacemaker command line interface for management and configuration
Name: crmsh
Version: 2.1.0
-Release: 1
+Release: 2
License: GPL v2
Group: Applications/System
Source0: https://github.com/crmsh/crmsh/archive/%{version}/crmsh-%{version}.tar.gz
@@ -20,6 +20,7 @@ BuildRequires: pacemaker-devel >= 1.1.8
BuildRequires: python
BuildRequires: python-modules
Requires: pacemaker >= 1.1.11
+Requires: python-lxml
Provides: pacemaker-shell
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en