Page 1 of 1

How to upgrade to 3.5 in python mageia5? Through

PostPosted: Feb 12th, '17, 11:01
by xlin
How to upgrade to 3.5 in python mageia5? Through the src and rpmbuild package from Mageia 6 fails.

I would like to install MATE 1.16, but for this we need a new python and rpm

Re: How to upgrade to 3.5 in python mageia5? Through

PostPosted: Feb 12th, '17, 12:27
by doktor5000
xlin wrote:Through the src and rpmbuild package from Mageia 6 fails.

And it fails with what error?

xlin wrote:I would like to install MATE 1.16, but for this we need a new python and rpm

For python, you would need to backport a newer python package, probably from cauldron.
But what do you mean by new rpm?

You could send a PM to tarakbumba regarding backports of newer mate for mga5, or have a look in the thread viewtopic.php?f=10&t=4867 - but it seems the server where his repo is hosted is currently not accesible.

Re: How to upgrade to 3.5 in python mageia5? Through

PostPosted: Feb 12th, '17, 13:04
by xlin
Assemble a package of mageia 6 happened, but it is impossible to establish.
Code: Select all
[root@localhost python]# LC_ALL="en_US.c" ls -la
total 18840
drwxr-xr-x 2 root root    4096 Feb 12 13:25 ./
drwxr-xr-x 4 root root    4096 Feb 12 13:17 ../
-rw-r--r-- 1 root root  154496 Feb 12 13:07 lib64python3-devel-3.5.3-1.mga5.x86_64.rpm
-rw-r--r-- 1 root root  854092 Feb 12 13:06 lib64python3.5-3.5.3-1.mga5.x86_64.rpm
-rw-r--r-- 1 root root 5683488 Feb 12 13:06 lib64python3.5-stdlib-3.5.3-1.mga5.x86_64.rpm
-rw-r--r-- 1 root root 6092192 Feb 12 13:07 lib64python3.5-testsuite-3.5.3-1.mga5.x86_64.rpm
-rw-r--r-- 1 root root    8432 Feb 12 13:16 python-rpm-macros-3-4.mga5.noarch.rpm
-rw-r--r-- 1 root root    7428 Feb 12 13:16 python-srpm-macros-3-4.mga5.noarch.rpm
-rw-r--r-- 1 root root    7568 Feb 12 13:16 python2-rpm-macros-3-4.mga5.noarch.rpm
-rw-r--r-- 1 root root   21420 Feb 12 13:06 python3-3.5.3-1.mga5.x86_64.rpm
-rw-r--r-- 1 root root 5499244 Feb 12 13:08 python3-docs-3.5.3-1.mga5.noarch.rpm
-rw-r--r-- 1 root root    7588 Feb 12 13:16 python3-rpm-macros-3-4.mga5.noarch.rpm
-rw-r--r-- 1 root root  914564 Feb 12 13:08 tkinter3-3.5.3-1.mga5.x86_64.rpm
-rw-r--r-- 1 root root   11280 Feb 12 13:08 tkinter3-apps-3.5.3-1.mga5.x86_64.rpm
[root@localhost python]# LC_ALL="en_US.c" rpm -ivh python3-3.5.3-1.mga5.x86_64.rpm
error: Failed dependencies:
   lib64python3.5 = 3.5.3-1.mga5 is needed by python3-3.5.3-1.mga5.x86_64
   libpython3.5m.so.1.0()(64bit) is needed by python3-3.5.3-1.mga5.x86_64
   python-rpm-macros is needed by python3-3.5.3-1.mga5.x86_64
   python3-rpm-macros is needed by python3-3.5.3-1.mga5.x86_64
[root@localhost python]# LC_ALL="en_US.c" rpm -ivh python-rpm-macros-3-4.mga5.noarch.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:python-rpm-macros-3-4.mga5       ################################# [100%]
[root@localhost python]# LC_ALL="en_US.c" rpm -ivh python3-3.5.3-1.mga5.x86_64.rpm
error: Failed dependencies:
   lib64python3.5 = 3.5.3-1.mga5 is needed by python3-3.5.3-1.mga5.x86_64
   libpython3.5m.so.1.0()(64bit) is needed by python3-3.5.3-1.mga5.x86_64
   python3-rpm-macros is needed by python3-3.5.3-1.mga5.x86_64
[root@localhost python]# LC_ALL="en_US.c" rpm -ivh python3-rpm-macros-3-4.mga5.noarch.rpm
error: Failed dependencies:
   python3 < 3.5.1-3 conflicts with python3-rpm-macros-3-4.mga5.noarch
[root@localhost python]# LC_ALL="en_US.c" rpm -ivh lib64python3.5-3.5.3-1.mga5.x86_64.rpm
error: Failed dependencies:
   lib64python3.5-stdlib = 3.5.3-1.mga5 is needed by lib64python3.5-3.5.3-1.mga5.x86_64
[root@localhost python]# LC_ALL="en_US.c" rpm -ivh lib64python3.5-stdlib-3.5.3-1.mga5.x86_64.rpm
error: Failed dependencies:
   libpython3.5m.so.1.0()(64bit) is needed by lib64python3.5-stdlib-3.5.3-1.mga5.x86_64
   python(abi) = 3.5 is needed by lib64python3.5-stdlib-3.5.3-1.mga5.x86_64
   python3 < 3.5.1-14 conflicts with lib64python3.5-stdlib-3.5.3-1.mga5.x86_64

Re: How to upgrade to 3.5 in python mageia5? Through

PostPosted: Feb 12th, '17, 14:08
by doktor5000
You need to create repo metadata via genhdlist2 and add that directory as a repository for urpmi to be able to resolve the dependencies or otherwise try
Code: Select all
urpmi ./*rpm
in that folder.
You try to install single packages and urpmi cannot install the others as it does not know where to get the dependencies from.

Apart from that it seems you built those packages as root, which is never a good idea. Read the warning at the top of https://wiki.mageia.org/en/Packagers_RPM_tutorial

Re: How to upgrade to 3.5 in python mageia5? Through

PostPosted: Feb 12th, '17, 14:44
by xlin
I create repo metadata via genhdlist2
Code: Select all
urpmi --auto-update

Code: Select all
Unable to install the requested package:
lib64python3.5-3.5.3-1.mga5.x86_64 (because of dissatisfaction lib64python3.5-stdlib [== 3.5.3-1.mga5])
Continue installation? (Y / n) n

Re: How to upgrade to 3.5 in python mageia5? Through

PostPosted: Feb 12th, '17, 14:51
by xlin
Code: Select all
.
└── mageia5
    ├── i586
    │   └── media
    │       └── media_info
    │           └── media.cfg
    ├── RPMS
    │   ├── i586
    │   │   └── media_info
    │   │       ├── hdlist.cz
    │   │       ├── MD5SUM
    │   │       └── synthesis.hdlist.cz
    │   ├── noarch
    │   │   ├── media_info
    │   │   │   ├── hdlist.cz
    │   │   │   ├── MD5SUM
    │   │   │   └── synthesis.hdlist.cz
    │   │   ├── python2-rpm-macros-3-4.mga5.noarch.rpm
    │   │   ├── python3-docs-3.5.3-1.mga5.noarch.rpm
    │   │   ├── python3-rpm-macros-3-4.mga5.noarch.rpm
    │   │   ├── python-docs-2.7.13-1.mga5.noarch.rpm
    │   │   ├── python-rpm-macros-3-4.mga5.noarch.rpm
    │   │   ├── python-srpm-macros-3-4.mga5.noarch.rpm
    │   │   └── smplayer-themes-16.8.0-1.mga5.noarch.rpm
    │   └── x86_64
    │       ├── atril-1.16.0-1.mga5.x86_64.rpm
    │       ├── atril-dvi-1.16.0-1.mga5.x86_64.rpm
    │       ├── easyrpmbuilder-0.5.6-6.mga5.x86_64.rpm
    │       ├── lib64atril3-1.16.0-1.mga5.x86_64.rpm
    │       ├── lib64atril-devel-1.16.0-1.mga5.x86_64.rpm
    │       ├── lib64atril-gir1.5.0-1.16.0-1.mga5.x86_64.rpm
    │       ├── lib64python2.7-2.7.13-1.mga5.x86_64.rpm
    │       ├── lib64python2.7-stdlib-2.7.13-1.mga5.x86_64.rpm
    │       ├── lib64python2.7-testsuite-2.7.13-1.mga5.x86_64.rpm
    │       ├── lib64python3.5-3.5.3-1.mga5.x86_64.rpm
    │       ├── lib64python3.5-stdlib-3.5.3-1.mga5.x86_64.rpm
    │       ├── lib64python3.5-testsuite-3.5.3-1.mga5.x86_64.rpm
    │       ├── lib64python3-devel-3.5.3-1.mga5.x86_64.rpm
    │       ├── lib64python-devel-2.7.13-1.mga5.x86_64.rpm
    │       ├── mate-applets-1.16.0-1.mga5.x86_64.rpm
    │       ├── media_info
    │       │   ├── hdlist.cz
    │       │   ├── MD5SUM
    │       │   └── synthesis.hdlist.cz
    │       ├── python-2.7.13-1.mga5.x86_64.rpm
    │       ├── python3-3.5.3-1.mga5.x86_64.rpm
    │       ├── python-debuginfo-2.7.13-1.mga5.x86_64.rpm
    │       ├── smplayer-17.2.0-1.x86_64.rpm
    │       ├── tkinter-2.7.13-1.mga5.x86_64.rpm
    │       ├── tkinter3-3.5.3-1.mga5.x86_64.rpm
    │       ├── tkinter3-apps-3.5.3-1.mga5.x86_64.rpm
    │       └── tkinter-apps-2.7.13-1.mga5.x86_64.rpm
    ├── SRPMS
    │   ├── atril-1.16.0-1.mga5.src.rpm
    │   ├── easyrpmbuilder-0.5.6-6.mga5.src.rpm
    │   ├── mate-applets-1.16.0-1.mga5.src.rpm
    │   ├── media_info
    │   │   ├── hdlist.cz
    │   │   ├── MD5SUM
    │   │   └── synthesis.hdlist.cz
    │   ├── python-2.7.13-1.mga5.src.rpm
    │   ├── python3-3.5.3-1.mga5.src.rpm
    │   ├── python-rpm-macros-3-4.mga5.src.rpm
    │   ├── smplayer-17.2.0-1.src.rpm
    │   ├── smplayer-themes-16.8.0-1.mga5.src.rpm
    │   └── tint2-0.12.12-1.mga5.src.rpm
    └── x86_64
        └── media
            └── media_info
                └── media.cfg

Re: How to upgrade to 3.5 in python mageia5? Through

PostPosted: Feb 13th, '17, 09:29
by doktor5000
xlin wrote:I create repo metadata via genhdlist2
Code: Select all
urpmi --auto-update

How in particular did you use genhdlist2, in which directory? And how is that repo configured? Please show at the very least the output of
Code: Select all
urpmq --list-media active --list-url
urpmf -m -f --name python|grep '3.5.3'

xlin wrote:
Code: Select all
Unable to install the requested package:
lib64python3.5-3.5.3-1.mga5.x86_64 (because of dissatisfaction lib64python3.5-stdlib [== 3.5.3-1.mga5])
Continue installation? (Y / n) n

See above, as the package is present as a file according to your listing, but seems it's not contained in the repo metadata: lib64python3.5-stdlib-3.5.3-1.mga5.x86_64.rpm

Re: How to upgrade to 3.5 in python mageia5? Through

PostPosted: Feb 13th, '17, 17:35
by xlin
Code: Select all
[xlin@localhost ~]$ urpmq --list-media active --list-url
XliN-REPO-x86_64 (XliN-REPO-x86_641) /home/xlin/repo/mageia5/RPMS/x86_64
XliN-REPO-noarch (XliN-REPO-x86_642) /home/xlin/repo/mageia5/RPMS/noarch
Core Release (distrib1) http://mirror.yandex.ru/mageia/distrib/5/x86_64/media/core/release
Core Updates (distrib3) http://mirror.yandex.ru/mageia/distrib/5/x86_64/media/core/updates
Core Backports (distrib7) http://mirror.yandex.ru/mageia/distrib/5/x86_64/media/core/backports
Nonfree Release (distrib11) http://mirror.yandex.ru/mageia/distrib/5/x86_64/media/nonfree/release
Nonfree Updates (distrib13) http://mirror.yandex.ru/mageia/distrib/5/x86_64/media/nonfree/updates
Nonfree Backports (distrib17) http://mirror.yandex.ru/mageia/distrib/5/x86_64/media/nonfree/backports
Tainted Release (distrib21) http://mirror.yandex.ru/mageia/distrib/5/x86_64/media/tainted/release
Tainted Updates (distrib23) http://mirror.yandex.ru/mageia/distrib/5/x86_64/media/tainted/updates
Tainted Backports (distrib27) http://mirror.yandex.ru/mageia/distrib/5/x86_64/media/tainted/backports
Core 32bit Release (distrib31) http://mirror.yandex.ru/mageia/distrib/5/i586/media/core/release
Core 32bit Updates (distrib32) http://mirror.yandex.ru/mageia/distrib/5/i586/media/core/updates
Core 32bit Backports (distrib34) http://mirror.yandex.ru/mageia/distrib/5/i586/media/core/backports
Nonfree 32bit Release (distrib36) http://mirror.yandex.ru/mageia/distrib/5/i586/media/nonfree/release
Nonfree 32bit Updates (distrib37) http://mirror.yandex.ru/mageia/distrib/5/i586/media/nonfree/updates
Nonfree 32bit Backports (distrib39) http://mirror.yandex.ru/mageia/distrib/5/i586/media/nonfree/backports
Tainted 32bit Release (distrib41) http://mirror.yandex.ru/mageia/distrib/5/i586/media/tainted/release
Tainted 32bit Updates (distrib42) http://mirror.yandex.ru/mageia/distrib/5/i586/media/tainted/updates
Tainted 32bit Backports (distrib44) http://mirror.yandex.ru/mageia/distrib/5/i586/media/tainted/backports
Mageialinux.ru-x86_64 http://mirror.yandex.ru/mirrors/packages.mageialinux.ru/mageia5/RPMS/x86_64
MRC-noarch http://mirror.yandex.ru/mirrors/packages.mageialinux.ru/mageia5/RPMS/noarch
MRC-i586 http://mirror.yandex.ru/mirrors/packages.mageialinux.ru/mageia5/RPMS/i586
MRC-noarch2 http://mirror.yandex.ru/mirrors/packages.mageialinux.ru/mageia5/RPMS/noarch
chrome_x86_64 http://dl.google.com/linux/chrome/rpm/stable/x86_64
google-chrome http://dl.google.com/linux/chrome/rpm/stable/x86_64


Code: Select all
[xlin@localhost ~]$ urpmf -m -f --name python|grep '3.5.3'
XliN-REPO-x86_64 (XliN-REPO-x86_641):lib64python3.5-testsuite-3.5.3-1.mga5.x86_64
XliN-REPO-x86_64 (XliN-REPO-x86_641):python3-3.5.3-1.mga5.x86_64
XliN-REPO-x86_64 (XliN-REPO-x86_641):lib64python3.5-stdlib-3.5.3-1.mga5.x86_64
XliN-REPO-x86_64 (XliN-REPO-x86_641):lib64python3-devel-3.5.3-1.mga5.x86_64
XliN-REPO-x86_64 (XliN-REPO-x86_641):lib64python3.5-3.5.3-1.mga5.x86_64
XliN-REPO-noarch (XliN-REPO-x86_642):python3-docs-3.5.3-1.mga5.noarch

Re: How to upgrade to 3.5 in python mageia5? Through

PostPosted: Feb 14th, '17, 09:53
by doktor5000
Can you add the full output of
Code: Select all
urpmi --debug python3-3.5.3