awslabs / awslabs/python-deequ

Invalid escape sequence

Open
#235 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
826
Forks
158
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
`configs.py` gives `SyntaxError: invalid escape sequence '\.'` from `IS_DEEQU_V1 = re.search("com\.amazon\.deequ\:deequ\:1.*", DEEQU_MAVEN_COORD) is not None`

Raw strings or double backslashes are needed.

**To Reproduce**
This only happens when running pytest and not from the REPL. I have not reproduced this independently yet. But dot and colon are not valid escape sequences.

**Expected behavior**
No errors from invalid escape sequences.

**Desktop (please complete the following information):**
macos running 6.10.0-linuxkit docker image.

**Additional context**
```
from pydeequ.configs import SPARK_VERSION
E File "/root/poetry/venv/lib/python3.10/site-packages/pydeequ/configs.py", line 43
E IS_DEEQU_V1 = re.search("com\.amazon\.deequ\:deequ\:1.*", DEEQU_MAVEN_COORD) is not None
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E SyntaxError: invalid escape sequence '\.'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.