question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'str' object has no attribute 'get'

See original GitHub issue

Hello. I was able to use ‘ludwig experiment’ on the titanic’s datasets on kaggle, just as described here https://uber.github.io/ludwig/examples/ using the suggested yaml file.

I also tried to use it to train a dataset, but got this on terminal:

$ ludwig train --data_csv train.csv --model_definition modelo.yaml


| |_ _ | | __ ()_ _ | | || / \ V V / / _ | ||_,_,|_/_/|_, | |__/ ludwig v0.1.0 - Train

Traceback (most recent call last): File “/home/renatochacon/ludwig/venv/bin/ludwig”, line 11, in <module> load_entry_point(‘ludwig==0.1.0’, ‘console_scripts’, ‘ludwig’)() File “/home/renatochacon/ludwig/venv/lib/python3.5/site-packages/ludwig-0.1.0-py3.5.egg/ludwig/cli.py”, line 86, in main File “/home/renatochacon/ludwig/venv/lib/python3.5/site-packages/ludwig-0.1.0-py3.5.egg/ludwig/cli.py”, line 64, in init File “/home/renatochacon/ludwig/venv/lib/python3.5/site-packages/ludwig-0.1.0-py3.5.egg/ludwig/cli.py”, line 70, in train File “/home/renatochacon/ludwig/venv/lib/python3.5/site-packages/ludwig-0.1.0-py3.5.egg/ludwig/train.py”, line 729, in cli File “/home/renatochacon/ludwig/venv/lib/python3.5/site-packages/ludwig-0.1.0-py3.5.egg/ludwig/train.py”, line 170, in full_train File “/home/renatochacon/ludwig/venv/lib/python3.5/site-packages/ludwig-0.1.0-py3.5.egg/ludwig/utils/defaults.py”, line 137, in merge_with_defaults AttributeError: ‘str’ object has no attribute ‘get’

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
w4nderlustcommented, Jun 22, 2021

@vreyespue it’s a different error. Can you please open a separate issue about it with instructions on how to reproduce it? I run the simple_model_training.py in the examples/titanic, which I believe is what you were running, and it works fine.

1reaction
vreyespuecommented, Jun 23, 2021

@w4nderlust I think in the last version of ludwig (0.4) this is happening again. I get as well the mentioned error message, i.e.

$ python3 simple_model_training.py
Traceback (most recent call last):
  File "simple_model_training.py", line 25, in <module>
    logging_level=logging.INFO)
  File "lib/python3.7/site-packages/ludwig/api.py", line 193, in __init__
    self.backend = initialize_backend(backend or config.get('backend'))
AttributeError: 'str' object has no attribute 'get'

Could you maybe double check? If so, should we reopen this issue, or create a new one? Many thanks and best regards.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'str' object has no attribute 'get' - Stack Overflow
Having an error I'm not quite sure how to solve, have a nested dictionary where the last item does not contain the asked...
Read more >
AttributeError: 'str' object has no attribute 'get' - Python
its outputting two failures, but i cant figure out how to fix it. ''' import pandas as pd import seaborn as sns import...
Read more >
AttributeError: 'str' object has no attribute 'get'
how to solve 'str' object has no attribute 'get' error while trying to execute this code: sns.countplot(x='Survived', data='train').
Read more >
Solve the attributeerror str object has no attribute decode error
Attributeerror: str object has no attribute decode in Python ... This attribute error occurs because you are trying to call the decode() function...
Read more >
artitionKey.get(part) AttributeError: 'str' object has no attribute ...
artitionKey.get(part) AttributeError: 'str' object has no attribute 'get' ... @MaheshK-8303 Could you please check if you are able to parse the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found