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

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

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

Post by brother john » Mon May 27, 2019 4:30 am

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

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 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

brother john
Posts: 10
Joined: Sun Feb 19, 2017 9:06 pm

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

Post by brother john » Mon May 27, 2019 8:22 pm

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

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 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests