Closed 0xACE closed 4 years ago
The error I get is a 7000 lines long dump:
https://gist.github.com/0xACE/437c55eaae70385ece7a1d7304ff94dc
I'm currently using this workaround:
diff --git a/rebulk/loose.py b/rebulk/loose.py
index 5e747a8..e92d594 100644
--- a/rebulk/loose.py
+++ b/rebulk/loose.py
@@ -56,7 +56,7 @@ def call(function, *args, **kwargs):
:rtype: object
"""
func = constructor_args if isclass(function) else function_args
- call_args, call_kwargs = func(function, *args, **kwargs)
+ call_args, call_kwargs = func(function, *args, ignore_unused=True, **kwargs)
return function(*call_args, **call_kwargs)
The issue is that python-regex made a breaking change to reject unused kwargs: https://bitbucket.org/mrabarnett/mrab-regex/issues/357/new-exception-valueerror-unused-keyword
Thanks @0xACE for pointing out the issue and @singron for the patch, I've included it in the AUR package for now and will remove when rebulk gets it sorted out. :)
Could you rename this issue? It's affecting more downstream programs like https://github.com/pymedusa/Medusa/issues/7743 and https://github.com/Diaoul/subliminal/issues/992 and is kinda hard to find right now. This isn't related to python version but just to the update of the regex
library forbidding unused keyword args.
It has been some time since I looked at this issue. Any suggestions on what the title should be?
maybe "ValueError: unused keyword argument XX" caused by incompatible changes in regex 2020.1.7
This is the issue that is the reason for the "regression": https://bitbucket.org/mrabarnett/mrab-regex/issues/354/raise-over-unrecognised-kwargs-to-help
Yep, it's not specific to Python 3.8. It's broken all over the place now, and I guess this means it's going to our removal queue.
I'll fix this issue and perform a new release, sorry for the delay but stay tuned :)
Fixed in 2.0.1, tests are now runned with and without regex module installed in TravisCI.
It was related to regex additional and optional python module, not the python version itself. Thanks to @singron for his fix, I think it saves me some hours of debugging :)
Hey, I'm running late here for an errand, so I'm posting this as a quick question/issue.
Does
rebulk
work with python3.8.1
? on my machines, multiple of the tests are failing.The build script I'm using from the AUR is failing on the
check()
specifically the linepython setup.py test
is failing