Eric
March 3, 2023, 1:57pm
#1
Dear Perceval users,
Be aware that new installs of Perceval 0.7 have a blocking issue. Hopefully, an easy work-around exists: drawsvg
needs to be downgraded to version 1.x (pip install drawsvg<2.0
).
For more details, please check the github issue:
opened 11:42PM - 27 Feb 23 UTC
**Prerequisite**
Please ensure that this bug has not been answered on the [Perc… eval forum](https://perceval.quandela.net/forum) Done
**Describe the bug**
drawsvg (previously drawSvg) has changed its [naming scheme](https://pypi.org/project/drawsvg/) from CamelCase to underscore based, in the 2.0 major release.
Installing drawsvg with version greater than 2.0 causes `import perceval` to fail, because of `import drawSvg` statements in several places.
**To Reproduce**
Steps to reproduce the behavior:
1. On a clean system, `python -m pip install perceval-quandela`
2. On the python console `import perceval`
3. Error relating to `import drawSvg` pops up
**Expected behavior**
Import should occur with no errors.
**Desktop (please complete the following information):**
- OS: Debian
- CPU Arch: x86_64
- Python Version: 3.10
- Perceval Version: 0.7.3
**Additional context**
The temporary fix is to add `drawsvg<2.0` in the requirements.txt. Long term, perceval should start using the latest version of drawsvg. As many of drawsvg function names have changed, this will require some work.
1 Like