Page 1 of 1

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

Posted: Mon May 27, 2019 4:30 am
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.

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

Posted: Mon May 27, 2019 2:28 pm
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.

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

Posted: Mon May 27, 2019 8:22 pm
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.

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

Posted: Tue May 28, 2019 9:37 am
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.