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.

'odict_keys' object has no attribute 'reverse'

See original GitHub issue

Ubuntu 16.04, reading doc

I try to install with docker but when it starts, localhost:8080 shows connection was reset

So I try to pull updates, wonder would it fix the problem, but then I got the following error when I try to run deploy_docker stop or rm.

$ python deploy_docker.py stop # or rm
Traceback (most recent call last):
  File "deploy_docker.py", line 869, in <module>
    containers_stop(remove=args.command in ('rm', 'remove'))
  File "deploy_docker.py", line 418, in containers_stop
    keys.reverse()
AttributeError: 'odict_keys' object has no attribute 'reverse'

It seems like the container is still occupying 8080, and since stop doesn’t work I can’t shut it down.

btw not sure if it matters, but seems like I didn’t stop the container before pulling updates.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mantheycommented, Mar 29, 2019

We’ve refactored many things since this issue was opened, including doing extensive testing on various versions of Python. Please open a new issue if there is a problem with Vagrant.

0reactions
choosehappycommented, May 1, 2020

note to self: do not launch deploy_docker.sh as root, otherwise the above error messages will appear : )

using as a non-root, the same approach will work fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

dict_items object has no attribute 'sort' - python - Stack Overflow
I believe the sort() method doesn't support Python 3.x anymore. It is necessary to pass the corresponding variable to the sorted(all_colors) .
Read more >
AttributeError: dict_keys object has no attribute 'remove'
The Python "AttributeError: 'dict_keys' object has no attribute 'remove'" occurs when we try to call the remove() method on a view of the...
Read more >
Sorting dictionary keys in Python 3.X - Java2s.com
#Ks.sort() #AttributeError: 'dict_keys' object has no attribute 'sort'. In Python 3.X you must either convert to a list manually or use the sorted...
Read more >
python AttributeError: 'dict_keys' object has no attribute 'sort'
python AttributeError: ' dict_keys ' object has no attribute 'sort'
Read more >
AttributeError: 'dict_values' has no attribute 'index' #154 - GitHub
However, the error that I get is 'dict_keys' object does not support indexing . Any suggested solution? 1
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