Re: port fails to list installed ports
I'm experiencing this as well: $ port outdated Error: port installed failed: list must have an even number of elements No ports are installed. ranjan-bagchis-computer-2:~ rbagchi$ port -d outdated DEBUG: list must have an even number of elements while executing "array set receipt_$ref $receipt_contents" (procedure "receipt_flat::open_entry" line 84) invoked from within "${macports::registry.format}::open_entry $name $version $revision $variants" (procedure "open_entry" line 4) invoked from within "open_entry $iname $iversion $irevision $ivariants" (procedure "registry::installed" line 13) invoked from within "registry::installed" Error: port installed failed: list must have an even number of elements No ports are installed. I've done a port sync, and a port selfupdate, and neither has cleared this up. It began around the first of the month. eckhard wrote: Hi erveryone, MacPorts 1.520 returns this error message: ========== port -d echo installed DEBUG: list must have an even number of elements while executing "array set receipt_$ref $receipt_contents" (procedure "receipt_flat::open_entry" line 84) invoked from within "${macports::registry.format}::open_entry $name $version $revision $variants" (procedure "open_entry" line 4) invoked from within "open_entry $iname $iversion $irevision $ivariants" (procedure "registry::installed" line 13) invoked from within "registry::installed" Error: /opt/local/bin/port: port installed failed: list must have an even number of elements ========== Thanks for a short reply. Eckhard. _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
I did not solve this problem yet, too. I tried to: cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/ and then: sudo portindex ...in order to get a proper PortIndex, but that did not help. Some days ago I changed the Portfile of an old version of pwm manually, but unfortunatly by pasting the text I added two lines of the mail to which the Portfile was attached, so that the Portfile was corrupted (I don't know anything about tcl). Later I uninstalled the old pwm-version with the force-option "-f". The new version works fine, by the way. But it may be that since that time something is inconsistent in my port system. "Sudo port selfupdate" does not help. Currently I read the Macports-Documentation at http://geeklair.net/ new_macports_guide/ (when ever I have time) to fix the problem. Greetings, Eckhard.
Wrote "pwm", but meant "pmw". Sorry, Eckhard.
On Sep 10, 2007, at 3:21 PM, Ranjan Bagchi wrote:
I'm experiencing this as well:
ranjan-bagchis-computer-2:~ rbagchi$ port -d outdated DEBUG: list must have an even number of elements while executing "array set receipt_$ref $receipt_contents" (procedure "receipt_flat::open_entry" line 84) invoked from within "${macports::registry.format}::open_entry $name $version $revision $variants" (procedure "open_entry" line 4) invoked from within "open_entry $iname $iversion $irevision $ivariants" (procedure "registry::installed" line 13) invoked from within "registry::installed" Error: port installed failed: list must have an even number of elements No ports are installed.
I've done a port sync, and a port selfupdate, and neither has cleared this up. It began around the first of the month.
did you perhaps run out of disk space while installing something around when this first started happening? you may have a corrupted receipt file. If you have only a few ports installed, it might be best to remove macports and reinstall them. Otherwise, you could possibly find and remove the corrupted receipt (but you'll have a bunch of the files from that port still in your macports prefix and macports will no longer be able to manage them correctly). -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
It may be that I damaged the registry of my port system. Is there any way to repair it or have I to reinstall the whole software tree? Thanks for a hint. Eckhard.
On Sep 11, 2007, at 4:07 PM, Eckhard Wiemann wrote:
It may be that I damaged the registry of my port system. Is there any way to repair it
There are no tools to do so. If you know tcl and are motivated, you could probably fix it "by hand". If you end up writing a tool that is helpful, it may be a nice feature addition to 'port' (and/or a nice additional program we could ship).
or have I to reinstall the whole software tree?
This is, by far, the easiest option. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
participants (3)
-
Daniel J. Luke
-
Eckhard Wiemann
-
Ranjan Bagchi