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

when i view after creating 1 plot error, Why? #1288

Open
Ariq627 opened this issue Aug 30, 2022 · 1 comment
Open

when i view after creating 1 plot error, Why? #1288

Ariq627 opened this issue Aug 30, 2022 · 1 comment

Comments

@Ariq627
Copy link

Ariq627 commented Aug 30, 2022

File "manager.py", line 41, in
view(loop=False)
File "/home/Swar-Chia-Plot-Manager/plotmanager/library/utilities/commands.py", line 160, in view
analysis = analyze_log_dates(log_directory=log_directory, analysis=analysis)
File "/home/Swar-Chia-Plot-Manager/plotmanager/library/utilities/log.py", line 88, in analyze_log_dates
data = _analyze_log_end_date(contents, file_path)
File "/home/Swar-Chia-Plot-Manager/plotmanager/library/utilities/log.py", line 36, in _analyze_log_end_date
file_date = dateparser.parse(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(parsed_date)))
File "/usr/local/lib/python3.8/dist-packages/dateparser/conf.py", line 89, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/dateparser/init.py", line 54, in parse
data = parser.get_date_data(date_string, date_formats)
File "/usr/local/lib/python3.8/dist-packages/dateparser/date.py", line 421, in get_date_data
parsed_date = _DateLocaleParser.parse(
File "/usr/local/lib/python3.8/dist-packages/dateparser/date.py", line 178, in parse
return instance._parse()
File "/usr/local/lib/python3.8/dist-packages/dateparser/date.py", line 182, in _parse
date_data = self._parsersparser_name
File "/usr/local/lib/python3.8/dist-packages/dateparser/date.py", line 196, in _try_freshness_parser
return freshness_date_parser.get_date_data(self._get_translated_date(), self._settings)
File "/usr/local/lib/python3.8/dist-packages/dateparser/date.py", line 234, in _get_translated_date
self._translated_date = self.locale.translate(
File "/usr/local/lib/python3.8/dist-packages/dateparser/languages/locale.py", line 131, in translate
relative_translations = self._get_relative_translations(settings=settings)
File "/usr/local/lib/python3.8/dist-packages/dateparser/languages/locale.py", line 158, in _get_relative_translations
self._generate_relative_translations(normalize=True))
File "/usr/local/lib/python3.8/dist-packages/dateparser/languages/locale.py", line 172, in _generate_relative_translations
pattern = DIGIT_GROUP_PATTERN.sub(r'?P\d+', pattern)
File "/usr/local/lib/python3.8/dist-packages/regex/regex.py", line 710, in _compile_replacement_helper
is_group, items = _compile_replacement(source, pattern, is_unicode)
File "/usr/local/lib/python3.8/dist-packages/regex/_regex_core.py", line 1737, in _compile_replacement
raise error("bad escape \%s" % ch, source.string, source.pos)
regex._regex_core.error: bad escape \d at position 7

@constronov
Copy link

constronov commented Nov 13, 2022

Bug in a newer version of regex!

Try:
pip uninstall regex -y
pip install regex==2022.3.2

Maybe the devs can use:
dateparser==1.1.1
to fix the error

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