Please or Register to create posts and topics.

Linux install "command not found"

Hi

I get this error when i try to install it via command line in linux:

./Prism/Linux_Setup_Integrations.sh: line 7: python: command not found
./Prism/Linux_Setup_Integrations.sh: line 11: python: command not found
./Prism/Linux_Setup_Startmenu.sh: line 9: python: command not found

Am i doing something wrong?

 

That sounds like there is no python installed on your linux system. Usually python is installed by default on linux. Which linux distribution are you using?

I am having a similar issue on Ubuntu 20.04.    EDIT: I am running Ubuntu MATE 20.04. Don't know if that impacts the Qt stuff?!?
Prism v1.3.0.5

Python is installed but there are no commands named just python. It is either python2 or python3.
Then I tried installing both 'python-is-python2' and 'python-is-python3' to have the python command refer to them.

But now I run into a errors from PySide import.
When 'python-is-python3' is installed:

Traceback (most recent call last):
File "Scripts/PrismInstaller.py", line 83, in <module>
import PrismInstaller_ui
File "Scripts/UserInterfacesPrism/PrismInstaller_ui.py", line 10, in <module>
from PySide import QtCore, QtGui
ImportError: cannot import name 'QtCore' from 'PySide' (unknown location)
Scripts/PrismCore.py:41: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
File "Scripts/PrismCore.py", line 84, in <module>
from PySide2.QtCore import *
ModuleNotFoundError: No module named 'PySide2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Scripts/PrismCore.py", line 92, in <module>
from PySide.QtCore import *
ModuleNotFoundError: No module named 'PySide.QtCore'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Scripts/PrismCore.py", line 97, in <module>
from PySide2.QtCore import *
ImportError: /home/bastian/Software/Prism_v1.3.0.5_Linux/Prism/PythonLibs/Python37/PySide/PySide2/Qt/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /lib/x86_64-linux-gnu/libQt5Network.so.5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Scripts/PrismCore.py", line 101, in <module>
from PySide.QtCore import *
ModuleNotFoundError: No module named 'PySide.QtCore'

Even after using pip3 to install PySide2 I got an error:

Traceback (most recent call last):
File "Scripts/PrismInstaller.py", line 83, in <module>
import PrismInstaller_ui
File "Scripts/UserInterfacesPrism/PrismInstaller_ui.py", line 10, in <module>
from PySide import QtCore, QtGui
ImportError: cannot import name 'QtCore' from 'PySide' (unknown location)
Scripts/PrismCore.py:41: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp

 

And when 'python-is-python2':

Traceback (most recent call last):
File "Scripts/PrismInstaller.py", line 83, in <module>
import PrismInstaller_ui
File "Scripts/UserInterfacesPrism/PrismInstaller_ui.py", line 10, in <module>
from PySide import QtCore, QtGui
ImportError: No module named PySide
Traceback (most recent call last):
File "Scripts/PrismCore.py", line 101, in <module>
from PySide.QtCore import *
ImportError: No module named PySide.QtCore

I just installed Prism on my laptop with ubuntu 18.04 just to test and didn't have any issue.
Hope that helps.