Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re.error: bad character range y-m at position 167 #42

Open
kamal2222ahmed opened this issue Feb 4, 2019 · 1 comment
Open

re.error: bad character range y-m at position 167 #42

kamal2222ahmed opened this issue Feb 4, 2019 · 1 comment

Comments

@kamal2222ahmed
Copy link

rma -s bg-redis.x.x.x.x -p 6379 -a password
Match *: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋| 378067/378654 [04:42<00:00, 1337.09it/s]

Aggregating keys by pattern and type
Traceback (most recent call last):
File "/Users/syedahmed/anaconda3/bin/rma", line 11, in
sys.exit(main())
File "/Users/syedahmed/anaconda3/lib/python3.7/site-packages/rma/cli/rma_cli.py", line 97, in main
app.run()
File "/Users/syedahmed/anaconda3/lib/python3.7/site-packages/rma/application.py", line 133, in run
keys = {k: self.get_pattern_aggregated_data(v) for k, v in keys.items()}
File "/Users/syedahmed/anaconda3/lib/python3.7/site-packages/rma/application.py", line 133, in
keys = {k: self.get_pattern_aggregated_data(v) for k, v in keys.items()}
File "/Users/syedahmed/anaconda3/lib/python3.7/site-packages/rma/application.py", line 186, in get_pattern_aggregated_data
aggregate_patterns[pattern] = list(filter(lambda obj: fnmatch.fnmatch(ptransform(obj["name"]), pattern), data))
File "/Users/syedahmed/anaconda3/lib/python3.7/site-packages/rma/application.py", line 186, in
aggregate_patterns[pattern] = list(filter(lambda obj: fnmatch.fnmatch(ptransform(obj["name"]), pattern), data))
File "/Users/syedahmed/anaconda3/lib/python3.7/fnmatch.py", line 36, in fnmatch
return fnmatchcase(name, pat)
File "/Users/syedahmed/anaconda3/lib/python3.7/fnmatch.py", line 70, in fnmatchcase
match = _compile_pattern(pat)
File "/Users/syedahmed/anaconda3/lib/python3.7/fnmatch.py", line 46, in _compile_pattern
return re.compile(res).match
File "/Users/syedahmed/anaconda3/lib/python3.7/re.py", line 234, in compile
return _compile(pattern, flags)
File "/Users/syedahmed/anaconda3/lib/python3.7/re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "/Users/syedahmed/anaconda3/lib/python3.7/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/Users/syedahmed/anaconda3/lib/python3.7/sre_parse.py", line 930, in parse
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
File "/Users/syedahmed/anaconda3/lib/python3.7/sre_parse.py", line 426, in _parse_sub
not nested and not items))
File "/Users/syedahmed/anaconda3/lib/python3.7/sre_parse.py", line 816, in _parse
p = _parse_sub(source, state, sub_verbose, nested + 1)
File "/Users/syedahmed/anaconda3/lib/python3.7/sre_parse.py", line 426, in _parse_sub
not nested and not items))
File "/Users/syedahmed/anaconda3/lib/python3.7/sre_parse.py", line 580, in _parse
raise source.error(msg, len(this) + 1 + len(that))
re.error: bad character range y-m at position 167

@misterion
Copy link
Contributor

Could you please try with v0.2? After #38 merge it should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants