nchammas / flintrock

A command-line tool for launching Apache Spark clusters.
Apache License 2.0
636 stars 116 forks source link

get error when running "flintrock configure" command #347

Closed haowu24 closed 2 years ago

haowu24 commented 2 years ago
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/flintrock", line 8, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flintrock/flintrock.py", line 1247, in main
    cli(obj={})
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1134, in invoke
    Command.invoke(self, ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flintrock/flintrock.py", line 268, in cli
    config_map = config_to_click(normalize_keys(config_raw))
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flintrock/flintrock.py", line 1115, in config_to_click
    {service + '_' + k: v for (k, v) in config['services'][service].items()})
AttributeError: 'str' object has no attribute 'items'
nchammas commented 2 years ago

Have you manually edited the Flintrock config file before? Can you share the full contents of your config file?

If you don't know where the default config file is, run flintrock configure --locate, and Flintrock will open the folder containing the file.

haowu24 commented 2 years ago

Thanks for your reply. And I have solved this issue by reinstall the system.