[MacPorts] #36638: Failed to initialize MacPorts
#36638: Failed to initialize MacPorts -----------------------+-------------------------------- Reporter: carsten@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: base | Version: 2.1.2 Keywords: Tcl | Port: -----------------------+-------------------------------- For no particular reason, the base system stopped working completely. Entering "port" on the Command line gives the following Tcl error: {{{ sh-3.2# port }}} {{{ invalid command name "::tcl::tm::UnknownHandler" while executing "::tcl::tm::UnknownHandler {::tcl::MacOSXPkgUnknown ::tclPkgUnknown} msgcat 0-" ("package unknown" script) invoked from within "package require msgcat" (file "/opt/local/share/macports/Tcl/registry2.0/registry.tcl" line 40) invoked from within "source /opt/local/share/macports/Tcl/registry2.0/registry.tcl" ("package ifneeded registry 1.0" script) invoked from within "package require registry 1.0" (procedure "mportinit" line 485) invoked from within "mportinit ui_options global_options global_variations" Error: /opt/local/bin/port: Failed to initialize MacPorts, invalid command name "::tcl::tm::UnknownHandler" sh-3.2# port -vvv invalid command name "::tcl::tm::UnknownHandler" while executing "::tcl::tm::UnknownHandler {::tcl::MacOSXPkgUnknown ::tclPkgUnknown} msgcat 0-" ("package unknown" script) invoked from within "package require msgcat" (file "/opt/local/share/macports/Tcl/registry2.0/registry.tcl" line 40) invoked from within "source /opt/local/share/macports/Tcl/registry2.0/registry.tcl" ("package ifneeded registry 1.0" script) invoked from within "package require registry 1.0" (procedure "mportinit" line 485) invoked from within "mportinit ui_options global_options global_variations" Error: /opt/local/bin/port: Failed to initialize MacPorts, invalid command name "::tcl::tm::UnknownHandler" }}} My system is a MacBook (mid-2009) running MountainLion and XCode with all current updates. I have tried to * reinstall MacPorts from the installer * reinstall MacPorts from the source Both installation and compilation of MacPorts works correctly, but the command "port" keeps failing with the above error. -- Ticket URL: <https://trac.macports.org/ticket/36638> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36638: Failed to initialize MacPorts ------------------------+-------------------------------- Reporter: carsten@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: Port: | ------------------------+-------------------------------- Changes (by ryandesign@…): * priority: High => Normal * keywords: Tcl => -- Ticket URL: <https://trac.macports.org/ticket/36638#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36638: Failed to initialize MacPorts ------------------------+-------------------------------- Reporter: carsten@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: Port: | ------------------------+-------------------------------- Comment (by jmr@…): Does `package require msgcat` work in /usr/bin/tclsh? -- Ticket URL: <https://trac.macports.org/ticket/36638#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36638: Failed to initialize MacPorts ------------------------+-------------------------------- Reporter: carsten@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: Port: | ------------------------+-------------------------------- Comment (by carsten@…): {{{ /usr/bin/tclsh % package require msgcat invalid command name "::tcl::tm::UnknownHandler" }}} No, it does not. -- Ticket URL: <https://trac.macports.org/ticket/36638#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36638: Failed to initialize MacPorts ------------------------+-------------------------------- Reporter: carsten@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: Port: | ------------------------+-------------------------------- Comment (by carsten@…): This is a problem with tcl, not macports. I resolved it by editing /opt/local/bin/port and hardcoding an alternative tclsh in line 4 s#/usr/bin/tclsh#/sw/bin/tclsh# That breaks on every port selfupdate, but it's a temporary fix. I wonder whether there could be a run time option which Tcl to use (i.e. an environment variable or a configuration setting within macports) -- Ticket URL: <https://trac.macports.org/ticket/36638#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#36638: Failed to initialize MacPorts ------------------------+-------------------------------- Reporter: carsten@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: Port: | ------------------------+-------------------------------- Comment (by carsten@…): Replying to [comment:1 ryandesign@…]: Keyword Tcl should be restored. -- Ticket URL: <https://trac.macports.org/ticket/36638#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#36638: Failed to initialize MacPorts ------------------------+-------------------------------- Reporter: carsten@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: Port: | ------------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:5 carsten@…]:
Keyword Tcl should be restored.
Unnecessary, since “tcl” appears elsewhere in the ticket. -- Ticket URL: <https://trac.macports.org/ticket/36638#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#36638: Failed to initialize MacPorts ------------------------+-------------------------------- Reporter: carsten@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: invalid | Keywords: Port: | ------------------------+-------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => invalid Comment: So basically your tcl standard library is broken somehow. We can't do anything about that. -- Ticket URL: <https://trac.macports.org/ticket/36638#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts