saraz
Posts: 4
Joined: Sat Mar 28, 2020 3:17 pm

How to solve 'Unable to locate package python3-pyside2'

Sat Mar 28, 2020 3:43 pm

Hi
I try to install pyside2 on my raspberry with this command:

Code: Select all

sudo apt install python3-Pyside2
at the result I get:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python3-Pyside2
I check my source.list and it is empty

how can I install pyside2 and solve this problem?

pcmanbob
Posts: 9465
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: How to solve 'Unable to locate package python3-pyside2'

Sat Mar 28, 2020 3:56 pm

Hi.

Were did you get those install instructions from ?

According to the latest pyside2 project page you should use pip to install it ( note for python 3 use pip3 to install )

https://pypi.org/project/PySide2/
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How to solve 'Unable to locate package python3-pyside2'

Sat Mar 28, 2020 3:58 pm

Code: Select all

sudo pip3 install PySide2
?

There doesn't seem to be a (meta) package for pyside2, just a load of individual packages
https://packages.debian.org/search?suit ... n3-pyside2

saraz
Posts: 4
Joined: Sat Mar 28, 2020 3:17 pm

Re: How to solve 'Unable to locate package python3-pyside2'

Sat Mar 28, 2020 4:19 pm

DirkS wrote:
Sat Mar 28, 2020 3:58 pm

Code: Select all

sudo pip3 install PySide2
?

There doesn't seem to be a (meta) package for pyside2, just a load of individual packages
https://packages.debian.org/search?suit ... n3-pyside2
I test it, but I have a ]problem:

Code: Select all

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Could not find a version that satisfies the requirement Pyside2 (from versions: none)
ERROR: No matching distribution found for Pyside2

pcmanbob
Posts: 9465
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: How to solve 'Unable to locate package python3-pyside2'

Sat Mar 28, 2020 4:24 pm

Further searching suggest that that pyside2 for buster has to be installed like this
Raspbian Buster has now been released and Pyside2 can be installed using:

$apt-get install python3-pyside2.qt3dcore python3-pyside2.qt3dinput python3-pyside2.qt3dlogic python3-pyside2.qt3drender python3-pyside2.qtcharts python3-pyside2.qtconcurrent python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qthelp python3-pyside2.qtlocation python3-pyside2.qtmultimedia python3-pyside2.qtmultimediawidgets python3-pyside2.qtnetwork python3-pyside2.qtopengl python3-pyside2.qtpositioning python3-pyside2.qtprintsupport python3-pyside2.qtqml python3-pyside2.qtquick python3-pyside2.qtquickwidgets python3-pyside2.qtscript python3-pyside2.qtscripttools python3-pyside2.qtsensors python3-pyside2.qtsql python3-pyside2.qtsvg python3-pyside2.qttest python3-pyside2.qttexttospeech python3-pyside2.qtuitools python3-pyside2.qtwebchannel python3-pyside2.qtwebsockets python3-pyside2.qtwidgets python3-pyside2.qtx11extras python3-pyside2.qtxml python3-pyside2.qtxmlpatterns python3-pyside2uic
and not using pip as suggested on the page I linked.

new instructions from here : https://bugreports.qt.io/browse/PYSIDE-802
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

saraz
Posts: 4
Joined: Sat Mar 28, 2020 3:17 pm

Re: How to solve 'Unable to locate package python3-pyside2'

Sat Mar 28, 2020 5:50 pm

pcmanbob wrote:
Sat Mar 28, 2020 4:24 pm
Further searching suggest that that pyside2 for buster has to be installed like this
Raspbian Buster has now been released and Pyside2 can be installed using:

$apt-get install python3-pyside2.qt3dcore python3-pyside2.qt3dinput python3-pyside2.qt3dlogic python3-pyside2.qt3drender python3-pyside2.qtcharts python3-pyside2.qtconcurrent python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qthelp python3-pyside2.qtlocation python3-pyside2.qtmultimedia python3-pyside2.qtmultimediawidgets python3-pyside2.qtnetwork python3-pyside2.qtopengl python3-pyside2.qtpositioning python3-pyside2.qtprintsupport python3-pyside2.qtqml python3-pyside2.qtquick python3-pyside2.qtquickwidgets python3-pyside2.qtscript python3-pyside2.qtscripttools python3-pyside2.qtsensors python3-pyside2.qtsql python3-pyside2.qtsvg python3-pyside2.qttest python3-pyside2.qttexttospeech python3-pyside2.qtuitools python3-pyside2.qtwebchannel python3-pyside2.qtwebsockets python3-pyside2.qtwidgets python3-pyside2.qtx11extras python3-pyside2.qtxml python3-pyside2.qtxmlpatterns python3-pyside2uic
and not using pip as suggested on the page I linked.

new instructions from here : https://bugreports.qt.io/browse/PYSIDE-802
Thanks a lot
It worked

Return to “Python”