You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered RecursionError in brownie console after executing globals() to inspect what variables there are for me to use. Here is the error message.
>>> globals()
File "brownie/_cli/__main__.py", line 64, in main
importlib.import_module(f"brownie._cli.{cmd}").main()
File "brownie/_cli/console.py", line 59, in main
shell.interact(banner="Brownie environment is ready.", exitmsg="")
File "brownie/_cli/console.py", line 205, in interact
super().interact(*args, **kwargs)
File "/Users/derek/opt/miniconda3/lib/python3.8/code.py", line 232, in interact
more = self.push(line)
File "/Users/derek/opt/miniconda3/lib/python3.8/code.py", line 258, in push
more = self.runsource(source, self.filename)
File "brownie/_cli/console.py", line 250, in runsource
self._console_write(self.locals["__ret_value__"])
File "brownie/_cli/console.py", line 191, in _console_write
text = color.pretty_dict(obj)
File "brownie/utils/color.py", line 87, in pretty_dict
text += "{" + self.pretty_dict(value[k], _indent)
File "brownie/utils/color.py", line 87, in pretty_dict
text += "{" + self.pretty_dict(value[k], _indent)
File "brownie/utils/color.py", line 87, in pretty_dict
text += "{" + self.pretty_dict(value[k], _indent)
File line, line 983, in times]
File "brownie/utils/color.py", line 92, in pretty_dict
text += self._write(value[k])
File "brownie/utils/color.py", line 120, in _write
return f"{s}{value}{s}"
File "<frozen, line line, in in
RecursionError: maximum recursion depth exceeded while getting the repr of an object
How can it be fixed?
I am new to brownie and not sure what specifically causes this error.
The text was updated successfully, but these errors were encountered:
Environment information
brownie
Version: 1.14.2ganache-cli
Version: N/Asolc
Version: 0.6.0What was wrong?
I encountered RecursionError in brownie console after executing
globals()
to inspect what variables there are for me to use. Here is the error message.How can it be fixed?
I am new to brownie and not sure what specifically causes this error.
The text was updated successfully, but these errors were encountered: