Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#27188 closed defect (fixed)

Unable to execute port: wrong # args

Reported by: junk@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: base Version: 1.9.2
Keywords: Cc: adammede@…, djnecrogami@…, kldavis4@…, skymoo (Adam Mercer), sja45uk@…, benibex@…, ryandesign (Ryan Carsten Schmidt)
Port:

Description

Hello,

I just did a 'sudo port selfupdate', and now I can't install any ports. Here is an example:

$ sudo port install pwlib
Error: Unable to execute port: wrong # args: should be "macports::_deptypes_for_target target"
To report a bug, see <http://guide.macports.org/#project.tickets>
$

The selfupdate updated my version from 1.9.1 to 1.9.2. Here is the output when I run 'sudo port -v selfupdate' now:

$ sudo port selfupdate
--->  Updating the ports tree
--->  Updating MacPorts base sources using rsync
MacPorts base version 1.9.2 installed,
MacPorts base version 1.9.2 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
$ 

When I try running 'sudo port -v upgrade outdated', I get this:

$ sudo port -v upgrade outdated
Error: Unable to exec port: wrong # args: should be "macports::_deptypes_for_target target"
To report a bug, see <http://guide.macports.org/#project.tickets>
$ 

When I do it with a -d instead, I get a ton of stuff including this pertinent text:

DEBUG: Starting logging for gnome-common
DEBUG: wrong # args: should be "macports::_deptypes_for_target target"
    while executing
"macports::_deptypes_for_target $target $workername"
    (procedure "mportexec" line 17)
    invoked from within
"mportexec $workername activate"
Error: Unable to exec port: wrong # args: should be "macports::_deptypes_for_target target"
To report a bug, see <http://guide.macports.org/#project.tickets>

It looks like $workername is being passed, and it's not expected. Is this something that changed in 1.9.2? Any idea how to fix or work around this? I'm running OS X 10.6.4.

Thanks, Stephen

Change History (17)

comment:1 Changed 14 years ago by thewolf167@…

I'm seeing the same thing. I can't install anything.

comment:2 Changed 14 years ago by adammede@…

Cc: adammede@… added

Cc Me!

comment:3 Changed 14 years ago by adammede@…

I need to watch the progress on this one as I am unable to install something I need in order to keep working on a particular project. This is a blocker for me.

comment:4 Changed 14 years ago by thewolf167@…

Any attempt to install an older version of Macports ends up with 1.9.2 still installed, and the complete inability to install new software.

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: djnecrogami@… added
Component: portsbase

Has duplicate #27189.

comment:6 Changed 14 years ago by benibex@…

I am having the same exact issue. Did a selfupdate this evening and now I see this same error with v1.9.2

comment:7 Changed 14 years ago by kldavis4@…

Cc: kldavis4@… added

Cc Me!

comment:8 in reply to:  description Changed 14 years ago by kldavis4@…

I am seeing the same issue. I completely uninstalled Macports after trying the upgrade, and it is still doing it.

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

Cc: ram@… added

Cc Me!

comment:10 Changed 14 years ago by sja45uk@…

Cc: sja45uk@… added

Cc Me!

comment:11 Changed 14 years ago by thewolf167@…

Cc: thewolf167@… added

Cc Me!

comment:12 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

comment:13 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: benibex@… ryandesign@… added

Joshua fixed this in r73226, r73229, but did not increase the MacPorts version number, so I don't think "selfupdate" will notice it. Once it's posted, you should probably download the MacPorts 1.9.2 disk image from www.macports.org and install it; it will contain this fix.

comment:14 Changed 14 years ago by jmroot (Joshua Root)

sudo port -f selfupdate will do it.

comment:15 in reply to:  14 Changed 14 years ago by thewolf167@…

Replying to jmr@…:

sudo port -f selfupdate will do it.

Confirming that that works. Thanks, folks!

comment:16 Changed 14 years ago by thewolf167@…

Cc: thewolf167@… removed

Cc Me!

comment:17 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #27275.

Note: See TracTickets for help on using tickets.