Open vshesh opened 4 years ago
Ok, looks like this is some kind of known issue that requires a monkeypatch in the user libraries, since requests library is not solving the problem... https://github.com/psf/requests/issues/4842
Oh, i think that my problem is the same: https://github.com/rhgrant10/berserk/issues/17
"this is some kind of known issue that requires a monkeypatch in the user libraries". What is the meaning of this? (i dont speak english)
Thanks.
@vshesh so, you could fix this?
The real issue is with the requests library, so the way I fixed it is I got rid of the simplejson import within that library.
I'm not sure how familiar with python you are.... the way to do this is to go to the requests library package folder and change the code there. There's a compat file that exports a variable json - i replaced that code with import json
instead.
this is not a good solution, actually, it's a terrible one. But it works and it solves the problem at the source rather than requiring a lot of upstream changes.
@vshesh Oh... i uninstall SimpleJson.... im gonna look for what you say. about "how familiar with python"... prebeginner.
Thanks for your work.
I have the same problem, it will be fixed soon? changing the code of your copy of the library is terrible and not a practical solution
My solution was to remove encoding=encoding
from line 535 in __init__.py
of the simplejson package...yuck
Description
installed berserk a few minutes ago
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
error is happening somewhere deep in the simplejson code. uninstalling simplejson makes the function work, but I shouldn't need to do this - I use simplejson in many other places (and other libraries depend on it) and so this is a bug for me. I tried to debug it myself for a but but could not understand why this error was appearing - the parameters look fine.