guessit-io / guessit

GuessIt is a python library that extracts as much information as possible from a video filename.
https://guessit-io.github.io/guessit
GNU Lesser General Public License v3.0
816 stars 92 forks source link

ValueError: unused keyword argument 'private_parent' #656

Closed idan2402 closed 3 years ago

idan2402 commented 4 years ago

Hey there! I'm trying to use a service called Subliminal. It worked fine on my system until a few weeks ago when it started just saying "1 error" on every download. When I ran it in debug mode it says "ValueError: unused keyword argument 'private_parent'" and "Please report at https://github.com/guessit-io/guessit/issues." (screenshot provided). Tried reinstalling through pip and it didn't work.

I use Python 3.6.8 and Subliminal 2.1.0 on Windows 10 Enterprise LTSC.

Thank you in advance :)

image

Toilal commented 4 years ago

Please try to remove regex module from your python installation.

hyiltiz commented 3 years ago

regex module is a dependency for a lot of other packages though. Removing it is not even a feasible workaround.

Toilal commented 3 years ago

I think there's also an environment variable to disable regex module import from guessit, check sources.

hyiltiz commented 3 years ago

Recursive string search in the project for os.getenv or getenv showed nothing.

Toilal commented 3 years ago

It's in rebulk : https://github.com/Toilal/rebulk/blob/master/rebulk/remodule.py

So try setting REGEX_DISABLED=1 in your environment.

Toilal commented 3 years ago

With current version, rebulk has to be explicitly enabled with REBULK_REGEX_ENABLED, so this issue should not occur.