You are not logged in.

#1 2012-10-17 23:10:34

afzalarsalan
Member
Registered: 2011-06-12
Posts: 6

Python being changed to python2? 10/17/12

I noticed with the latest pacman upgrade its asking to remove python packages and replace them with python2 packages. Is this something new in the pipeline?

core                     107.7 KiB   491K/s 00:00 [######################] 100%
extra                   1431.2 KiB   986K/s 00:01 [######################] 100%
community               1785.8 KiB  1029K/s 00:02 [######################] 100%
multilib is up to date
:: Starting full system upgrade...
:: Replace python-egenix-mx-base with extra/python2-egenix-mx-base? [Y/n] y
:: Replace python-imaging with community/python2-imaging? [Y/n] y
:: Replace python-notify with extra/python2-notify? [Y/n] y
resolving dependencies...
looking for inter-conflicts...

Targets (23): dee-1.0.14-2  gwibber-3.4.2-2  hplip-3.12.10.a-3
              pygobject-devel-3.2.2-2  pygobject2-devel-2.28.6-7
              python-3.3.0-1  python-dbus-common-1.1.1-2
              python-egenix-mx-base-3.2.4-1 [removal]
              python-imaging-1.1.7-4 [removal]
              python-notify-0.1.1-11 [removal]  python2-dbus-1.1.1-2
              python2-distutils-extra-2.37-1  python2-egenix-mx-base-3.2.4-3
              python2-gobject-3.2.2-2  python2-gobject2-2.28.6-7
              python2-httplib2-0.7.6-1  python2-imaging-1.1.7-5
              python2-lxml-3.0-1  python2-notify-0.1.1-12  python2-xdg-0.23-2
              system-config-printer-common-1.3.11-2
              system-config-printer-gnome-1.3.11-2  vlc-2.0.4-1

Total Download Size:    41.71 MiB
Total Installed Size:   197.15 MiB
Net Upgrade Size:       17.72 MiB

Proceed with installation? [Y/n]

Offline

#2 2012-10-17 23:33:51

ZekeSulastin
Member
Registered: 2010-09-20
Posts: 266

Re: Python being changed to python2? 10/17/12

There were a couple discussions on arch-dev-public about the naming of python2/python3, lua5.2/lua5.1, etc. type packages.

Offline

#3 2012-10-18 00:00:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Python being changed to python2? 10/17/12

You can always check the git e.g. for python2-notify: https://projects.archlinux.org/svntogit … 1647b38dd8

Offline

#4 2012-10-18 01:59:59

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: Python being changed to python2? 10/17/12

If I read correctly python2 is for python 2.x; python3 is for python 3.x and python is for interactive shells

we now have another python rebuild....why isnot anounced in the home page??


Well, I suppose that this is somekind of signature, no?

Offline

#5 2012-10-18 02:06:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Python being changed to python2? 10/17/12

Jristz wrote:

we now have another python rebuild....why isnot anounced in the home page??

Maybe because users shouldn't notice. It was mentioned on the ML.

afzalarsalan wrote:

I noticed with the latest pacman upgrade its asking to remove python packages and replace them with python2 packages

It's just cosmetics:

upgpkg: python-notify 0.1.1-12
Rename package

-makedepends=('pkgconfig' 'python2')
+makedepends=('python2')

It depended on python2 previously and still depends on python2.

Offline

#6 2012-10-18 09:04:48

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: Python being changed to python2? 10/17/12

karol wrote:
Jristz wrote:

we now have another python rebuild....why isnot anounced in the home page??

Maybe because users shouldn't notice. It was mentioned on the ML.

I noticed sad

:: Synchronising package databases...
 core                             107.7 KiB  58.5K/s 00:02 [################################] 100%
 extra                           1423.3 KiB   143K/s 00:10 [################################] 100%
 community                       1779.1 KiB   210K/s 00:08 [################################] 100%
 multilib                          92.8 KiB  69.2K/s 00:01 [################################] 100%
:: Starting full system upgrade...
:: Replace python-imaging with community/python2-imaging? [Y/n] y
:: Replace python-musicbrainz2 with community/python2-musicbrainz2? [Y/n] y
:: Replace python-notify with extra/python2-notify? [Y/n] y
:: Replace python-paramiko with community/python2-paramiko? [Y/n] y
:: Replace python-reportlab with community/python2-reportlab? [Y/n] y
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: decibel-audio-player: requires python-notify
:: puddletag: requires python-musicbrainz2>=0.6.0
:: samsung-tools: requires python-notify

Offline

#7 2012-10-18 09:08:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Python being changed to python2? 10/17/12

You are always responsible for AUR packages; there is nothing new or surprising about that...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2012-10-18 09:15:53

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: Python being changed to python2? 10/17/12

jasonwryan wrote:

You are always responsible for AUR packages; there is nothing new or surprising about that...

Yeah - somewhat self inflicted big_smile

Offline

#9 2012-10-18 21:42:11

highway
Member
Registered: 2012-07-28
Posts: 81

Re: Python being changed to python2? 10/17/12

anyone know how to fix this for the AUR packages or proper search terms to find the answer? thanks

Offline

#10 2012-10-18 21:45:46

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 192
Website

Re: Python being changed to python2? 10/17/12

@highway Since the packages are renamed, it is sufficient to adjust the dependencies. You can flag packages out of date using https://aur.archlinux.org/ and comment so the author can fix it.

To do it yourself, you can use "yaourt package-name" and choose "Y" when you are asked to edit a PKGBUILD file. Then move to the depends=(...) line and change python-FOO to python2-FOO (or whatever the python package is named). Then save & close the PKGBUILD file. When you are asked to edit the PKGBUILD again, simply choose "N" and continue building the package with "Y". Installation continues as usual.

Offline

#11 2012-10-18 21:46:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Python being changed to python2? 10/17/12

Edit the PKGBUILDs and change e.g. python-notify -> python2-notify , python-musicbrainz2 -> python2-musicbrainz2 https://projects.archlinux.org/svntogit … 2094f2ec79


Edit: These packages are not out of date because upstream hasn't released a new version. They're currently broken due to Arch package renaming.
Posting a comment on their AUR page and including a working PKGBUILD is best.

Last edited by karol (2012-10-18 21:48:12)

Offline

#12 2012-10-18 21:46:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,444
Website

Re: Python being changed to python2? 10/17/12

Change the depends array in the PKGBUILD to rebuild AUR packages.  Then notify the maintainer of the PKGBUILD so they can update it for everyone else.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#13 2012-10-18 21:47:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Python being changed to python2? 10/17/12

Anyone else want some of this?

smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2012-10-18 21:58:55

highway
Member
Registered: 2012-07-28
Posts: 81

Re: Python being changed to python2? 10/17/12

thanks for the detailed replies, i am going to give this a shot now! ive used ubuntu since 2004, and never had to do this stuff before, and am very happy to have made the switch to arch so i can learn this stuff tongue

EDIT: got this fixed, i couldn't change the dependencies in the file since they were already there, so i removed the problem application, upgraded, and then installed it again.

i guess this is in the realm of operating systems, as well as being off topic, but can anyone recommend a book or something that will help me learn more about how a linux OS works? sorry again for the trouble, and thanks for the help. a PM would be great too, to help keep the thread on track!

Last edited by highway (2012-10-18 22:26:55)

Offline

#15 2012-10-25 18:08:21

Nico666
Member
Registered: 2012-04-24
Posts: 56

Re: Python being changed to python2? 10/17/12

I have the same problem, and don't know how to solve it. I might have messed up something installing stuff from AUR, but some of the problematic pakages are from extra:

$ sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date

:: Replace python-gnomekeyring with extra/python2-gnomekeyring? [Y/n] n
:: Replace python-imaging with community/python2-imaging? [Y/n] n
:: Replace python-mpdclient2 with community/python2-mpdclient2? [Y/n] n
:: Replace python-musicbrainz2 with community/python2-musicbrainz2? [Y/n] n
:: Replace python-notify with extra/python2-notify? [Y/n] n
:: Replace python-opengl with extra/python2-opengl? [Y/n] n
:: Replace python-pysqlite with extra/python2-pysqlite? [Y/n] n
:: Replace python-rsvg with extra/python2-rsvg? [Y/n] n

resolving dependencies...
looking for inter-conflicts...
:: python2-pysqlite and python-pysqlite are in conflict. Remove python-pysqlite? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: python2-pysqlite and python-pysqlite are in conflict (python-pysqlite<=2.6.3-2)

Any comment will be much appreciated.

Offline

#16 2012-10-25 19:05:51

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: Python being changed to python2? 10/17/12

Why are you saying no?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#17 2012-10-25 19:13:55

Nico666
Member
Registered: 2012-04-24
Posts: 56

Re: Python being changed to python2? 10/17/12

WorMzy wrote:

Why are you saying no?

Because, as far as I know, python2 has been replaced by python (which is python 3).
Seems to me that there is something wrong causing a downgrade in these packages, since all these packages using python(3) are being changed to python2 on this upgrade attempt.

Anyhow, replacing with python2 doesn't seems to solve the issue.

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community               1779.7 KiB   290K/s 00:06 [######################] 100%
 multilib is up to date
:: Starting full system upgrade...
:: Replace python-gnomekeyring with extra/python2-gnomekeyring? [Y/n] 
:: Replace python-imaging with community/python2-imaging? [Y/n] 
:: Replace python-mpdclient2 with community/python2-mpdclient2? [Y/n] 
:: Replace python-musicbrainz2 with community/python2-musicbrainz2? [Y/n] 
:: Replace python-notify with extra/python2-notify? [Y/n] 
:: Replace python-opengl with extra/python2-opengl? [Y/n] 
:: Replace python-pysqlite with extra/python2-pysqlite? [Y/n] 
:: Replace python-rsvg with extra/python2-rsvg? [Y/n] 
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: arista-transcoder: requires python-rsvg
:: fofix: requires python-opengl
:: fofix: requires python-pysqlite
:: fretsonfire: requires python-opengl
:: puddletag: requires python-musicbrainz2>=0.6.0
:: sofastats: requires python-pysqlite

I have tried reinstalling both python and python2 without solution.

Offline

#18 2012-10-25 19:16:40

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: Python being changed to python2? 10/17/12

Nico666 wrote:
error: failed to prepare transaction (could not satisfy dependencies)
:: arista-transcoder: requires python-rsvg
:: fofix: requires python-opengl
:: fofix: requires python-pysqlite
:: fretsonfire: requires python-opengl
:: puddletag: requires python-musicbrainz2>=0.6.0
:: sofastats: requires python-pysqlite

Anyhow, replacing with python2 doesn't seems to solve the issue.

It did solve the problem you had with python2-pysqlite and python-pysqlite. Now you have the problem discussed earlier in this topic, where you have AUR packages that need to be modified. Go back and read the three separate posts where different people explained how to do this.

Last edited by 2ManyDogs (2012-10-25 19:20:21)


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#19 2012-10-25 19:52:19

Nico666
Member
Registered: 2012-04-24
Posts: 56

Re: Python being changed to python2? 10/17/12

2ManyDogs wrote:

It did solve the problem you had with python2-pysqlite and python-pysqlite. Now you have the problem discussed earlier in this topic, where you have AUR packages that need to be modified. Go back and read the three separate posts where different people explained how to do this.

I have not succeed searching, though I did it throughout before my first post. After your suggestions I have tried different keywords (AUR python python2, etc), however, the results I found are referring to the python transition from 2 to 3. This happened more that a year ago, so I think (and I might be wrong) this is not related with the transition nor to AUR's pkgbuilds: the AUR packages causing problems were installed long ago, and so does python(3), so I would had the this problem earlier.

I would be pleased if anyone can clarify me some points:

If I answer "YES" to the proposed replacements I will not get errors regarding the problem with python2-pysqlite and python-pysqlite, but this seems to me as an undesirable solution: I will be replacing python-* packages with python2-* packages, and obviously packages depending on python-*, which were OK on the first place, will complaint.

Anyhow, though answer "yes" to the suggested replacements could work, why these packages are being "downgraded" form python 3 to python 2?

Cheers,

Offline

#20 2012-10-25 20:02:01

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: Python being changed to python2? 10/17/12

Nico666 wrote:
2ManyDogs wrote:

It did solve the problem you had with python2-pysqlite and python-pysqlite. Now you have the problem discussed earlier in this topic, where you have AUR packages that need to be modified. Go back and read the three separate posts where different people explained how to do this.

I have not succeed searching, though I did it throughout before my first post.

I said "the problem discussed earlier in this topic" -- the posts are earlier in this topic ! Scroll up, or start at the beginning and scroll down.

Or just look here:
https://bbs.archlinux.org/viewtopic.php … 2#p1178052
https://bbs.archlinux.org/viewtopic.php … 3#p1178053
https://bbs.archlinux.org/viewtopic.php … 4#p1178054

Last edited by 2ManyDogs (2012-10-25 20:06:19)


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#21 2012-10-25 20:12:35

Nico666
Member
Registered: 2012-04-24
Posts: 56

Re: Python being changed to python2? 10/17/12

2ManyDogs wrote:
Nico666 wrote:
2ManyDogs wrote:

It did solve the problem you had with python2-pysqlite and python-pysqlite. Now you have the problem discussed earlier in this topic, where you have AUR packages that need to be modified. Go back and read the three separate posts where different people explained how to do this.

I have not succeed searching, though I did it throughout before my first post.

I said "the problem discussed earlier in this topic" -- the posts are earlier in this topic ! Scroll up, or start the beginning and scroll down.

Here:
https://bbs.archlinux.org/viewtopic.php … 2#p1178052
https://bbs.archlinux.org/viewtopic.php … 3#p1178053
https://bbs.archlinux.org/viewtopic.php … 4#p1178054

Thank you. I read them before, however I am asking not only to do my updates, but also to understand what is going in here: Why everything is changing from python back to python2?
Is the same question regarding pysqlite, I am quite sure that accepting proposed replacements and reinstalling these AUR's packages editing their pkgbuild's should work, I just cannot understand why downgrade python-*.

Offline

#22 2012-10-25 20:22:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Python being changed to python2? 10/17/12

Nico666 wrote:

Why everything is changing from python back to python2?

If you are interested in this sort of thing you should either subscribe, or search, Arch-dev Public:
https://mailman.archlinux.org/pipermail … 23558.html


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#23 2012-10-25 20:42:09

Nico666
Member
Registered: 2012-04-24
Posts: 56

Re: Python being changed to python2? 10/17/12

Thank you very much for your patience, It is crystal clear now.
I think this should be posted in "news" and announced in the home page. Is an important change and of general interest in my opinion. I know is a problem with AUR's packages, but i won't be the first time a problem with AUR's packages is announced on the home page.

It is just a gentle suggestion. I have always been very respectful about what the developing team do, and I understand you might think different.

Offline

#24 2012-10-26 06:16:58

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Python being changed to python2? 10/17/12

Nico666 wrote:

i won't be the first time a problem with AUR's packages is announced on the home page.

It won't?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#25 2012-10-26 06:33:12

Awebb
Member
Registered: 2010-05-06
Posts: 6,274

Re: Python being changed to python2? 10/17/12

Nico666 wrote:

but i won't be the first time a problem with AUR's packages is announced on the home page.

Is that a link I'm waiting for?

Online

Board footer

Powered by FluxBB