/usr/bin/env: python: No such file or directory

General discussions and questions.
Post Reply
brother john
Posts: 16
Joined: Sun Feb 19, 2017 9:06 pm

/usr/bin/env: python: No such file or directory

Post by brother john »

Hey there,

I am having an issue where I am sending a job to afanasy to render but the python is not getting found:

/usr/bin/env: python: No such file or directory

movgen[generic]:1000 frames(0,2,3):
Command:
P:\cgruWin222\utilities\moviemaker\makemovie.py -c "P:\cgruWin222\utilities\moviemaker\codecs\h264_high.ffmpeg" -f 25 -e "exr" P:\YO_2019\YO\comp_assets\renders\maya\test\tmp\v001\char P:\YO_2019\YO\comp_assets\renders\--nimby--\

Any thoughts?

Maya scenes render normally, it is just this.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: /usr/bin/env: python: No such file or directory

Post by timurhai »

Hi.
/usr/bin/env: python: No such file or directory
- this error was produced by Linux host?
Some Linux does not have python command?
If so, you can create it.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
brother john
Posts: 16
Joined: Sun Feb 19, 2017 9:06 pm

Re: /usr/bin/env: python: No such file or directory

Post by brother john »

Thanks for the reply Timurhai.

If I type python into a terminal, python 2.7.5 loads fine. So not sure why it is doing it. Yeah in Linux.

Could this be related - when I try to load setup from a terminal:

Code: Select all


[snap@snap01 cgru]$ ./setup.sh
CGRU_VERSION 2.2.2 : '/opt/cgru'
[snap@snap01 cgru]$ ./start.sh
CGRU_VERSION 2.2.2 : '/opt/cgru'
Traceback (most recent call last):
  File "/opt/cgru/utilities/keeper/keeper.py", line 34, in <module>
    from Qt import QtWidgets
  File "/opt/cgru/lib/python/Qt.py", line 446, in <module>
    cli(sys.argv[1:]) if __name__ == "__main__" else init()
  File "/opt/cgru/lib/python/Qt.py", line 419, in init
    raise ImportError("No Qt binding were found.")
ImportError: No Qt binding were found.
I don't need this bit to work, just wondering if it relates.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: /usr/bin/env: python: No such file or directory

Post by timurhai »

Hi.

It seems that your python is not enough configured.
Type:

Code: Select all

/usr/bin/env python
So you can not run python scripts directly.
But you can run python scripts this way:

Code: Select all

python somesctipt.py
cgru Linux package during installation tries to install PyQt.
It seems that python that runs keeper does not have any.
But you can to install PyQt or PySide manually.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply