Opened 13 years ago

Closed 13 years ago

#30883 closed defect (fixed)

BUG: py27-matplotlib is replaced by py24-matplotlib

Reported by: jochen@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: py27-matplotlib

Description

When I try to upgrade outdated I get the following behaviour/messages:

py27-matplotlib is replaced by py24-matplotlib
--->  Computing dependencies for python24
--->  Fetching archive for python24

I do not want python24 ...

I see there is some logic with "subports" - do I need to do anything about that?

Change History (9)

comment:1 Changed 13 years ago by skymoo (Adam Mercer)

I can't reproduce this at all, which version of py27-matplotlib are you updating from?

comment:2 Changed 13 years ago by jochen@…

That's what I feared;-)

> sudo port outdated
The following installed ports are outdated:
py27-matplotlib                1.0.1_2 < 1.0.1_4

comment:3 Changed 13 years ago by skymoo (Adam Mercer)

I upgraded from that version on one of my machines without issue. Could you attach the full debug output so see if anything weird is going on?

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

I think you're not actually running 2.0.1, and this is a duplicate of #30463.

comment:5 Changed 13 years ago by jochen@…

Resolution: duplicate
Status: closedreopened

Could be, of course, but port tells me it is 2.0.1...

> sudo port clean --all py27-matplotlib
--->  Cleaning py27-matplotlib

> port version
Version: 2.0.1

> sudo port -dv upgrade py27-matplotlib
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: py27-matplotlib 1.0.1_4 exists in the ports tree
DEBUG: py27-matplotlib 1.0.1_2 +latex+tkinter is the latest installed
DEBUG: py27-matplotlib 1.0.1_2 +latex+tkinter is active
DEBUG: Merging existing variants '+latex+tkinter' into variants
DEBUG: new fully merged portvariants: tkinter + latex +
--->  py27-matplotlib is replaced by py24-matplotlib
DEBUG: Changing to port directory: /opt/local/var/macports/sources/svn.macports.org/trunk/dports/python/py-matplotlib
DEBUG: OS darwin/10.8.0 (Mac OS X 10.6) arch i386
[...]

I might actually have tried/initiated the update originally with an older port version. If that could be the problem, how would one recover?

Thanks, Jochen

comment:6 Changed 13 years ago by jmroot (Joshua Root)

I guess you might have a PortIndex that was generated by port < 2.0.1. If you touch python/py-matplotlib/Portfile and run portindex that would fix it.

comment:7 Changed 13 years ago by jochen@…

Unfortunately, this still does not help:

> sudo -i
Password:
gaffel:~ root# cd /opt/local/var/macports/sources/rsync.macports.org/release/ports
gaffel:ports root# port selfupdate
--->  Updating the ports tree
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.0.1 installed,
MacPorts base version 2.0.1 downloaded.
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
gaffel:ports root# touch python/py-matplotlib-basemap/Portfile 
gaffel:ports root# touch python/py-matplotlib/Portfile 
gaffel:ports root# touch python/py27-matplotlib/Portfile 
touch: python/py27-matplotlib/Portfile: No such file or directory
gaffel:ports root# touch python/py27-matplotlib-basemap/Portfile 
touch: python/py27-matplotlib-basemap/Portfile: No such file or directory
gaffel:ports root# port clean --all py27-matplotlib
--->  Cleaning py27-matplotlib
gaffel:ports root# port clean --all py27-matplotlib-basemap
--->  Cleaning py27-matplotlib-basemap
gaffel:ports root# port clean --all py-matplotlib-basemap
--->  Cleaning py-matplotlib-basemap
gaffel:ports root# port clean --all py-matplotlib
--->  Cleaning py-matplotlib
gaffel:ports root# port upgrade py27-matplotlib
--->  py27-matplotlib is replaced by py24-matplotlib
--->  Computing dependencies for python24
--->  Fetching archive for python24
--->  Attempting to fetch python24-2.4.6_9.darwin_10.x86_64.tbz2 from http://packages.macports.org/python24
^C
gaffel:ports root# portindex
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/ports
Adding port python/py-matplotlib
Adding port python/py-matplotlib-basemap

Total number of ports parsed:	2 
Ports successfully parsed:	2 
Ports failed:			0 
Up-to-date ports skipped:	7209

gaffel:ports root# port clean --all py-matplotlib-basemap
--->  Cleaning py-matplotlib-basemap
gaffel:ports root# port clean --all py-matplotlib
--->  Cleaning py-matplotlib
gaffel:ports root# port clean --all py27-matplotlib
--->  Cleaning py27-matplotlib
gaffel:ports root# port clean --all py27-matplotlib-basemap
--->  Cleaning py27-matplotlib-basemap
gaffel:ports root# portindex
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/ports

Total number of ports parsed:	0 
Ports successfully parsed:	0 
Ports failed:			0 
Up-to-date ports skipped:	7211

gaffel:ports root# port upgrade py27-matplotlib
--->  py27-matplotlib is replaced by py24-matplotlib
--->  Computing dependencies for python24
--->  Fetching archive for python24
^C

comment:8 Changed 13 years ago by jochen@…

Okay, the portindex hint was the right one, but I needed to touch py-nose/Portfile:

> touch /opt/local/var/macports/sources/svn.macports.org/trunk/dports/python/py-nose/Portfile 
> cd /opt/local/var/macports/sources/svn.macports.org/trunk/dports/
> portindex
Creating port index in /opt/local/var/macports/sources/svn.macports.org/trunk/dports
Adding port python/py-nose
Adding subport py24-nose
Adding subport py25-nose
Adding subport py26-nose
Adding subport py27-nose
Adding subport py31-nose
Adding subport py32-nose

Total number of ports parsed:	7 
Ports successfully parsed:	7 
Ports failed:			0 
Up-to-date ports skipped:	12128

Thank you for the help!

comment:9 Changed 13 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.