politeauthority / docker-pretty-ps

Tired of that awful super wide 'docker ps' output? Go vertical! Try docker-pretty-ps!
MIT License
259 stars 20 forks source link

Executable points to python3.7 #21

Open xkortex opened 5 years ago

xkortex commented 5 years ago

In the main entry point,

#!/usr/local/opt/python/bin/python3.7

import dockerprettyps

dockerprettyps.run_cli()

changing that to #!/usr/local/opt/python/bin/python3 or even better /usr/bin/python3 which will on most Debians will point to the correct installed version of python3 via symlink.

xkortex commented 5 years ago

Never mind, looks like it's fixed on master, just needs to update to PyPI. On that note, your versioning is lagging in a few places.

Also I don't feel like opening a full PR for it, but I think you have a paren bug on https://github.com/politeauthority/docker-pretty-ps/blob/master/dockerprettyps/__init__.py#L285

politeauthority commented 5 years ago

Thanks, I'll take a look this evening. This is the first time I've published to pypi, still figuring out some of the finer points.

snowytoxa commented 5 years ago

I vote for the

!/usr/bin/env python3

not just python, or specific python path

iamtodor commented 5 years ago

ubuntu 18.04.2 LTS have to change file /home/$user/.local/bin/docker-pretty-ps to make it work #!/usr/local/opt/python/bin/python3.7 => #!/usr/bin/python3

xkortex commented 5 years ago

Seconded for #!/usr/bin/env python3

kamilmirza commented 5 years ago

+1 for #!/usr/bin/python3 ubuntu 18.04.2 LTS

jolammi commented 4 years ago

+1 for #!/usr/bin/env python3 on Ubuntu 18.04.4 LTS. Could we get an update to PyPi?

eliashkan commented 4 years ago

Second that PyPi update!

oppianmatt commented 3 years ago
paperspace@psxt5sy7q ~> sudo -H pip install docker-pretty-ps
Collecting docker-pretty-ps
  Downloading docker_pretty_ps-1.0.2-py3-none-any.whl (13 kB)
Installing collected packages: docker-pretty-ps
Successfully installed docker-pretty-ps-1.0.2
paperspace@psxt5sy7q ~> docker-pretty-ps
Failed to execute process '/usr/local/bin/docker-pretty-ps'. Reason:
The file '/usr/local/bin/docker-pretty-ps' specified the interpreter '/usr/local/opt/python/bin/python3.7', which is not an executable command.
stangahh commented 2 years ago

+1 #!/usr/bin/env python3 +1 plz update PyPi

eklipse18 commented 2 years ago

please update PyPi 😭

lyh543 commented 2 years ago

The author haven't updated for a whole year. Could some one fork this repo and publish to PyPI as docker-pretty-ps-fork, with scrips of same name?