'odict_keys' object has no attribute 'reverse'
See original GitHub issueUbuntu 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:
- Created 6 years ago
- Comments:13 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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