Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"python": file not found #438

Open
MaximeGab opened this issue Feb 19, 2024 · 5 comments
Open

"python": file not found #438

MaximeGab opened this issue Feb 19, 2024 · 5 comments

Comments

@MaximeGab
Copy link

Hi, I just happened to install scanmen and everything seemed right. But then, when I try to launch gameconqueror it says “file not found”.
How can I resolve that ?

(base) maxime@pc-maxime:~/Jeux/Autre/scanmem/gui$ gameconqueror
/usr/bin/env: «python»: Aucun fichier ou dossier de ce type

I have python, so I don't understand.
How can I resolve that ?

@sriemer
Copy link
Member

sriemer commented Feb 21, 2024

Change the shebang to look for python3 instead.

@sriemer
Copy link
Member

sriemer commented Feb 21, 2024

Does this resolve your issue?

@MaximeGab
Copy link
Author

MaximeGab commented Feb 21, 2024

Change the shebang to look for python3 instead.

Hi. How can I change that ?

@DHLF
Copy link

DHLF commented Feb 21, 2024

use as "Heading" in the python script of GameConqueror

#!/usr/bin/env python3

instead of

#!/usr/bin/env python

or move to the path /usr/share/gameconqueror/
and there you can see the difference in invoking the script with(old and outdated python version):

 python gameconqueror

and what happens if the correct python version is used like:

 python3 gameconqueror

Edit:
It shows this error message if launched with outdated python: ModuleNotFoundError: No module named 'gi'
Your error message "/usr/bin/env: «python»: Aucun fichier ou dossier de ce typeAucun fichier ou dossier de ce type" translates to "PYTHON file not found" which means you got no python installed at that path.
So just try running python(without gameconqueror) to see if the error shows up again. If so=no python.
Try with python3(again without gameconqueror) to see if python3 is installed.

@MaximeGab
Copy link
Author

MaximeGab commented Feb 21, 2024

Interesting, calling python or python3 exectute the same python 3.7.13 :

(base) maxime@pc-maxime:/usr/share/gameconqueror$ python
Python 3.7.13 (default, Mar 29 2022, 02:18:16) 
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

(base) maxime@pc-maxime:/usr/share/gameconqueror$ python3
Python 3.7.13 (default, Mar 29 2022, 02:18:16) 
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

And invoking the script work with both of them :

(base) maxime@pc-maxime:/usr/share/gameconqueror$ python3 GameConqueror.py 
GameConqueror.py:1183: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
GameConqueror.py:1184: DeprecationWarning: Gdk.threads_init is deprecated
  Gdk.threads_init()

(base) maxime@pc-maxime:/usr/share/gameconqueror$ python GameConqueror.py 
GameConqueror.py:1183: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
GameConqueror.py:1184: DeprecationWarning: Gdk.threads_init is deprecated
  Gdk.threads_init()

With some warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants