Pokemon-Terminal icon indicating copy to clipboard operation
Pokemon-Terminal copied to clipboard

can't open file `pokemon`

Open KimHunJin opened this issue 6 years ago • 7 comments

i'm installed brew python3 current my python3 version is 3.7

but, get this error

~ python3 pokemon grawlithe
(null): can't open file 'pokemon': [Errno 2] No such file or directory

please help me.. I like pokemon!!

KimHunJin avatar Jul 29 '18 10:07 KimHunJin

Just run $ pokemon growlithe without specifying python

If you did a per user pip install then you may need to update your path as per https://github.com/LazoCoder/Pokemon-Terminal#pip-per-user

jimmyorourke avatar Jul 29 '18 14:07 jimmyorourke

@jimmyorourke I do that command line.

~ pokemon grawlithe
env: python3.6: No such file or directory

so I used python3 before command line

KimHunJin avatar Jul 30 '18 08:07 KimHunJin

Ah, I think the python version is probably pinned to 3.6

jimmyorourke avatar Jul 30 '18 13:07 jimmyorourke

Pip installation should update the shebang

sylveon avatar Jul 30 '18 13:07 sylveon

Well then running the pip install command again with --force-reinstall should fix it @KimHunJin

samuelhnrq avatar Aug 12 '18 21:08 samuelhnrq

for python3.6: No such file or directory error, you could use the python version in your computer instead of python3.6 that specified by Pokemon-Terminal, the steps:

  • $ vim `which pokemon`
  • edit file, change python3.6 to python3

- #!/usr/bin/env python3.6
+ #!/usr/bin/env python3

taozhi8833998 avatar Oct 21 '18 08:10 taozhi8833998

Make sure python3 points to at least a python 3.6 version or else you'll encounter syntax errors related to f-strings

sylveon avatar Oct 21 '18 16:10 sylveon