The forum is active for archival purposes only.

Join our discord community for new topics.

论坛导航
您需要登录才能建立帖子与主题。

Linux Install fails; unable to find PySide/PySide2

Greetings,

I'm attempting to install v1.2.0 and receive the following message when running the install script;

$ sudo ./Prism_setup_Linux.sh
File "Scripts/PrismInstaller.py", line 335
print ex
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(ex)?
Scripts/PrismCore.py:35: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import sys, os, threading, shutil, time, socket, traceback, imp, platform, random, errno, stat
Traceback (most recent call last):
File "Scripts/PrismCore.py", line 48, 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 57, in <module>
from PySide.QtCore import *
ModuleNotFoundError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Scripts/PrismCore.py", line 63, 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 68, in <module>
from PySide.QtCore import *
ImportError: dynamic module does not define module export function (PyInit_QtCore)

I have PySide2 installed and working on my system, so I'm unsure why I'm seeing this error message.

It looks like you are running the Prism installer with Python 3. The Prism version you are using requires Python 2.7.

Try modify the shell script to use Python 2.7 instead.

Having same issue on ubuntu 20. PySide for python2.7 is now longer supported on ubuntu 20. Any chance of supporting python3 by default to make it work on Ubuntu 20.10 ?

 

Or release an AppImage version.

Hey @platerytter,

someone else solved this issue on Ubuntu 20: https://prism-pipeline.com/forum/topic/prism-1-3-installation-problem/?part=2#postid-2252

There's no specific date yet, but sooner or later Prism will support Python 3 on Linux out of the box.

I got it working by changing some of the install scripts to look for python3. Good to hear you're looking into Python3 support in the future.