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

RecursionError when using locals #12

Closed
Almenon opened this issue Aug 15, 2017 · 0 comments
Closed

RecursionError when using locals #12

Almenon opened this issue Aug 15, 2017 · 0 comments
Assignees
Labels

Comments

@Almenon
Copy link
Owner

Almenon commented Aug 15, 2017

x = locals()

⚠ There has been a error when trying to display your variables. Sorry :(
Traceback (most recent call last):\n File "C:\dev\AREPL\src\python\pythonEvaluator.py", line 53, in exec_input\n returnInfo['userVariables'] = jsonpickle.encode(userVariables)#, max_depth=100) # any depth above 245 resuls in error and anything above 100 takes too long to process\n File "C:\dev\AREPL\src\python\jsonpickle_init_.py", line 135, in encode\n numeric_keys=numeric_keys)\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 44, in encode\n return backend.encode(context.flatten(value, reset=reset))\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 157, in flatten\n return self._flatten(obj)\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 161, in _flatten\n return self._pop(self._flatten_obj(obj))\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 177, in _flatten_obj\n return flatten_func(obj)\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 429, in _flatten_dict_obj\n flatten(k, v, data)\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 498, in _flatten_key_value_pair\n data[k] = self._flatten(v)\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 161, in _flatten\n return self._pop(self._flatten_obj(obj))\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 177, in _flatten_obj\n return flatten_func(obj)\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 429, in _flatten_dict_obj\n flatten(k, v, data)\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 498, in _flatten_key_value_pair\n data[k] = self._flatten(v)\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 161, in _flatten\n

... a rediculous number of lines later...

return self._pop(self._flatten_obj(obj))\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 177, in _flatten_obj\n return flatten_func(obj)\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 429, in _flatten_dict_obj\n flatten(k, v, data)\n File "C:\dev\AREPL\src\python\jsonpickle\pickler.py", line 481, in _flatten_key_value_pair\n if not util.is_picklable(k, v):\n File "C:\dev\AREPL\src\python\jsonpickle\util.py", line 309, in is_picklable\n return is_module_function(value) or not is_function(value)\n File "C:\dev\AREPL\src\python\jsonpickle\util.py", line 253, in is_function\n module = translate_module_name(obj.class.module)\n File "C:\dev\AREPL\src\python\jsonpickle\util.py", line 415, in translate_module_name\n if (PY3 and module == 'builtins') or module == 'exceptions':\nRecursionError: maximum recursion depth exceeded in comparison\n

@Almenon Almenon self-assigned this Aug 15, 2017
@Almenon Almenon closed this as completed Aug 15, 2017
@Almenon Almenon added this to the v1.0.0-alpha.2 milestone Aug 15, 2017
@Almenon Almenon added the bug label Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant