ceph / ceph/cbt

ImportError: No module named lxml.etree

Open
#96 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
307
Forks
151
Avg merge
14d 23h
Merged PRs (30d)
1

Description

Hi
I was trying to setup CBT on a fresh system and encountered the following problem

```
[root@ceph-node1 cbt]# python cbt.py
Traceback (most recent call last):
File "cbt.py", line 9, in
import benchmarkfactory
File "/root/cbt/benchmarkfactory.py", line 10, in
from benchmark.cosbench import Cosbench
File "/root/cbt/benchmark/cosbench.py", line 8, in
import lxml.etree as ET
ImportError: No module named lxml.etree
[root@ceph-node1 cbt]#
```

The fix was simple `yum -y install python-lxml`, just for documentation purpose i am creating this issue. I will submit a PR for updating documentation.

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the setup path from cbt.py to benchmark/cosbench.py, where the lxml.etree import is shown, and identify the appropriate existing setup documentation. Document that Python lxml is required and that installing python-lxml resolves this import error; done means a fresh setup lists the dependency clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.