[MacPorts] #48811: minicom @2.7 Error: rev-upgrade failed: can't read "{os.platform}": no such variable

MacPorts noreply at macports.org
Wed Sep 9 16:54:40 PDT 2015


#48811: minicom @2.7 Error: rev-upgrade failed: can't read "{os.platform}": no such
variable
-------------------------------+--------------------------
  Reporter:  bustamitenator@…  |      Owner:  ryandesign@…
      Type:  defect            |     Status:  assigned
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.3.3
Resolution:                    |   Keywords:
      Port:  minicom           |
-------------------------------+--------------------------
Changes (by ryandesign@…):

 * owner:  macports-tickets@… => ryandesign@…
 * keywords:  Yosemite OSX 10.10.5 os.platform destroot =>
 * status:  new => assigned
 * port:  minicom @2.7 => minicom


Old description:

> I have recently installed macports to which i am a big fan.
> I have had no issues on my previous mac running MAC OSX Yosemite (
> Macbook Pro mid 2011 ), i have just bought a new Macbook Pro mid 2015
> Model Identifier:MacBookPro11,5
>
> I installed xcode then command line tools as well as developer tools then
> Macports . Install was easy enough , i used the source download to
> install 1st time round..
> i made sure my profile path was updated.
>
> '''My Profile :- '''\\
>
> #!/usr/bin/bash \\
> # MacPort \\
> export PATH="/opt/local/bin:/opt/local/sbin:$PATH" \\
>
> I also installed Quartz as i do use this a fair amount .. \\
>
> OS = MAC OSX Yosemite 10.10.5 \\
> Xcode  = Xcode 7 Beta \\
> Command line Tools = Command Line Tools OSX 10.10 for Xcode 7 beta 6 \\
> Quartz = XQuartz-2.7.7 \\
> MacPorts = MacPorts-2.3.3.tar.bz2 \\
>
> I then tried to install minicom @2.7 & i got this output from my screen
> :-
>
> Jimbo:base Jimbo$ sudo port install minicom \\
> --->  Computing dependencies for minicom \\
> --->  Cleaning minicom \\
> --->  Scanning binaries for linking errors \\
> --->  Found 3 broken files, matching files to ports \\
> --->  Found 1 broken port, determining rebuild order \\
> You can always run 'port rev-upgrade' again to fix errors. \\
> The following ports will be rebuilt: minicom @2.7 \\
> Continue? [Y/n]: Y \\
> Error: rev-upgrade failed: can't read "{os.platform}": no such variable
> \\
> Error: Follow http://guide.macports.org/#project.tickets to report a bug.
> \\
>
> Jimbo:base Jimbo$ sudo port rev-upgrade \\
> --->  Scanning binaries for linking errors \\
> --->  Found 3 broken files, matching files to ports \\
> --->  Found 1 broken port, determining rebuild order \\
> You can always run 'port rev-upgrade' again to fix errors. \\
> The following ports will be rebuilt: minicom @2.7 \\
> Continue? [Y/n]: Y \\
> Error: rev-upgrade failed: can't read "{os.platform}": no such variable
> \\
> Error: Follow http://guide.macports.org/#project.tickets to report a bug.
> \\
>
> '''This is from the log file :-''' \\
>
> version:1 \\
> :msg:clean --->  Computing dependencies for pkgconfig:msg:clean  \\
> :debug:clean pkgconfig has no conflicts \\
> :debug:clean Searching for dependency: libiconv \\
> :debug:clean Found Dependency: receipt exists for libiconv \\
> :debug:main Executing org.macports.main (pkgconfig) \\
> :debug:main changing euid/egid - current euid: 0 - current egid: 0 \\
> :debug:main egid changed to: 501 \\
> :debug:main euid changed to: 502 \\
> :debug:main Skipping completed org.macports.archivefetch (pkgconfig) \\
> :debug:main Privilege de-escalation not attempted as not running as root.
> \\
> :debug:main Skipping completed org.macports.fetch (pkgconfig) \\
> :debug:main Privilege de-escalation not attempted as not running as root.
> \\
> :debug:main Skipping completed org.macports.checksum (pkgconfig) \\
> :debug:main Privilege de-escalation not attempted as not running as root.
> \\
> :debug:main Skipping completed org.macports.extract (pkgconfig) \\
> :debug:main Privilege de-escalation not attempted as not running as root.
> \\
> :debug:main Skipping completed org.macports.patch (pkgconfig) \\
> :debug:main Privilege de-escalation not attempted as not running as root.
> \\
> :debug:main Skipping completed org.macports.configure (pkgconfig) \\
> :debug:main Privilege de-escalation not attempted as not running as root.
> \\
> :debug:main Skipping completed org.macports.build (pkgconfig) \\
> :debug:main Privilege de-escalation not attempted as not running as root.
> \\
> :debug:main Skipping completed org.macports.destroot (pkgconfig) \\
> :debug:main Privilege de-escalation not attempted as not running as root.
> \\
> :debug:install install phase started at Tue Sep  8 14:45:38 BST 2015 \\
> :notice:install --->  Installing pkgconfig @0.28_0 \\
> :debug:install Can't run install on this port without elevated
> privileges. Escalating privileges back to root. \\
> :debug:install euid changed to: 0. egid changed to: 0. \\
> :debug:install Executing org.macports.install (pkgconfig) \\
> :debug:install Using /usr/bin/tar \\
> :debug:install Using /usr/bin/bzip2 \\
> :error:install org.macports.install for port pkgconfig returned: no
> destroot found at:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/work/destroot
> \\
> :debug:install Error code: NONE \\
> :debug:install Backtrace: no destroot found at:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/work/destroot
> \\
>     while executing \\
> "create_archive $location $portarchivetype" \\
>     (procedure "portinstall::install_main" line 22) \\
>     invoked from within \\
> "portinstall::install_main org.macports.install" \\
>     ("eval" body line 1) \\
>     invoked from within \\
> "eval $procedure $targetname" \\
> :info:install Warning: targets not executed for pkgconfig:
> org.macports.activate org.macports.install \\
> :notice:install Please see the log file for port pkgconfig for details:
> \\
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/main.log
> \\
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/main.log
> (END)  \\
>

> I have looked around on your ticket system for other similar issues but
> cannot seem to narrow any of them down to a particular remedy. \\
> I am hoping this is an easy enough one for you to remedy & point me in
> the right direction... \\
>
> Thanks in advance \\
> Regards \\
> Jimbo :) \\

New description:

 I have recently installed macports to which i am a big fan.
 I have had no issues on my previous mac running MAC OSX Yosemite ( Macbook
 Pro mid 2011 ), i have just bought a new Macbook Pro mid 2015 Model
 Identifier:MacBookPro11,5

 I installed xcode then command line tools as well as developer tools then
 Macports . Install was easy enough , i used the source download to install
 1st time round..
 i made sure my profile path was updated.

 '''My Profile :- '''

 {{{
 #!/usr/bin/bash
 # MacPort
 export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
 }}}

 I also installed Quartz as i do use this a fair amount ..

 OS = MAC OSX Yosemite 10.10.5 \\
 Xcode  = Xcode 7 Beta \\
 Command line Tools = Command Line Tools OSX 10.10 for Xcode 7 beta 6 \\
 Quartz = XQuartz-2.7.7 \\
 MacPorts = MacPorts-2.3.3.tar.bz2

 I then tried to install minicom @2.7 & i got this output from my screen :-

 {{{
 Jimbo:base Jimbo$ sudo port install minicom
 --->  Computing dependencies for minicom
 --->  Cleaning minicom
 --->  Scanning binaries for linking errors
 --->  Found 3 broken files, matching files to ports
 --->  Found 1 broken port, determining rebuild order
 You can always run 'port rev-upgrade' again to fix errors.
 The following ports will be rebuilt: minicom @2.7
 Continue? [Y/n]: Y
 Error: rev-upgrade failed: can't read "{os.platform}": no such variable
 Error: Follow http://guide.macports.org/#project.tickets to report a bug.
 }}}
 {{{
 Jimbo:base Jimbo$ sudo port rev-upgrade
 --->  Scanning binaries for linking errors
 --->  Found 3 broken files, matching files to ports
 --->  Found 1 broken port, determining rebuild order
 You can always run 'port rev-upgrade' again to fix errors.
 The following ports will be rebuilt: minicom @2.7
 Continue? [Y/n]: Y
 Error: rev-upgrade failed: can't read "{os.platform}": no such variable
 Error: Follow http://guide.macports.org/#project.tickets to report a bug.
 }}}

 '''This is from the log file :-'''

 {{{
 version:1
 :msg:clean --->  Computing dependencies for pkgconfig:msg:clean
 :debug:clean pkgconfig has no conflicts
 :debug:clean Searching for dependency: libiconv
 :debug:clean Found Dependency: receipt exists for libiconv
 :debug:main Executing org.macports.main (pkgconfig)
 :debug:main changing euid/egid - current euid: 0 - current egid: 0
 :debug:main egid changed to: 501
 :debug:main euid changed to: 502
 :debug:main Skipping completed org.macports.archivefetch (pkgconfig)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.fetch (pkgconfig)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.checksum (pkgconfig)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.extract (pkgconfig)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.patch (pkgconfig)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.configure (pkgconfig)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.build (pkgconfig)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.destroot (pkgconfig)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:install install phase started at Tue Sep  8 14:45:38 BST 2015
 :notice:install --->  Installing pkgconfig @0.28_0
 :debug:install Can't run install on this port without elevated privileges.
 Escalating privileges back to root.
 :debug:install euid changed to: 0. egid changed to: 0.
 :debug:install Executing org.macports.install (pkgconfig)
 :debug:install Using /usr/bin/tar
 :debug:install Using /usr/bin/bzip2
 :error:install org.macports.install for port pkgconfig returned: no
 destroot found at:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/work/destroot
 :debug:install Error code: NONE
 :debug:install Backtrace: no destroot found at:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/work/destroot
     while executing
 "create_archive $location $portarchivetype"
     (procedure "portinstall::install_main" line 22)
     invoked from within
 "portinstall::install_main org.macports.install"
     ("eval" body line 1)
     invoked from within
 "eval $procedure $targetname"
 :info:install Warning: targets not executed for pkgconfig:
 org.macports.activate org.macports.install
 :notice:install Please see the log file for port pkgconfig for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/main.log
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/main.log
 (END)
 }}}

 I have looked around on your ticket system for other similar issues but
 cannot seem to narrow any of them down to a particular remedy. \\
 I am hoping this is an easy enough one for you to remedy & point me in the
 right direction...

 Thanks in advance \\
 Regards \\
 Jimbo :)

--

Comment:

 I am not certain whether "`can't read "{os.platform}": no such variable`"
 is a relevant or correct error. MacPorts sometime prints an incorrect
 error at the end of a failed operation. I don't know what port it thinks
 the problem is in. `os.platform` is a variable that exists in MacPorts.
 Only a handful of ports use it, and glancing at the code I don't see any
 that use it improperly. So I am inclined to ignore this error.

 The error "`org.macports.install for port pkgconfig returned: no destroot
 found at: ...`" is definitely relevant. This error means you must clean
 the affected port and try again. In this case: run "`sudo port clean
 pkgconfig`". Cleaning and trying again is the first thing you should do
 anytime any port fails.

 Ports should not normally be broken. I suspect the reason why MacPorts
 thinks minicom is broken on your system is that minicom uses ncurses,
 though it does not declare a dependency on it, and so it needs to be
 rebuilt following the recent update of ncurses to version 6. I fixed this
 in r140150. To receive this change, wait 30 minutes, then run "`sudo port
 selfupdate`". Then you can "`sudo port upgrade outdated`" to rebuild
 minicom.

-- 
Ticket URL: <https://trac.macports.org/ticket/48811#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list