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

Cannot launch the CLI: AttributeError: type object 'Web3' has no attribute 'toChecksumAddress' #244

Closed
mmv08 opened this issue Aug 17, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mmv08
Copy link
Member

mmv08 commented Aug 17, 2023

Describe the bug
When launching the CLI, the following error is thrown:

Traceback (most recent call last):
  File "/Users/mmv/.pyenv/versions/3.10.12/bin/safe-cli", line 5, in <module>
    from safe_cli.main import main
  File "/Users/mmv/.pyenv/versions/3.10.12/lib/python3.10/site-packages/safe_cli/main.py", line 37, in <module>
    args = parser.parse_args()
  File "/Users/mmv/.pyenv/versions/3.10.12/lib/python3.10/argparse.py", line 1833, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/Users/mmv/.pyenv/versions/3.10.12/lib/python3.10/argparse.py", line 1866, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/Users/mmv/.pyenv/versions/3.10.12/lib/python3.10/argparse.py", line 2082, in _parse_known_args
    stop_index = consume_positionals(start_index)
  File "/Users/mmv/.pyenv/versions/3.10.12/lib/python3.10/argparse.py", line 2038, in consume_positionals
    take_action(action, args)
  File "/Users/mmv/.pyenv/versions/3.10.12/lib/python3.10/argparse.py", line 1927, in take_action
    argument_values = self._get_values(action, argument_strings)
  File "/Users/mmv/.pyenv/versions/3.10.12/lib/python3.10/argparse.py", line 2462, in _get_values
    value = self._get_value(action, arg_string)
  File "/Users/mmv/.pyenv/versions/3.10.12/lib/python3.10/argparse.py", line 2495, in _get_value
    result = type_func(arg_string)
  File "/Users/mmv/.pyenv/versions/3.10.12/lib/python3.10/site-packages/safe_cli/prompt_parser.py", line 70, in to_checksummed_ethereum_address
    return Web3.toChecksumAddress(address)
AttributeError: type object 'Web3' has no attribute 'toChecksumAddress'. Did you mean: 'to_checksum_address'?

To Reproduce
Steps to reproduce the behavior:

  1. Install the cli pip install safe-cli
  2. Launche the cli safe-cli <address> <rpc_url>

Expected behavior
The cli launches fine and useable.

Additional context
OS - MacOS 13.5
Python - 3.10.12

@mmv08 mmv08 added the bug Something isn't working label Aug 17, 2023
@ptqa
Copy link
Contributor

ptqa commented Aug 23, 2023

Yeah, this update was not completed correctly b342510

ptqa added a commit to ptqa/safe-cli that referenced this issue Aug 23, 2023
@Uxio0 Uxio0 closed this as completed in 69f9f1c Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants