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 'copy'

See original GitHub issue

Terminal returned this error message after tagging some of my steam games:

Traceback (most recent call last):
  File "ProtonDB-to-Steam-Library.py", line 225, in <module>
    main(sys.argv[1:])
  File "ProtonDB-to-Steam-Library.py", line 173, in main
    tags = sharedconfig[configstore]["Software"]["Valve"]["Steam"][apps][str(app_id)]["tags"].copy()
AttributeError: 'str' object has no attribute 'copy'

The tags did not write to my steam library since the script threw the error.

I’m running Python 3.7.3

DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=18.0.4
DISTRIB_CODENAME=Illyria
DISTRIB_DESCRIPTION="Manjaro Linux"

Here is the a screenshot of my full terminal output: https://imgur.com/PsfwQIt

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
CorruptComputercommented, Jun 11, 2019

Thanks @saudfs for including the sharedconfig, I think I may have just fixed this. This was a small goof on my part, I left one tiny check out of that update which should have fixed it. I’ll get that fixed right now, and is it alright if I use a partial of your sharedconfig as a test to ensure continued compatibility?

1reaction
CorruptComputercommented, Jun 11, 2019

Ok, I think that may be fixed then. If you test and find that it isn’t please let me know and I’ll re-open this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Run Python" module gives error: 'str' object has no attribute ...
When I copy and paste it into my editor I have syntax errors on basically every line saying certain things are not defined....
Read more >
Attributeerror: 'str' object has no attribute 'copy' in input nltk ...
One of the next actions is to call copy on that parameter. But the str object does not have a copy method, as...
Read more >
AttributeError: 'str' object has no attribute 'copy'
Hello, I try to execute my RF test using RequestsLibrary but it doesn't work anymore (I have changed my computer so perhaps there...
Read more >
Re: [Wagtail] AttributeError: 'str' object has no attribute 'copy'
When I make a search in wagtail using elasticsearch as backend search I 've got the error reported below. I'm using wagtail 1.3.1...
Read more >
conda env create -f envrionment.yaml throws AttributeError ...
conda env create -f envrionment. yaml throws AttributeError: 'str' object has no attribute 'copy' · Issue #10381 · conda/conda · GitHub.
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