Pacexp - python script to list REALLY explicitly installed packages

I usually just lurk the forums-- well, except for when I'm here asking for help with some PEBKAC issues... but never mind that.
This is a small python script I just wrote today while procrastinating. I'd love some feedback on the code, personally, but I'm hoping this could be useful to someone else. I always forget the stuff I have installed when I'm looking to clean my system up and `pacman -Qe` lists a lot of packages that Arch installs itself, so this is my way of dealing with it.
I'll probably be adding some other features to this script anyway, I'm gonna try to keep this post updated whenever I do so.
pacexp
A quick and dirty script to intersect the output of `pacman -Qe` with manually installed packages from /var/log/pacman.log
https://gist.github.com/spaceporn/d4ec6391a4684efb933c
If anyone has any suggestions to improve the code (even a better regexp counts), feel free to write them down here or on the gist page!

karol wrote:
I use
expac "%n %N" $(comm -23 <(pacman -Qq|sort) <(pacman -Qqg base base-devel|sort)) | awk '$2 == ""' | less;
to list packages that aren't required by any other package and are not part of base or base-devel. All of them have been explicitly installed.
That's pretty cool! I'll probably save it as an alias if I ever have problems with my script

Similar Messages

  • Feature request: list NON explicitly installed orphans

    hey
    I just wanted to request a feature, which I think should already be in pacman??? and that is to beable to list NON explicitly installed orphans.
    cyas

    yosh64 wrote:I just wanted to request a feature, which I think should already be in pacman??? and that is to beable to list NON explicitly installed orphans.
    http://bbs.archlinux.org/viewtopic.php?t=21821
    http://bbs.archlinux.org/viewtopic.php?t=6138
    http://bbs.archlinux.org/viewtopic.php?t=22360
    http://bbs.archlinux.org/viewtopic.php?t=19913
    http://bugs.archlinux.org/task/4130

  • Explicitly installed packages

    How do I list what packages I have that are explicitly installed not as dependencies for other packages?
    pacman -Qe doesn't help since it only lists ones that where installed as dependencies.
    Last edited by hussam (2007-06-08 00:40:30)

    script : http://bbs.archlinux.org/viewtopic.php? … 08#p251008
    bug report : http://bugs.archlinux.org/task/7343
    Afaik, pacman -Qe never listed all explictly installed packages.
    It used to list orphans, ie package not required by any others.
    Then, in pacman 2.9 (I just checked :d), it was restricted to explictly installed packages. I'm not sure why.
    But it never displayed all explicitly installed packages, the e wasn't for explicit.
    In pacman 3, it now lists packages not required by any others, that were _not_ installed explicitly,
    which is much more interesting imo, since it's packages that are generally safe to remove.

  • Wanted: script to list uninstalled optdepends and packages that need t

    I had a thought today that a script to list package that are optdepends but not installed could be quite useful...  I have not written one, but thought it would be good for pacman-contrib if someone wanted to contribute.
    Example output:
    tk - optional for:
       ruby - for Ruby/TK
       python - for IDLE, pynche and modulator
    fakeroot - optional for:
       pacman - for makepkg usage as normal user
    So get script writing!  Preferably in bash or perl (which the current pacman-contrib scripts use).

    I cheated and used my perl ALPM module.  I think the logic is sound, though, and you can replace the module calls with backticking pacman (preferably functions wrapping them).  I planned to but ran out of time.
    #!/usr/bin/perl
    use warnings;
    use strict;
    use ALPM ( dbpath => '/var/lib/pacman/' );
    my %reverse_depends;
    my $db = ALPM->register_db;
    OPT_SEARCH:
    for my $pkg ( @{$db->get_pkg_cache} ) {
    my $pkg_optdeps = $pkg->get_optdepends;
    next OPT_SEARCH unless @$pkg_optdeps;
    my $depender = $pkg->get_name;
    my %reason_for = map {
    /\A([^:]*):\s*(.*)/ ? ($1 => $2) : ($_ => '')
    } @$pkg_optdeps;
    DEP_LOOP:
    for my $dependee ( keys %reason_for ) {
    next DEP_LOOP if $db->get_pkg($dependee); #ignore installed
    $reverse_depends{$dependee}->{$depender} = $reason_for{$dependee};
    for my $opt_dep ( sort keys %reverse_depends ) {
    print "$opt_dep\n";
    my $reason_of = $reverse_depends{$opt_dep};
    for my $depender ( sort keys %$reason_of ) {
    my $reason = $reason_of->{$depender};
    print " $depender",
    ( $reason ? ": $reason\n" : "\n" );

  • List explicit installed packages

    Hello,
    i've read that
    pacman -Qe
    lists all explicit installed packages.
    but pacman -Qe lists a good deal more packages:
    bash-3.2# pacman -Qe                                                           
    acl 2.2.47-2                                                                   
    alsa-oss 1.0.17-1                                                               
    alsa-utils 1.0.19-1                                                             
    amarok 2.0.2-2                                                                 
    attr 2.4.43-1                                                                   
    audacity 1.3.7-1                                                               
    bash 3.2.048-3                                                                 
    bash-completion 20060301-9                                                     
    binutils 2.19.1-1                                                               
    bzip2 1.0.5-4                                                                   
    codecs 20071007-1                                                               
    coreutils 7.2-1                                                                 
    cpio 2.9-3                                                                     
    cracklib 2.8.13-2                                                               
    cryptsetup 1.0.6-2                                                             
    dash 0.5.5.1-2                                                                 
    db 4.7.25-2                                                                     
    dbus-core 1.2.4.4permissive-1                                                   
    dcron 3.2-3                                                                     
    device-mapper 1.02.31-1                                                         
    dhcpcd 4.0.12-1                                                                 
    dialog 1.1_20080819-1                                                           
    diffutils 2.8.1-6                                                               
    digikam 0.10.0-2                                                               
    dmapi 2.2.9-1                                                                   
    dvd+rw-tools 7.1-1                                                             
    e2fsprogs 1.41.4-1                                                             
    file 5.00-1                                                                     
    filesystem 2009.01-1                                                           
    findutils 4.4.0-1                                                               
    firefox 3.0.8-1                                                                 
    flashplugin 10.0.22.87-1                                                       
    gawk 3.1.6-3                                                                   
    gcc-libs 4.3.3-1                                                               
    gdbm 1.8.3-5                                                                   
    gen-init-cpio 2.6.17-3                                                         
    gettext 0.17-3                                                                 
    gimp 2.6.6-1                                                                   
    gimp-plugin-greycstoration 2.9-2                                               
    gimp-ufraw 0.15-2                                                               
    glibc 2.9-4                                                                     
    gnuplot 4.2.4-1                                                                 
    grep 2.5.4-1                                                                   
    greycstoration 2.9-1                                                           
    groff 1.20.1-2                                                                 
    grub 0.97-15                                                                   
    gzip 1.3.12-4                                                                   
    hdparm 9.14-1                                                                   
    hwd 5.4.3-1                                                                     
    hydrogen 0.9.3-6                                                               
    initscripts 2009.03-2                                                           
    inkscape 0.46-11                                                               
    iputils 20071127-2                                                             
    jfsutils 1.1.13-1                                                               
    k3b 1.0.5-2                                                                     
    kbd 1.15-1                                                                     
    kdemod-arxin 3074-1                                                             
    kdemod-extragear-plasmoid-salatinoid 0.2-3                                     
    kdemod-extragear-plasmoid-simplemonitor 0.1-3                                   
    kdemod-extragear-plasmoid-weather 0.1-3                                         
    kdemod-kde-common 4.2.2-1                                                       
    kdemod-kdeaccessibility-colorschemes 4.2.2-1                                   
    kdemod-kdeaccessibility-common 4.2.2-1                                         
    kdemod-kdeaccessibility-doc 4.2.2-1                                             
    kdemod-kdeaccessibility-iconthemes 4.2.2-1                                     
    kdemod-kdeaccessibility-kmag 4.2.2-1                                           
    kdemod-kdeaccessibility-kmousetool 4.2.2-1                                     
    kdemod-kdeaccessibility-kmouth 4.2.2-1                                         
    kdemod-kdeaccessibility-kttsd 4.2.2-1                                           
    kdemod-kdeadmin-common 4.2.2-1                                                 
    kdemod-kdeadmin-doc 4.2.2-1                                                     
    kdemod-kdeadmin-kcron 4.2.2-1                                                   
    kdemod-kdeadmin-ksystemlog 4.2.2-1                                             
    kdemod-kdeadmin-kuser 4.2.2-1                                                   
    kdemod-kdeadmin-lilo-config 4.2.2-1                                             
    kdemod-kdeadmin-system-config-printer 4.2.2-1                                   
    kdemod-kdeartwork-colorschemes 4.2.2-1                                         
    kdemod-kdeartwork-common 4.2.2-1                                               
    kdemod-kdeartwork-desktopthemes 4.2.2-1                                         
    kdemod-kdeartwork-emoticons 4.2.2-1                                             
    kdemod-kdeartwork-iconthemes 4.2.2-1                                           
    kdemod-kdeartwork-screensavers 4.2.2-1                                         
    kdemod-kdeartwork-sounds 4.2.2-1                                               
    kdemod-kdeartwork-styles 4.2.2-1                                               
    kdemod-kdeartwork-wallpapers 4.2.2-1                                           
    kdemod-kdebase 4.2.2-1                                                         
    kdemod-kdebase-doc 4.2.2-1                                                     
    kdemod-kdebase-konsole 4.2.2-1                                                 
    kdemod-kdebase-kwrite 4.2.2-1                                                   
    kdemod-kdebase-runtime 4.2.2-1                                                 
    kdemod-kdebase-runtime-doc 4.2.2-1                                             
    kdemod-kdebase-runtime-icons 4.2.2-1                                           
    kdemod-kdebase-workspace 4.2.2-2                                               
    kdemod-kdebase-workspace-doc 4.2.2-2                                           
    kdemod-kdebase-workspace-wallpapers 4.2.2-2                                     
    kdemod-kdeedu-blinken 4.2.2-1                                                   
    kdemod-kdeedu-common 4.2.2-1                                                   
    kdemod-kdeedu-doc 4.2.2-1                                                       
    kdemod-kdeedu-kalgebra 4.2.2-1                                                 
    kdemod-kdeedu-kalzium 4.2.2-1                                                   
    kdemod-kdeedu-kanagram 4.2.2-1                                                 
    kdemod-kdeedu-kbruch 4.2.2-1                                                   
    kdemod-kdeedu-kgeography 4.2.2-1                                               
    kdemod-kdeedu-khangman 4.2.2-1                                                 
    kdemod-kdeedu-kig 4.2.2-1                                                       
    kdemod-kdeedu-kiten 4.2.2-1                                                     
    kdemod-kdeedu-klettres 4.2.2-1                                                 
    kdemod-kdeedu-kmplot 4.2.2-1                                                   
    kdemod-kdeedu-kstars 4.2.2-1                                                   
    kdemod-kdeedu-ktouch 4.2.2-1                                                   
    kdemod-kdeedu-kturtle 4.2.2-1                                                   
    kdemod-kdeedu-kwordquiz 4.2.2-1                                                 
    kdemod-kdeedu-marble 4.2.2-1                                                   
    kdemod-kdeedu-parley 4.2.2-1                                                   
    kdemod-kdeedu-step 4.2.2-1                                                     
    kdemod-kdegames-bomber 4.2.2-1                                                 
    kdemod-kdegames-bovo 4.2.2-1                                                   
    kdemod-kdegames-common 4.2.2-1                                                 
    kdemod-kdegames-doc 4.2.2-1                                                     
    kdemod-kdegames-kapman 4.2.2-1                                                 
    kdemod-kdegames-katomic 4.2.2-1                                                 
    kdemod-kdegames-kbattleship 4.2.2-1                                             
    kdemod-kdegames-kblackbox 4.2.2-1                                               
    kdemod-kdegames-kblocks 4.2.2-1                                                 
    kdemod-kdegames-kbounce 4.2.2-1                                                 
    kdemod-kdegames-kbreakout 4.2.2-1                                               
    kdemod-kdegames-kdiamond 4.2.2-1                                               
    kdemod-kdegames-kfourinline 4.2.2-1                                             
    kdemod-kdegames-kgoldrunner 4.2.2-1                                             
    kdemod-kdegames-killbots 4.2.2-1                                               
    kdemod-kdegames-kiriki 4.2.2-1                                                 
    kdemod-kdegames-kjumpingcube 4.2.2-1                                           
    kdemod-kdegames-klines 4.2.2-1                                                 
    kdemod-kdegames-kmahjongg 4.2.2-1                                               
    kdemod-kdegames-kmines 4.2.2-1                                                 
    kdemod-kdegames-knetwalk 4.2.2-1                                               
    kdemod-kdegames-kolf 4.2.2-1                                                   
    kdemod-kdegames-kollision 4.2.2-1                                               
    kdemod-kdegames-konquest 4.2.2-1                                               
    kdemod-kdegames-kpat 4.2.2-1                                                   
    kdemod-kdegames-kreversi 4.2.2-1                                               
    kdemod-kdegames-ksame 4.2.2-1                                                   
    kdemod-kdegames-kshisen 4.2.2-1                                                 
    kdemod-kdegames-ksirk 4.2.2-1                                                   
    kdemod-kdegames-kspaceduel 4.2.2-1                                             
    kdemod-kdegames-ksquares 4.2.2-1                                               
    kdemod-kdegames-ksudoku 4.2.2-1                                                 
    kdemod-kdegames-ktuberling 4.2.2-1                                             
    kdemod-kdegames-kubrick 4.2.2-1                                                 
    kdemod-kdegames-lskat 4.2.2-1                                                   
    kdemod-kdegraphics-common 4.2.2-2                                               
    kdemod-kdegraphics-doc 4.2.2-2                                                 
    kdemod-kdegraphics-gwenview 4.2.2-2                                             
    kdemod-kdegraphics-kamera 4.2.2-2                                               
    kdemod-kdegraphics-kcolorchooser 4.2.2-2                                       
    kdemod-kdegraphics-kolourpaint 4.2.2-2                                         
    kdemod-kdegraphics-kruler 4.2.2-2                                               
    kdemod-kdegraphics-ksnapshot 4.2.2-2                                           
    kdemod-kdegraphics-okular 4.2.2-2                                               
    kdemod-kdelibs 4.2.2-1                                                         
    kdemod-kdelibs-doc 4.2.2-1                                                     
    kdemod-kdemultimedia-common 4.2.2-1                                             
    kdemod-kdemultimedia-doc 4.2.2-1                                               
    kdemod-kdemultimedia-dragonplayer 4.2.2-1                                       
    kdemod-kdemultimedia-juk 4.2.2-1                                               
    kdemod-kdemultimedia-kmix 4.2.2-1                                               
    kdemod-kdemultimedia-kscd 4.2.2-1                                               
    kdemod-kdenetwork-common 4.2.2-1                                               
    kdemod-kdenetwork-doc 4.2.2-1                                                   
    kdemod-kdenetwork-kget 4.2.2-1                                                 
    kdemod-kdenetwork-kopete 4.2.2-1                                               
    kdemod-kdenetwork-kppp 4.2.2-1                                                 
    kdemod-kdenetwork-krdc 4.2.2-1                                                 
    kdemod-kdenetwork-krfb 4.2.2-1                                                 
    kdemod-kdepim-akregator 4.2.2-1                                                 
    kdemod-kdepim-common 4.2.2-1                                                   
    kdemod-kdepim-doc 4.2.2-1                                                       
    kdemod-kdepim-kaddressbook 4.2.2-1                                             
    kdemod-kdepim-kalarm 4.2.2-1                                                   
    kdemod-kdepim-kjots 4.2.2-1                                                     
    kdemod-kdepim-kmail 4.2.2-1                                                     
    kdemod-kdepim-knode 4.2.2-1                                                     
    kdemod-kdepim-knotes 4.2.2-1                                                   
    kdemod-kdepim-kontact 4.2.2-1                                                   
    kdemod-kdepim-korganizer 4.2.2-1                                               
    kdemod-kdepim-kpilot 4.2.2-1                                                   
    kdemod-kdepim-ktimetracker 4.2.2-1                                             
    kdemod-kdepim-wizards 4.2.2-1                                                   
    kdemod-kdepimlibs 4.2.2-1                                                       
    kdemod-kdeplasma-addons 4.2.2-2                                                 
    kdemod-kdesdk-cervisia 4.2.2-1                                                 
    kdemod-kdesdk-common 4.2.2-1                                                   
    kdemod-kdesdk-doc 4.2.2-1                                                       
    kdemod-kdesdk-kapptemplate 4.2.2-1                                             
    kdemod-kdesdk-kate 4.2.2-1                                                     
    kdemod-kdesdk-kbugbuster 4.2.2-1                                               
    kdemod-kdesdk-kcachegrind 4.2.2-1                                               
    kdemod-kdesdk-kdeaccounts-plugin 4.2.2-1                                       
    kdemod-kdesdk-kdepalettes 4.2.2-1                                               
    kdemod-kdesdk-kmtrace 4.2.2-1                                                   
    kdemod-kdesdk-kompare 4.2.2-1                                                   
    kdemod-kdesdk-kprofilemethod 4.2.2-1                                           
    kdemod-kdesdk-kstartperf 4.2.2-1                                               
    kdemod-kdesdk-kuiviewer 4.2.2-1                                                 
    kdemod-kdesdk-lokalize 4.2.2-1                                                 
    kdemod-kdesdk-poxml 4.2.2-1                                                     
    kdemod-kdesdk-scripts 4.2.2-1                                                   
    kdemod-kdesdk-umbrello 4.2.2-1                                                 
    kdemod-kdetoys-amor 4.2.2-1                                                     
    kdemod-kdetoys-common 4.2.2-1                                                   
    kdemod-kdetoys-doc 4.2.2-1                                                     
    kdemod-kdetoys-kteatime 4.2.2-1                                                 
    kdemod-kdetoys-ktux 4.2.2-1                                                     
    kdemod-kdetoys-kweather 4.2.2-1                                                 
    kdemod-kdeutils-ark 4.2.2-1                                                     
    kdemod-kdeutils-common 4.2.2-1                                                 
    kdemod-kdeutils-doc 4.2.2-1                                                     
    kdemod-kdeutils-kcalc 4.2.2-1                                                   
    kdemod-kdeutils-kcharselect 4.2.2-1                                             
    kdemod-kdeutils-kdessh 4.2.2-1                                                 
    kdemod-kdeutils-kdf 4.2.2-1                                                     
    kdemod-kdeutils-kfloppy 4.2.2-1                                                 
    kdemod-kdeutils-kgpg 4.2.2-1                                                   
    kdemod-kdeutils-ktimer 4.2.2-1                                                 
    kdemod-kdeutils-kwallet 4.2.2-1                                                 
    kdemod-kdeutils-okteta 4.2.2-1                                                 
    kdemod-kdeutils-printer-applet 4.2.2-1                                         
    kdemod-kdeutils-superkaramba 4.2.2-1                                           
    kdemod-kdeutils-sweeper 4.2.2-1                                                 
    kdemod-kdewebdev-common 4.2.2-1                                                 
    kdemod-kdewebdev-doc 4.2.2-1                                                   
    kdemod-kdewebdev-kfilereplace 4.2.2-1                                           
    kdemod-kdewebdev-kimagemapeditor 4.2.2-1                                       
    kdemod-kdewebdev-klinkstatus 4.2.2-1                                           
    kdemod-kdewebdev-kommander 4.2.2-1                                             
    kdemod-kgrubeditor 0.8.5-7                                                     
    kdemod-shaman 1.0.9-8                                                           
    kernel-headers 2.6.27.6-2                                                       
    kernel26 2.6.29.1-3                                                             
    kernel26-firmware 2.6.29-1                                                     
    kipi-plugins 0.2.0-2                                                           
    klibc 1.5.15-1                                                                 
    klibc-extras 2.5-2                                                             
    klibc-kbd 1.15.20080312-8                                                       
    klibc-module-init-tools 3.5-1                                                   
    klibc-udev 141-1                                                               
    kmplayer 0.11.0a-4                                                             
    less 429-1                                                                     
    libarchive 2.6.2-1                                                             
    libdownload 1.3-1                                                               
    libdvdcss 1.2.10-1                                                             
    libgcrypt 1.4.4-1                                                               
    libgl 7.4-1                                                                     
    libgpg-error 1.6-1                                                             
    libgpod 0.7.0-1                                                                 
    libpcap 1.0.0-1                                                                 
    libusb 0.1.12-3                                                                 
    licenses 2.4-1                                                                 
    links 2.2-2                                                                     
    logrotate 3.7.8-1                                                               
    lvm2 2.02.45-1                                                                 
    lzo2 2.02-3                                                                     
    mailx 8.1.1-7                                                                   
    man-db 2.5.5-1                                                                 
    man-pages 3.20-2                                                               
    maxima 5.17.1-5                                                                 
    mdadm 2.6.9-1                                                                   
    mesa 7.4-1                                                                     
    mkinitcpio 0.5.23-1                                                             
    mlocate 0.21.1-1                                                               
    module-init-tools 3.5-1                                                         
    mplayer-plugin 3.55-1                                                           
    nano 2.0.9-2                                                                   
    ncurses 5.7-2                                                                   
    net-tools 1.60-13                                                               
    openntpd 3.9p1-7                                                               
    openoffice-base 3.0.1-1                                                         
    openoffice-de 3.0.1-1                                                           
    openssh 5.2p1-1                                                                 
    p7zip 4.65-1                                                                   
    pacman 3.2.2-1                                                                 
    pacman-mirrorlist 20090405-1                                                   
    pam 1.0.4-1                                                                     
    parted 1.8.8-2                                                                 
    pciutils 3.1.2-1                                                               
    pcmciautils 015-2                                                               
    pcre 7.9-1                                                                     
    perl 5.10.0-4                                                                   
    popt 1.14-1                                                                     
    ppp 2.4.4-7                                                                     
    procinfo 19-3                                                                   
    procps 3.2.7-5                                                                 
    psmisc 22.6-2                                                                   
    pwgen 2.06-1                                                                   
    qtmod 4.5.0-5                                                                   
    qtmod-doc 4.5.0-4                                                               
    readline 5.2.013-2                                                             
    reiserfsprogs 3.6.21-1                                                         
    rp-pppoe 3.10-1                                                                 
    samba 3.3.3-2                                                                   
    scribus 1.3.3.12-4                                                             
    sdparm 1.03-2                                                                   
    sed 4.1.5-3                                                                     
    shadow 4.1.2.1-2                                                               
    skype 2.0.0.72-2                                                               
    spamassassin 3.2.5-2                                                           
    stellarium 0.10.2-1                                                             
    sysfsutils 2.1.0-4                                                             
    syslog-ng 3.0.1-6                                                               
    sysvinit 2.86-4                                                                 
    tar 1.22-1                                                                     
    tcp_wrappers 7.6-8                                                             
    texinfo 4.13a-3                                                                 
    texlive-bibtexextra 2008.11672-1                                               
    texlive-core 2008.11906-1                                                       
    texlive-fontsextra 2008.11889-1                                                 
    texlive-formatsextra 2008.10665-1                                               
    texlive-games 2008.11069-1                                                     
    texlive-genericextra 2008.10640-1                                               
    texlive-htmlxml 2008.11896-1                                                   
    texlive-humanities 2008.10502-1                                                 
    texlive-latex3 2008.10126-1                                                     
    texlive-latexextra 2008.11905-1
    texlive-music 2008.7340-1
    texlive-pictures 2008.10658-1
    texlive-plainextra 2008.11339-1
    texlive-pstricks 2008.11900-1
    texlive-publishers 2008.11885-1
    texlive-science 2008.11860-1
    ttf-bitstream-vera 1.10-6
    ttf-dejavu 2.29-1
    ttf-ms-fonts 2.0-2
    tzdata 2009f-1
    udev 141-1
    unrar 3.8.5-2
    usbutils 0.73-5
    util-linux-ng 2.14.2-1
    vi 7.2.65-1
    vnc 4.1.3-1
    wget 1.11.4-1
    which 2.20-1
    wormux 0.8.3-1
    wpa_supplicant 0.6.9-1
    xf86-video-intel 2.6.3-3
    xf86-video-vesa 2.2.0-1
    xfsprogs 3.0.0-1
    xine-ui 0.99.5-4
    xorg-fonts-100dpi 1.0.1-1
    xorg-fonts-75dpi 1.0.1-2
    xorg-res-utils 1.0.3-2
    xorg-server 1.6.1-1
    xorg-server-utils 7.4-4
    xorg-twm 1.0.4-2
    xorg-utils 7.4-3
    xorg-xinit 1.1.1-1
    xterm 243-1
    zlib 1.2.3.3-3
    How does pacman list all explicit installed packages?

    SamC wrote:Those most likely are the explicitly installed packages, including ones installed as part of a group and as part of the base install.
    Ok thanks, that explains it. I've expected a lists with only the later installed packages and only the group names.
    (I come from Gentoo, and thought/hoped pacman -Qe is like the world file...)
    Last edited by oneway (2009-04-21 05:35:12)

  • Script to rebuild all installed packages from ABS

    I realize pacbuilder is for that, but it doesn't seem to work properly for me. Skipping a lot of packages etc.
    Anyway, I've made this very simple script to just rebuild every installed package from core/extra/community. Sorry for the localized echo output, but I think it's all very simple and straightforward to understand.
    Edit:
    I've improved it a bit, now it should work flawlessly and remember what stuff it has to finish no matter when you ^C out of it. Also it installs all compiled packages, if you want to avoid that, remove -i switch from makepkg.
    #!/bin/sh
    # user configuration
    absdir="/home/mateusz/abs/autobuild"
    pkgdir="/home/mateusz/abs/packages"
    pkgfile="/home/mateusz/abs/autobuild.list"
    # end of user configuration
    topabs="/var/abs"
    if [ ! -d $absdir ]; then
    mkdir -pv $absdir
    fi
    if [ ! -d $pkgdir ]; then
    mkdir -pv $pkgdir
    fi
    echo "(autobuild) Uaktualnianie bazy abs..."
    sudo abs
    if [ ! -f $pkgfile ]; then
    echo "(autobuild) Tworzę listę pakietów do zbudowania..."
    pacman -Qq > $pkgfile
    else
    echo "(autobuild) Znaleziono poprzedni build."
    echo "(autobuild) Jeżeli nie chcesz go wykorzystać, skasuj $pkgfile"
    fi
    for pkgname in $(cat $pkgfile); do
    echo "(autobuild) Szukanie pakietu $pkgname..."
    find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
    if [ -d "$absdir/$pkgname" ]; then
    echo "(autobuild) Budowanie pakietu $pkgname..."
    cd "$absdir/$pkgname"
    makepkg -csir --noconfirm > /dev/null
    if [ $? -eq 0 ]; then
    echo "(autobuild) Pakiet zbudowany."
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    else
    echo "(autobuild) Błąd budowania pakietu!"
    fi
    else
    echo "(autobuild) Pakiet nieodnaleziony!"
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    fi
    done
    echo "(autobuild) Linkowanie pakietów do $pkgdir..."
    find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
    echo "(autobuild) Zakończono."
    exit 0
    Last edited by xaff (2009-05-03 13:47:17)

    Here is the script translated into English (with a bit of help from Google Translate, as well as grammar cleanup).
    #!/bin/sh
    # user configuration
    absdir="/home/aabbott/abs/autobuild"
    pkgdir="/home/aabbott/abs/packages"
    pkgfile="/home/aabbott/abs/autobuild.list"
    # end of user configuration
    topabs="/var/abs"
    if [ ! -d $absdir ]; then
    mkdir -pv $absdir
    fi
    if [ ! -d $pkgdir ]; then
    mkdir -pv $pkgdir
    fi
    echo "(autobuild) Updating the ABS database..."
    sudo abs
    if [ ! -f $pkgfile ]; then
    echo "(autobuild) Creating a list of packages to build..."
    pacman -Qq > $pkgfile
    else
    echo "(autobuild) Found a previous build."
    echo "(autobuild) If you don't want to use this build, delete ${pkgfile}."
    fi
    for pkgname in $(cat $pkgfile); do
    echo "(autobuild) Searching for $pkgname..."
    find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
    if [ -d "$absdir/$pkgname" ]; then
    echo "(autobuild) Building $pkgname..."
    cd "$absdir/$pkgname"
    makepkg -csir --noconfirm > /dev/null
    if [ $? -eq 0 ]; then
    echo "(autobuild) $pkgname built."
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    else
    echo "(autobuild) There was an error when building ${pkgname}!"
    fi
    else
    echo "(autobuild) $pkgname not found!"
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    fi
    done
    echo "(autobuild) Linking to $pkgdir..."
    find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
    echo "(autobuild) Finished."
    exit 0

  • List installed packages

    is there an easy way to list all your installed packages from the AUR? I've looked around and found a lot of things for the official repos but not the aur.

    yaourt prefixes packages that do not belong to a repository with "local/" when started with -Q switch.
    yaourt -Q | grep local
    This will give you all aur packages and all packages you might have installed manually (pacman -U).
    Edit: Damn esters, too fast for me :-)
    Last edited by randomguy (2009-03-22 21:15:17)

  • Locating and installing packages

    Recently installed Oracle Linux to host Oracle BI. Going through the BI software requirements, we have a list of software packages that are required. running 'rpm -q -a' to get a list of all installed packages, I see that I am missing several. Where do l locate the missing packages and where should they be placed on my system in order to install them with rpm? For instance, following the instruction in the BI installation guide, I get the following:
    [root]# rpm -q -a |grep compat-db >> package_list;view package_list
    [root]# rpm -ivh sysstat-4.0.7-4.EL3.3
    error: open of sysstat-4.0.7-4.EL3.3 failed: No such file or directory
    my system is :
    [root]# uname -a
    Linux <mask server name> 2.6.18-8.el5 #1 SMP Tue Jun 5 23:25:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
    Also ...
    Another item in the software requirements says 'If the hugemem kernel is used .....'
    So, how do I determine if it that applies to me?

    kpackage ?
    [root]# kpackage
    -bash: kpackage: command not found
    okay, maybe it's not in my PATH
    [root]# find / -name kpackage -exec ls -l {} \;
    [root]#
    (no kpackage found)
    after copying all of the rpms from cd to /pkgs, I was able to install most of the additional required packages. Note the following:
    [root@<my server> tmp]# cd /pkgs
    [root@<my server> pkgs]# pwd
    /pkgs
    [root@<my server> pkgs]# ls -l openmotif*
    -r-xr-Sr-t 1 root root 1374499 Dec 26 15:30 openmotif22-2.2.3-18.i386.rpm
    -r-xr-Sr-t 1 root root 1392081 Dec 26 15:30 openmotif22-2.2.3-18.x86_64.rpm
    -r-xr-Sr-t 1 root root 1575905 Dec 26 15:35 openmotif-2.3.0-0.3.el5.i386.rpm
    -r-xr-Sr-t 1 root root 1599638 Dec 26 15:35 openmotif-2.3.0-0.3.el5.x86_64.rpm
    -r-xr-Sr-t 1 root root 3069258 Dec 26 15:35 openmotif-devel-2.3.0-0.3.el5.i386.rpm
    -r-xr-Sr-t 1 root root 3210287 Dec 26 15:35 openmotif-devel-2.3.0-0.3.el5.x86_64.rpm
    (The requirements list specified 'openmotif21-2.1.30-11.RHEL4.4, so let's try ...
    [root@<my server> pkgs]# rpm -i openmotif22-2.2.3-18.x86_64.rpm
    error: Failed dependencies:
    libXp.so.6()(64bit) is needed by openmotif22-2.2.3-18.x86_64
    [root@<my server> pkgs]# ls -l pdksh*
    ls: pdksh*: No such file or directory
    [root@<my server> pkgs]# ls -l gnome-libs*
    ls: gnome-libs*: No such file or directory
    [root@<my server> pkgs]# ls -l xscreensaver*
    ls: xscreensaver*: No such file or directory
    BTW, I know I should be some 'privileged' user other than root, but am not sure how to create such a user. I do have a normal user account for myself. How would I go about making it 'privileged', and what privileges would that have. More importantly, what would it not have that root does?

  • Qpkg somehow forgot all its installed packages

    I'm not quite sure how I screwed this up, but qpkg has lost its list of previously installed packages (usefull for updating them). Is there a way to rebuild this list?

    Yeah it looks like qpkg stores PKGBUILD, the files needed to be built and the filelist under ~/qpkg.cache
    for bashburn, it looks like:
    insgesamt 96K
    -rw-r--r--  1 jakob users  74K  8. Mai 15:54 BashBurn-1.7.1.tar.gz
    -rw-r--r--  1 jakob users  864  8. Mai 15:54 PKGBUILD
    -rw-r--r--  1 jakob users  403  8. Mai 15:54 bashburnrc.patch
    -rw-r--r--  1 jakob users 4,9K  8. Mai 15:54 filelist
    /home/jakob/qpkg.cache/bashburn
    So now you know, what you have to do to make it believe you installed some pkgs via qpkg!
    (i just renamed a dir and did a qpkg -u. qpkg then searched for the new dir as package)

  • Powershell script to get list of softwares installed as shown in registry on all the remote systems in a txt file

    Hi
    I need to know the command for getting list of softwares installed on all the remote systems in network  which are existing in their respective registry like HKEY_LOCAL_MACHINE\SOFTWARE of all other systems

    Hey
    Sorry this isn't powershell but it should do the job if you want to use it. The problem with using the Win32_Product WMI Class to enumerate the installed software (especially on Windows 2000 & 2003 Servers) is that the WMI class is NOT installed by default. Here is a VBScript i wrote to read a list of hostnames from a text file named "ComputerNames.txt" from the scripts directory and attempt to remotely enumerate all subkeys within the following registry key
    HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
    For each subkey enumerated it will attempt to read the value of the "DisplayName" key and output the results to a csv file.
    (the results should be the same as what you would see when you open Add/Remove Programs)
    Hope that helps
    Cheers
    Matt :)
    'Script Name : CheckInstalledSoftware.vbs
    'Author : Matthew Beattie
    'Created : 01/03/10
    'Description : This script reads a list of hostnames from a text file name "ComputerNames.txt" in the scripts working
    ' : directory. For each hostName it requests an ICMP response and if successfull attempts a remote registry
    ' : connection to enumerate and read the registry values of installed software. All results are logged to the
    ' : scripts working directory in a log file per computer name.
    'Initialization Section
    Option Explicit
    Const ForReading = 1
    Const ForAppending = 8
    Dim objFSO, wshNetwork, wshShell, hostName
    Dim scriptBaseName, scriptPath, scriptLogPath
    On Error Resume Next
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set wshShell = CreateObject("WScript.Shell")
    Set wshNetwork = CreateObject("WScript.Network")
    scriptBaseName = objFSO.GetBaseName(Wscript.ScriptFullName)
    scriptPath = objFSO.GetFile(Wscript.ScriptFullName).ParentFolder.Path
    scriptLogPath = scriptPath & "\" & IsoDateString(Now)
    If Err.Number <> 0 Then
    Wscript.Quit
    End If
    On Error Goto 0
    'Main Processing Section
    On Error Resume Next
    PromptStart
    ProcessScript
    If Err.Number <> 0 Then
    Wscript.Quit
    End If
    PromptEnd
    On Error Goto 0
    'Functions Processing Section
    'Name : ProcessScript -> Primary Function that controls all other script processing.
    'Parameters : None ->
    'Return : None ->
    Function ProcessScript
    Dim fileSpec, hostNames, regKey, keyName, results, result
    keyName = "DisplayName"
    regKey = "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall"
    fileSpec = scriptPath & "\ComputerNames.txt"
    'Ensure the "ComputerNames.txt" file exists within the scripts working directory.
    If Not objFSO.FileExists(fileSpec) Then
    MsgBox DQ(fileSpec) & " does not exist!", vbCritical, scriptBaseName
    Exit Function
    End If
    'Read the list of hostNames from the "ComputerNames.txt" text file within the scripts working directory.
    If Not GetScriptInput(hostNames, fileSpec) Then
    Exit Function
    End If
    'Attempt to read the registry from each hostname read from the list of hostnames.
    For Each hostName In hostNames
    Do
    'Ensure the system responds to an ICMP request.
    If Not CheckConnection(hostName) Then
    LogMessage 2, "Failed to respond to an ICMP Request"
    Exit Do
    End If
    'Enumerate and read the registry values.
    If Not GetRegValues(results, hostName, keyName, regKey) Then
    Exit Do
    End If
    'Log the registry values results.
    For Each result In results
    LogMessage 0, result
    Next
    Loop Until True
    Next
    End Function
    'Name : GetScriptInput -> Reads a text file to be used as Script input.
    'Parameters : items -> Output: An array of items in the script input file.
    ' : fileSpec -> The full folder Path, file Name and extention of the script input file.
    'Return : GetScriptInput -> Returns an array of items for script input and True or False.
    Function GetScriptInput(items, fileSpec)
    Dim scriptInputFile, itemsDict, item
    GetScriptInput = False
    Set itemsDict = NewDictionary
    If Not objFSO.FileExists(fileSpec) Then
    Exit Function
    End If
    On Error Resume Next
    Set scriptInputFile = objFSO.OpenTextFile(fileSpec, ForReading)
    If Err.Number <> 0 Then
    Exit Function
    End If
    On Error Goto 0
    Do Until scriptInputFile.AtEndOfStream
    item = scriptInputFile.ReadLine
    If item = "" Then
    Exit Function
    End If
    If Not itemsDict.Exists(item) Then
    itemsDict.Add item, ""
    End If
    Loop
    items = itemsDict.Keys
    GetScriptInput = True
    End Function
    'Name : CheckConnection -> Checks a remote host using WMI ping.
    'Parameters : hostName -> Hostname of computer system to verify network connectivity with.
    'Return : Boolean -> True if hostname replies. False otherwise.
    Function CheckConnection(hostName)
    Dim ping, response, replied
    Set ping = GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery _
    ("select * from Win32_PingStatus where address = '" & hostName & "'")
    For each response in ping
    replied = Not IsNull(response.StatusCode) And response.StatusCode = 0
    Next
    CheckConnection = replied
    End Function
    'Name : GetRegValues -> Enumerates the subkeys in a registry key and the values of the keyName.
    'Parameters : hostName -> String containing the hostName of the system to enumerate the registry keys on.
    ' : keyName -> String containing the name of the registry key value to enumerate.
    ' : regKey -> Registry key to enumerate subkey names for.
    'Return : GetRegValues -> Returns True and an Array containing the registry key values otherwise False.
    Function GetRegValues(results, hostName, keyName, regKey)
    Dim objReg, regDict, rootKey, hive, keyValue, subKeys, i
    GetRegValues = False
    rootKey = regKey
    hive = GetRegistryHiveFromKey(rootKey)
    On Error Resume Next
    If hive <> 0 Then
    'Create a dictionary object to store the registry values in.
    Set regDict = NewDictionary
    If Err.Number <> 0 Then
    LogMessage 1, "Creating Dictionary Object"
    Exit Function
    End If
    'Connect to the remote registry.
    Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & hostName & "\root\default:StdRegProv")
    If Err.Number <> 0 Then
    LogMessage 1, "Creating StdRegProv Object"
    Exit Function
    End If
    'Enumerate the subkey names within the regKey paramater.
    objReg.EnumKey hive, rootKey, subKeys
    If Err.Number <> 0 Then
    LogMessage 1, "Enumerating Registry Keys"
    Exit Function
    End If
    'Ensure the results are an array.
    If Not IsArray(subKeys) Then
    subKeys = Array(subKeys)
    End If
    'Read the registry key value for each subkey. Add the results to the dictionary.
    For i = 0 to UBound(subKeys)
    objReg.GetStringValue hive, rootKey & "\" & subKeys(i), keyName, keyValue
    If Err.Number = 0 Then
    If Not IsNull(keyValue) Then
    regDict(regDict.Count) = keyValue
    End If
    Else
    Err.Clear
    End If
    Next
    End If
    On Error Goto 0
    results = regDict.Items
    GetRegValues = True
    End Function
    'Name : GetRegistryHiveFromKey -> Get the hive ID from a registry key name.
    'Parameters: Input/Output: key -> Registry key name. Hive name will be removed.
    'Return : GetRegistryHiveFromKey -> ID of hive of given key name (0 if invalid).
    ' : -> The hive name is removed from the input key name.
    Function GetRegistryHiveFromKey (key)
    Dim pos, hive
    pos = Instr (key, "\")
    If pos = 0 Then
    pos = Len(key) + 1
    End If
    hive = Left (UCase (Left (key, pos - 1)) & " ", 4)
    key = Mid (key, pos + 1)
    GetRegistryHiveFromKey = Array(0, &H80000000, &H80000001, &H80000002, &H80000003, &H80000005, &H80000006) _
    (Int ((Instr("HKCR,HKCU,HKLM,HKU ,HKCC,HKDD", hive) + 4) / 5))
    End Function
    'Name : NewDictionary -> Creates a new dictionary object.
    'Parameters : None ->
    'Return : NewDictionary -> Returns a dictionary object.
    Function NewDictionary
    Dim dict
    Set dict = CreateObject("scripting.Dictionary")
    dict.CompareMode = vbTextCompare
    Set NewDictionary = dict
    End Function
    'Name : DQ -> Place double quotes around a string and replace double quotes
    ' : -> within the string with pairs of double quotes.
    'Parameters : stringValue -> String value to be double quoted
    'Return : DQ -> Double quoted string.
    Function DQ (ByVal stringValue)
    If stringValue <> "" Then
    DQ = """" & Replace (stringValue, """", """""") & """"
    Else
    DQ = """"""
    End If
    End Function
    'Name : IsoDateTimeString -> Generate an ISO date and time string from a date/time value.
    'Parameters : dateValue -> Input date/time value.
    'Return : IsoDateTimeString -> Date and time parts of the input value in "yyyy-mm-dd hh:mm:ss" format.
    Function IsoDateTimeString(dateValue)
    IsoDateTimeString = IsoDateString (dateValue) & " " & IsoTimeString (dateValue)
    End Function
    'Name : IsoDateString -> Generate an ISO date string from a date/time value.
    'Parameters : dateValue -> Input date/time value.
    'Return : IsoDateString -> Date part of the input value in "yyyy-mm-dd" format.
    Function IsoDateString(dateValue)
    If IsDate(dateValue) Then
    IsoDateString = Right ("000" & Year (dateValue), 4) & "-" & _
    Right ( "0" & Month (dateValue), 2) & "-" & _
    Right ( "0" & Day (dateValue), 2)
    Else
    IsoDateString = "0000-00-00"
    End If
    End Function
    'Name : IsoTimeString -> Generate an ISO time string from a date/time value.
    'Parameters : dateValue -> Input date/time value.
    'Return : IsoTimeString -> Time part of the input value in "hh:mm:ss" format.
    Function IsoTimeString(dateValue)
    If IsDate(dateValue) Then
    IsoTimeString = Right ("0" & Hour (dateValue), 2) & ":" & _
    Right ("0" & Minute (dateValue), 2) & ":" & _
    Right ("0" & Second (dateValue), 2)
    Else
    IsoTimeString = "00:00:00"
    End If
    End Function
    'Name : LogMessage -> Parses a message to the log file based on the messageType.
    'Parameters : messageType -> Integer representing the messageType.
    ' : -> 0 = message (writes to a ".csv" file)
    ' : -> 1 = error, (writes to a ".err" file including information relating to the error object.)
    ' : -> 2 = error message (writes to a ".err" file without information relating to the error object.)
    ' : message -> String containing the message to write to the log file.
    'Return : None ->
    Function LogMessage(messageType, message)
    Dim prefix, logType
    prefix = hostName
    Select Case messageType
    Case 0
    logType = "csv"
    Case 1
    logType = "err"
    message = "Error " & Err.Number & " (Hex " & Hex(Err.Number) & ") " & message & ". " & Err.Description
    Case Else
    LogType = "err"
    End Select
    If Not LogToCentralFile(scriptLogPath & "." & logType, hostName & "," & message) Then
    Exit Function
    End If
    End Function
    'Name : LogToCentralFile -> Attempts to Appends information to a central file.
    'Parameters : logSpec -> Folder path, file name and extension of the central log file to append to.
    ' : message -> String to include in the central log file
    'Return : LogToCentralFile -> Returns True if Successfull otherwise False.
    Function LogToCentralFile(logSpec, message)
    Dim attempts, objLogFile
    LogToCentralFile = False
    'Attempt to append to the central log file up to 10 times, as it may be locked by some other system.
    attempts = 0
    On Error Resume Next
    Do
    Set objLogFile = objFSO.OpenTextFile(logSpec, ForAppending, True)
    If Err.Number = 0 Then
    objLogFile.WriteLine message
    objLogFile.Close
    LogToCentralFile = True
    Exit Function
    End If
    Randomize
    Wscript.sleep 1000 + Rnd * 100
    attempts = attempts + 1
    Loop Until attempts >= 10
    On Error Goto 0
    End Function
    'Name : PromptStart -> Prompt when script starts.
    'Parameters : None ->
    'Return : None ->
    Function PromptStart
    MsgBox "Now processing the " & DQ(Wscript.ScriptName) & " script.", vbInformation, scriptBaseName
    End Function
    'Name : PromptEnd -> Prompts when script has completed.
    'Parameters : None ->
    'Return : None ->
    Function PromptEnd
    MsgBox "The " & DQ(Wscript.ScriptName) & " script has completed successfully.", vbInformation, scriptBaseName
    End Function
    'Name : PromptError -> Prompts when an unexpected script error occurs.
    'Parameters : None ->
    'Return : None ->
    'Function PromptEnd
    ' MsgBox "Error " & Err.Number & " (Hex " & Hex(Err.Number) & "). " & Err.Description, vbCritical, scriptBaseName
    'End Function

  • Unexpected error when running Python scripts?

    I always get this crash when I try to run python scripts. Anyone know what is causing this or how to fix it?
    Process:         Python [8022]
    Path:            /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/C ontents/MacOS/Python
    Identifier:      Python
    Version:         2.7.2 (2.7.2)
    Code Type:       X86-64 (Native)
    Parent Process:  ??? [1]
    User ID:         501
    Date/Time:       2012-11-23 05:13:46.990 -0700
    OS Version:      Mac OS X 10.8.2 (12C60)
    Report Version:  10
    Interval Since Last Report:          62859 sec
    Crashes Since Last Report:           6
    Per-App Crashes Since Last Report:   4
    Anonymous UUID:                      9A83E25A-0D91-6DC9-960B-E7126A515A89
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00007faa1b19ad5e
    VM Regions Near 0x7faa1b19ad5e:
        MALLOC_TINY            00007faa1b000000-00007faa1b100000 [ 1024K] rw-/rwx SM=COW 
    -->
        MALLOC_SMALL           00007faa1b800000-00007faa1c800000 [ 16.0M] rw-/rwx SM=COW 
    Application Specific Information:
    *** single-threaded process forked ***
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_c.dylib                       0x00007fff87fafde1 tiny_free_list_add_ptr + 112
    1   libsystem_c.dylib                       0x00007fff87fb354e tiny_malloc_from_free_list + 1078
    2   libsystem_c.dylib                       0x00007fff87fb3ad8 szone_malloc_should_clear + 971
    3   libsystem_c.dylib                       0x00007fff87fa6153 malloc_zone_malloc + 71
    4   libsystem_c.dylib                       0x00007fff87fa6c61 realloc + 82
    5   org.python.python                       0x00000001065e6ac9 0x10658b000 + 375497
    6   org.python.python                       0x00000001065e4b23 0x10658b000 + 367395
    7   org.python.python                       0x00000001065e6646 0x10658b000 + 374342
    8   org.python.python                       0x00000001065a4494 PyEval_EvalFrameEx + 8967
    9   org.python.python                       0x00000001065a2147 PyEval_EvalCodeEx + 1934
    10  org.python.python                       0x00000001065dbd7a 0x10658b000 + 331130
    11  org.python.python                       0x000000010659a6c6 PyObject_Call + 97
    12  org.python.python                       0x00000001065b79bf 0x10658b000 + 182719
    13  org.python.python                       0x000000010659a6c6 PyObject_Call + 97
    14  org.python.python                       0x00000001065a8018 PyEval_CallObjectWithKeywords + 177
    15  org.python.python                       0x00000001065ba46e PyCodec_Encode + 78
    16  org.python.python                       0x0000000106633978 PyUnicodeUCS2_AsEncodedString + 141
    17  org.python.python                       0x00000001065c232f 0x10658b000 + 226095
    18  org.python.python                       0x00000001065c0c91 0x10658b000 + 220305
    19  org.python.python                       0x00000001065bfc43 0x10658b000 + 216131
    20  org.python.python                       0x00000001065bff0d PyArg_ParseTuple + 143
    21  _socket.so                              0x0000000106b2c7f3 0x106b28000 + 18419
    22  _socket.so                              0x0000000106b2b743 0x106b28000 + 14147
    23  org.python.python                       0x00000001065a2f72 PyEval_EvalFrameEx + 3557
    24  org.python.python                       0x00000001065a2147 PyEval_EvalCodeEx + 1934
    25  org.python.python                       0x00000001065dbd7a 0x10658b000 + 331130
    26  org.python.python                       0x000000010659a6c6 PyObject_Call + 97
    27  _functools.so                           0x00000001068d34a2 0x1068d2000 + 5282
    28  org.python.python                       0x000000010659a6c6 PyObject_Call + 97
    29  org.python.python                       0x00000001065a478d PyEval_EvalFrameEx + 9728
    30  org.python.python                       0x00000001065a2147 PyEval_EvalCodeEx + 1934
    31  org.python.python                       0x00000001065a88df 0x10658b000 + 121055
    32  org.python.python                       0x00000001065a463a PyEval_EvalFrameEx + 9389
    33  org.python.python                       0x00000001065a2147 PyEval_EvalCodeEx + 1934
    34  org.python.python                       0x00000001065a88df 0x10658b000 + 121055
    35  org.python.python                       0x00000001065a463a PyEval_EvalFrameEx + 9389
    36  org.python.python                       0x00000001065a8869 0x10658b000 + 120937
    37  org.python.python                       0x00000001065a463a PyEval_EvalFrameEx + 9389
    38  org.python.python                       0x00000001065a2147 PyEval_EvalCodeEx + 1934
    39  org.python.python                       0x00000001065a19b3 PyEval_EvalCode + 54
    40  org.python.python                       0x00000001065ddc70 0x10658b000 + 339056
    41  org.python.python                       0x00000001065ddd3c PyRun_FileExFlags + 165
    42  org.python.python                       0x00000001065dd726 PyRun_SimpleFileExFlags + 410
    43  org.python.python                       0x0000000106601e27 Py_Main + 2715
    44  libdyld.dylib                           0x00007fff8fe447e1 start + 1
    Thread 1:: Dispatch queue: com.apple.libsystem_network
    0   libsystem_c.dylib                       0x00007fff87fb32dd tiny_malloc_from_free_list + 453
    1   libsystem_c.dylib                       0x00007fff87fb3ad8 szone_malloc_should_clear + 971
    2   libsystem_c.dylib                       0x00007fff87fa6153 malloc_zone_malloc + 71
    3   libsystem_c.dylib                       0x00007fff87fa6ba7 malloc + 41
    4   libsystem_c.dylib                       0x00007fff8801026d tre_make_trans + 412
    5   libsystem_c.dylib                       0x00007fff8800ff59 tre_ast_to_tnfa + 145
    6   libsystem_c.dylib                       0x00007fff8800ff2f tre_ast_to_tnfa + 103
    7   libsystem_c.dylib                       0x00007fff8800e30b tre_compile + 4627
    8   libsystem_c.dylib                       0x00007fff8800c79f regncomp_l + 346
    9   libsystem_c.dylib                       0x00007fff87f9b278 __asl_parse_time_block_invoke_0 + 151
    10  libdispatch.dylib                       0x00007fff8a6ce0b6 _dispatch_client_callout + 8
    11  libdispatch.dylib                       0x00007fff8a6ce041 dispatch_once_f + 50
    12  libsystem_c.dylib                       0x00007fff87f9ad57 asl_parse_time + 61
    13  libsystem_c.dylib                       0x00007fff87fa139a _asl_time_string + 72
    14  libsystem_c.dylib                       0x00007fff87fa130e asl_msg_to_string_raw + 322
    15  libsystem_c.dylib                       0x00007fff87f99c77 _asl_send_message + 1273
    16  libsystem_c.dylib                       0x00007fff87f99412 _asl_lib_vlog + 513
    17  libsystem_c.dylib                       0x00007fff87f86839 vsyslog + 107
    18  libdispatch.dylib                       0x00007fff8a6d3cd1 _dispatch_log + 224
    19  libdispatch.dylib                       0x00007fff8a6cfba0 _dispatch_update_kq + 430
    20  libdispatch.dylib                       0x00007fff8a6cf9ee _dispatch_mgr_wakeup + 16
    21  libdispatch.dylib                       0x00007fff8a6cee65 _dispatch_wakeup + 28
    22  libdispatch.dylib                       0x00007fff8a6cee10 _dispatch_queue_push_list_slow2 + 33
    23  libdispatch.dylib                       0x00007fff8a6ceecd _dispatch_wakeup + 132
    24  libdispatch.dylib                       0x00007fff8a6cf027 _dispatch_resume_slow + 17
    25  libxpc.dylib                            0x00007fff8ea12ff2 _xpc_connection_listen_for_reply + 198
    26  libxpc.dylib                            0x00007fff8ea13ccf xpc_connection_send_message_with_reply + 122
    27  libsystem_network.dylib                 0x00007fff9163bd8c __net_helper_get_settings_block_invoke_0 + 181
    28  libdispatch.dylib                       0x00007fff8a6d1f01 _dispatch_call_block_and_release + 15
    29  libdispatch.dylib                       0x00007fff8a6ce0b6 _dispatch_client_callout + 8
    30  libdispatch.dylib                       0x00007fff8a6cf47f _dispatch_queue_drain + 235
    31  libdispatch.dylib                       0x00007fff8a6cf2f1 _dispatch_queue_invoke + 52
    32  libdispatch.dylib                       0x00007fff8a6cf1c3 _dispatch_worker_thread2 + 249
    33  libsystem_c.dylib                       0x00007fff87f8fcab _pthread_wqthread + 404
    34  libsystem_c.dylib                       0x00007fff87f7a171 start_wqthread + 13
    Thread 2:
    0   libsystem_kernel.dylib                  0x00007fff85af06d6 __workq_kernreturn + 10
    1   libsystem_c.dylib                       0x00007fff87f8feec _pthread_workq_return + 25
    2   libsystem_c.dylib                       0x00007fff87f8fcb3 _pthread_wqthread + 412
    3   libsystem_c.dylib                       0x00007fff87f7a171 start_wqthread + 13
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x00000000000fffe0  rbx: 0x00000000000009ac  rcx: 0x00007faa1b000000  rdx: 0x00007faa1b09ad80
      rdi: 0x0000000106585000  rsi: 0x00000001066fea00  rbp: 0x00007fff5967ced0  rsp: 0x00007fff5967cec8
       r8: 0x000000000000003f   r9: 0x000007faa1b09ad8  r10: 0x00007faa1b0b6300  r11: 0x000000000000fffe
      r12: 0x0000000000000002  r13: 0x00007faa1b09ad60  r14: 0x00000000066efffe  r15: 0x00000001066fea00
      rip: 0x00007fff87fafde1  rfl: 0x0000000000010202  cr2: 0x00007faa1b19ad5e
    Logical CPU: 0
    Binary Images:
           0x106581000 -        0x106581fff  org.python.python (2.7.2 - 2.7.2) <A3CE5618-7FE0-3307-B2C1-DE2661C936B2> /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/C ontents/MacOS/Python
           0x10658b000 -        0x106698fff  org.python.python (2.7.2 - 2.7.2) <B2E5B3C9-2D7C-37D7-B23D-84DEF8DDAF28> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
           0x10689b000 -        0x10689efff  operator.so (60.3) <16E539EB-683E-3BDF-83AA-77ED26146560> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/operator.so
           0x1068d2000 -        0x1068d3fff  _functools.so (60.3) <610F4A5F-CEE5-3353-94CD-F586D4F2DAD0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_functools.so
           0x1068d7000 -        0x1068d8fff  _locale.so (60.3) <D7B03EB6-5126-3306-8699-D3816B044AAB> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_locale.so
           0x1068dc000 -        0x1068ddfff  time.so (60.3) <B81E8A2D-38E3-3BA7-AA2F-7A543F20DACF> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/time.so
           0x106924000 -        0x106926fff  select.so (60.3) <191F03CF-4038-38AF-A0BA-22AC770298A0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/select.so
           0x10692c000 -        0x10692dfff  fcntl.so (60.3) <5E2DBA68-27EB-3589-B7B4-8B7918DC9716> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/fcntl.so
           0x106931000 -        0x106934fff  _struct.so (60.3) <2D1A807F-2084-3CEE-9E4B-DE124502AB69> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_struct.so
           0x10693a000 -        0x10693cfff  binascii.so (60.3) <A96BD9F2-1025-3803-A942-AC8AE48243A9> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/binascii.so
           0x106940000 -        0x106941fff  cStringIO.so (60.3) <F4174A1F-B66E-3986-985C-0632FCD266F9> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/cStringIO.so
           0x106946000 -        0x106949fff  _collections.so (60.3) <20EAC750-00E1-3216-BB1F-472C0CEA6118> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_collections.so
           0x10698f000 -        0x106995fff  itertools.so (60.3) <C273B16D-A69E-3D3C-B3F5-43F6B0BC333F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/itertools.so
           0x10699e000 -        0x10699efff  _bisect.so (60.3) <BEAA36C6-86EF-3272-9F95-29AED2B60109> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_bisect.so
           0x1069a2000 -        0x1069a3fff  _heapq.so (60.3) <C02D109C-B83B-385E-86E9-04F551749448> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_heapq.so
           0x1069a8000 -        0x1069b3ff7  datetime.so (60.3) <B359E7F5-D6D1-343C-A770-F1186D123691> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/datetime.so
           0x1069bc000 -        0x1069c5fff  _sqlite3.so (60.3) <C0006BFF-3590-3B8E-A9B5-DECD4A764236> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_sqlite3.so
           0x106acf000 -        0x106ad3fff  math.so (60.3) <15868E58-734E-3A35-A4C2-AC4625F37902> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/math.so
           0x106b19000 -        0x106b1afff  _hashlib.so (60.3) <9B8C96E2-6DE6-3830-B300-35C790DA40C7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_hashlib.so
           0x106b1f000 -        0x106b22fff  strop.so (60.3) <33FECDE8-3D85-37A8-95CA-08C1F2B820D4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/strop.so
           0x106b28000 -        0x106b2eff7  _socket.so (60.3) <E186283B-C7D4-3D7E-9198-CD7761B70100> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_socket.so
           0x106b36000 -        0x106b39fff  _ssl.so (60.3) <2AEDA15A-56F4-3E82-9415-297BFE6C8F38> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_ssl.so
           0x106b7f000 -        0x106b7ffff  _scproxy.so (60.3) <43CCA6F3-BA7C-3186-8450-B63D00D8AC6F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_scproxy.so
           0x106bc4000 -        0x106bc8fff  array.so (60.3) <56A0FB1F-7603-3450-AF31-9801D9AB95D5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/array.so
           0x106bce000 -        0x106bcffff  _random.so (60.3) <E2D3E74F-9797-30D4-A9B7-E9FE72564C50> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_random.so
           0x106bd3000 -        0x106bdffff  cPickle.so (60.3) <869D9434-2C00-3EC8-93A1-2A8104957B7E> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/cPickle.so
           0x106c25000 -        0x106c29fff  _json.so (60.3) <5899CF83-4D57-34C0-A01F-DC215C5C26D0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_json.so
           0x106cae000 -        0x106cbffff  _io.so (60.3) <79CDBE7E-1D18-39A6-99AA-CA9466FAD6C2> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_io.so
           0x106d4e000 -        0x106d4efff  grp.so (60.3) <F1C42F13-D323-3F5A-B59E-ACB09DD18ABE> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/grp.so
           0x106fd2000 -        0x106fd4fff  zlib.so (60.3) <987E51DB-7827-3F1A-AD5E-CF58C673E644> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/zlib.so
           0x106fd9000 -        0x106fdffff  pyexpat.so (60.3) <72D45F21-63F8-3EEF-B71D-DC73B0309D55> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/pyexpat.so
           0x107066000 -        0x107077fff  _ctypes.so (60.3) <A4E934BA-B8B3-3CD6-9AA6-78458DEAA491> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_ctypes.so
           0x10740e000 -        0x1074b2ff7  unicodedata.so (60.3) <D2954B53-CE7D-3182-8056-F04F7CAABC6C> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/unicodedata.so
        0x7fff66181000 -     0x7fff661b593f  dyld (210.2.3) <A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld
        0x7fff84fa3000 -     0x7fff8518cfff  com.apple.CoreFoundation (6.8 - 744.12) <EF002794-DAEF-31C6-866C-E3E3AC387A9F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        0x7fff851b6000 -     0x7fff853b6fff  libicucore.A.dylib (491.11.1) <CC318A27-878A-38CE-9292-1B98353FA9C7> /usr/lib/libicucore.A.dylib
        0x7fff85724000 -     0x7fff85729fff  libcompiler_rt.dylib (30) <08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
        0x7fff85ade000 -     0x7fff85af9ff7  libsystem_kernel.dylib (2050.18.24) <C0535565-35D1-31A7-A744-63D9F10F12A4> /usr/lib/system/libsystem_kernel.dylib
        0x7fff85dc3000 -     0x7fff85dcefff  libsystem_notify.dylib (98.5) <C49275CC-835A-3207-AFBA-8C01374927B6> /usr/lib/system/libsystem_notify.dylib
        0x7fff861ed000 -     0x7fff861eeff7  libSystem.B.dylib (169.3) <365477AB-D641-389D-B8F4-A1FAE9657EEE> /usr/lib/libSystem.B.dylib
        0x7fff86617000 -     0x7fff86625fff  libcommonCrypto.dylib (60026) <2D6537F5-1B5E-305C-A1CF-D1FA80CA3939> /usr/lib/system/libcommonCrypto.dylib
        0x7fff87f30000 -     0x7fff87f38fff  liblaunch.dylib (442.26.2) <2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
        0x7fff87f79000 -     0x7fff88045fe7  libsystem_c.dylib (825.25) <8CBCF9B9-EBB7-365E-A3FF-2F3850763C6B> /usr/lib/system/libsystem_c.dylib
        0x7fff88046000 -     0x7fff88058ff7  libz.1.dylib (43) <2A1551E8-A272-3DE5-B692-955974FE1416> /usr/lib/libz.1.dylib
        0x7fff88134000 -     0x7fff88159ff7  libc++abi.dylib (24.4) <E7BD9363-1D25-3551-A68A-2E2FF6ABECD7> /usr/lib/libc++abi.dylib
        0x7fff88221000 -     0x7fff88272ff7  com.apple.SystemConfiguration (1.12.2 - 1.12.2) <E095637C-457F-3D8F-AE32-A032F9D5A46C> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
        0x7fff8835f000 -     0x7fff8838dff7  libsystem_m.dylib (3022.6) <B434BE5C-25AB-3EBD-BAA7-5304B34E3441> /usr/lib/system/libsystem_m.dylib
        0x7fff89823000 -     0x7fff8982bff7  libsystem_dnssd.dylib (379.32.1) <62AA0B84-188A-348B-8F9E-3E2DB08DB93C> /usr/lib/system/libsystem_dnssd.dylib
        0x7fff89f9d000 -     0x7fff8a09afff  libsqlite3.dylib (138.1) <ADE9CB98-D77D-300C-A32A-556B7440769F> /usr/lib/libsqlite3.dylib
        0x7fff8a6cc000 -     0x7fff8a6e1ff7  libdispatch.dylib (228.23) <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
        0x7fff8a704000 -     0x7fff8a750ff7  libauto.dylib (185.1) <73CDC482-16E3-3FC7-9BB4-FBA2DA44DBC2> /usr/lib/libauto.dylib
        0x7fff8ac23000 -     0x7fff8ac24fff  libsystem_blocks.dylib (59) <D92DCBC3-541C-37BD-AADE-ACC75A0C59C8> /usr/lib/system/libsystem_blocks.dylib
        0x7fff8acf1000 -     0x7fff8adf3fff  libcrypto.0.9.8.dylib (47) <74F165AD-4572-3B26-B0E2-A97477FE59D0> /usr/lib/libcrypto.0.9.8.dylib
        0x7fff8aeea000 -     0x7fff8b00292f  libobjc.A.dylib (532.2) <90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
        0x7fff8b070000 -     0x7fff8b072fff  com.apple.TrustEvaluationAgent (2.0 - 23) <A97D348B-32BF-3E52-8DF2-59BFAD21E1A3> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/Tru stEvaluationAgent
        0x7fff8b112000 -     0x7fff8b113ff7  libsystem_sandbox.dylib (220) <3C3B03CF-C525-3CB3-8557-62E91B93AC95> /usr/lib/system/libsystem_sandbox.dylib
        0x7fff8ba1a000 -     0x7fff8ba1bff7  libdnsinfo.dylib (453.18) <E7595861-ECF9-336E-9901-BED2620FAA80> /usr/lib/system/libdnsinfo.dylib
        0x7fff8bbfa000 -     0x7fff8bc62ff7  libc++.1.dylib (65.1) <20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib
        0x7fff8c0fb000 -     0x7fff8c132ff7  libssl.0.9.8.dylib (47) <923945E6-C489-3406-903B-A362410753F8> /usr/lib/libssl.0.9.8.dylib
        0x7fff8cd20000 -     0x7fff8cd56fff  libsystem_info.dylib (406.17) <4FFCA242-7F04-365F-87A6-D4EFB89503C1> /usr/lib/system/libsystem_info.dylib
        0x7fff8d244000 -     0x7fff8d249fff  libcache.dylib (57) <65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
        0x7fff8ea07000 -     0x7fff8ea29ff7  libxpc.dylib (140.41) <FAC04D8B-680E-325F-8F0C-DD69859D0E01> /usr/lib/system/libxpc.dylib
        0x7fff8eadd000 -     0x7fff8eb2cff7  libcorecrypto.dylib (106.2) <CE0C29A3-C420-339B-ADAA-52F4683233CC> /usr/lib/system/libcorecrypto.dylib
        0x7fff8eb55000 -     0x7fff8eb57fff  libquarantine.dylib (52) <4BE2E642-A14F-340A-B482-5BD2AEFD9C24> /usr/lib/system/libquarantine.dylib
        0x7fff8f0ec000 -     0x7fff8f0f2fff  libmacho.dylib (829) <BF332AD9-E89F-387E-92A4-6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
        0x7fff8fe42000 -     0x7fff8fe45ff7  libdyld.dylib (210.2.3) <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
        0x7fff8fe93000 -     0x7fff8fe95ff7  libunc.dylib (25) <92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
        0x7fff8fe96000 -     0x7fff8fe9dfff  libcopyfile.dylib (89) <876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
        0x7fff9022f000 -     0x7fff90230fff  libffi.dylib (18) <D20FE81C-271C-3446-ABC8-50B6A6F5BEA4> /usr/lib/libffi.dylib
        0x7fff904f0000 -     0x7fff9050bff7  libexpat.1.dylib (12) <95D59F1F-0A5C-3F33-BA97-26F7D796CE7A> /usr/lib/libexpat.1.dylib
        0x7fff908e2000 -     0x7fff908e3fff  libDiagnosticMessagesClient.dylib (8) <8548E0DC-0D2F-30B6-B045-FE8A038E76D8> /usr/lib/libDiagnosticMessagesClient.dylib
        0x7fff90c13000 -     0x7fff90c14ff7  libremovefile.dylib (23.1) <DBBFAF35-AC78-3856-92F6-6E4FD9DF14A2> /usr/lib/system/libremovefile.dylib
        0x7fff912c0000 -     0x7fff912c6ff7  libunwind.dylib (35.1) <21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
        0x7fff91562000 -     0x7fff915cbfff  libstdc++.6.dylib (56) <EAA2B53E-EADE-39CF-A0EF-FB9D4940672A> /usr/lib/libstdc++.6.dylib
        0x7fff915cc000 -     0x7fff915ccfff  libkeymgr.dylib (25) <CC9E3394-BE16-397F-926B-E579B60EE429> /usr/lib/system/libkeymgr.dylib
        0x7fff91635000 -     0x7fff91643ff7  libsystem_network.dylib (77.10) <0D99F24E-56FE-380F-B81B-4A4C630EE587> /usr/lib/system/libsystem_network.dylib
    External Modification Summary:
      Calls made by other processes targeting this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by all processes on this machine:
        task_for_pid: 5843
        thread_create: 1
        thread_set_state: 0
    VM Region Summary:
    ReadOnly portion of Libraries: Total=67.5M resident=24.5M(36%) swapped_out_or_unallocated=43.0M(64%)
    Writable regions: Total=66.6M written=11.4M(17%) resident=19.8M(30%) swapped_out=0K(0%) unallocated=46.8M(70%)
    REGION TYPE                      VIRTUAL
    ===========                      =======
    MALLOC                             55.5M
    MALLOC guard page                    32K
    STACK GUARD                        56.0M
    Stack                              10.6M
    VM_ALLOCATE                          20K
    __DATA                             1924K
    __LINKEDIT                         53.6M
    __TEXT                             13.9M
    __UNICODE                           544K
    shared memory                        12K
    ===========                      =======
    TOTAL                             192.0M
    Model: MacBookAir4,2, BootROM MBA41.0077.B0F, 2 processors, Intel Core i7, 1.8 GHz, 4 GB, SMC 1.73f65
    Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xE9), Broadcom BCM43xx 1.0 (5.106.98.81.22)
    Bluetooth: Version 4.0.9f33 10885, 2 service, 18 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en0
    Serial ATA Device: APPLE SSD SM256C, 251 GB
    USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfd100000 / 2
    USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8404, 0xfd110000 / 3
    USB Device: FaceTime Camera (Built-in), apple_vendor_id, 0x850a, 0xfa200000 / 3
    USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfa100000 / 2
    USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x024c, 0xfa120000 / 5
    USB Device: BRCM20702 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821f, 0xfa113000 / 8

    I guess you could say Cheetah is in stable release since 2010 as that was when it was last updated. Python has changed considerably since then.
    Pypl.org shows a list of available packages by ascending Python version. By the time one looks for Cheetah support in Python 2.6, it is strictly Linux. In the Python 2.7 section, there is no Cheetah package listed at all.
    In my estimation, development on Cheetah has been abandoned, and it remains incompatible with Python 2.7.2 as installed on OS X. You should abandon Cheetah. Look at Jinja2, or Django.
    OS X still uses Python scripts for some system activity. If the system version of Python gets messed up with an incompatible module, these system python scripts are compromised too.
    Seriously, look at Pythonbrew. It allows you to create full-blown Python installs and switch between versions and virtual environments.

  • Script for downloading(svn) and install E17

    I've been working on a script that download for the svn repository e17, compiler and install. I've made this script more as a to lear more about bash script. You can do the same thing as my script with yaourt. I hope someone might need it.
    #!/bin/bash
    # Title: Arch E17 svn #
    # Auther: Kamil MIklaszewski ([email protected]) #
    # Date: 2008-12-19 19:10 #
    # Licence: GPL #
    # This program is free software; you can redistribute it and/or modify #
    # it under the terms of the GNU General Public License as published by #
    # the Free Software Foundation; either version 2 of the License, or #
    # (at your option) any later version. #
    # This program is distributed in the hope that it will be useful, #
    # but WITHOUT ANY WARRANTY; without even the implied warranty of #
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
    # GNU General Public License for more details. #
    # You should have received a copy of the GNU General Public License #
    # along with this program; if not, write to the Free Software #
    # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, #
    # MA 02110-1301, USA. #
    # Version: 1.0 #
    # Description: This script was writen for Archlinux. It will download e17 #
    # from the svn repository and it will do a full installation. #
    # This script also take care of the dependency for all of the #
    # programs that are installed with e17. #
    # TODO: For version 1.0 #
    # -have the scipt use dialog #
    # -make the script more autamatic #
    # Change Log: *2008-12-19 #
    # -creation of script #
    # Function name: prep
    # Function paramiter(s): none
    # Function description: This function prepers the envirement to run
    # the rest of the script
    prep()
    #make a temporery directory and go to it
    mkdir -p ~/arch_e17_svn
    cd ~/arch_e17_svn
    #export this path to compile succesfuly
    export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/
    # Function name: message
    # Function paramiter(s): Word to be printed on the screen
    # Function description: This function print messages on the screen.
    message()
    #print a message to the screen
    echo -e "==>" $*
    # Function name: downloadPackage
    # Function paramiter(s): none
    # Function description: This function go to the user's home
    # directory and downloads e17 from svn repo.
    downloadPackage()
    message "Downloading " $1 " from E17 svn repository."
    #download the specifed package with less text
    svn co --quiet http://svn.enlightenment.org/svn/e/trunk/$1 $1-svn
    # Function name: generalDependencys
    # Function paramiter(s): none
    # Function description: This fuction install the general
    # dependencys.
    generalDependencys()
    message "Installing Dependencys..."
    #list of package needed to be installed
    generalDependencysList=(
    'svn'
    'm4'
    'autoconf'
    'automake'
    'libtool'
    'pkgconfig'
    'texinfo'
    'zlib'
    'libpng'
    'libjpeg'
    'freetype2'
    'xorg'
    'dbus'
    'hal'
    'pam'
    'librsvg'
    'libnotify'
    'curl'
    'openssl'
    'libungif'
    'libtiff'
    'gettext'
    'glibc'
    'glibmm'
    'doxygen'
    'giflib'
    'cairo'
    'libx11'
    'libxext'
    'libxrender'
    'fontconfig'
    'libxcb'
    'sdl'
    'mesa'
    'qt'
    'librsvg'
    'libtiff'
    'directfb'
    #install the dependencys in the list
    sudo pacman -Sq --needed ${generalDependencysList[@]}
    # Function name: installPackage
    # Function paramiter(s): The name of the package to install
    # Function description: This fuction need one paramiter that is
    # the package to configure and install.
    installPackage()
    #change directory to the program to configure and install
    cd ~/arch_e17_svn/$1-svn
    message "Configurating package " $1
    #run the autogen script that will configure and
    #make read to install this program
    ./autogen.sh
    message "Compiling package " $1
    #now compile the source file of the program
    make
    message "Installing package " $1
    #now install the program
    sudo make install
    cleanUp()
    rm -r ~/arch_e17_svn
    # MAIN #
    main()
    #preper the envirement
    prep
    #install the general dependecys using pacman
    generalDependencys
    #list of packages to download and install
    packagesList=(
    'eina'
    'eet'
    'evas'
    'ecore'
    'efreet'
    'embryo'
    'edje'
    'e_dbus'
    'e'
    #loop that gos through the list and downloads the packages
    for package in ${packagesList[@]}
    do
    downloadPackage $package
    message "Done\n"
    done
    #loop that gos through the list and installs the packages
    for package in ${packagesList[@]}
    do
    installPackage $package
    message "Done\n"
    done
    main

    pressh wrote:to not duplicate work I've already created a python script some time ago which you can use to build e17 pacman packages using the community PKGBUILDs: http://dev.archlinux.org/~ronald/e17.html
    I may extend its usage if someone sees any use for it. Either way, just thought I should drop it here.
    is that script any different from a full build through makepkg/yaourt using AUR's Pkgbuilds?
    I tried to use it but i get a list of errors similar to
    cp: impossibile creare il file normale `eina-build/eina/.svn/prop-base/NEWS.svn-
    base': Permission denied
    but if i can use yaourt, why not?
    Edit: sorry, i looked at the python source and realized that it actually just syncs abs and then runs makepkg and namcap for each package. so i guess i'll use yaourt instead (or try to understand why makepkg exits with that error)
    Last edited by pikiweb (2009-06-19 08:48:46)

  • Removing the explicitly installed flag for all dependency packages

    From what I gather, pacman -Rs won't remove any packages marked as explicitly installed, which causes a couple of problems for me:
    Say I need to reinstall all my packages for whatever reason; they'll all be marked as explicitly installed, so from that point on I wouldn't be able to search for orphans.
    There other case I can think of would be when I reinstall a dependency of some package for whatever reason, then later delete that top package with -Rs, that would mean the dependency and anything it depends on would remain on my system even if I don't really need it.
    Does pacman support, or are there any scripts that will go through the package databse and mark all packages that are depended on by other packages as dependencies rather than explicitely installed? Basically reset the explicit flag for anything that isnt a leaf on the tree.

    Hi
    There are 2 ways in doing this, either by report filtering or by formula, i would highly suggest using a report filter, just click the funnel icon in your webi report and drag your flag object then select Not Equal to condition then select 0.
    if you want to use a formula you can type in "=[Person Object] where([flag] = "0")". NOTE: only use "" if your flag is a dimension.
    kindly tell me if I'm missing something.
    Regards,
    -John Vincent

  • Running Python Scripts through Labwindows/CVI

    Hello,
    I'm trying to execute Python scripts through Labwindows/CVI.  I believe I have the correct library for the code to access in my project. I'm getting errors as it can't find "io.h", "stat.h", or "wchar.h" files.  There is another post on this, where a modified pyconfig.h file was provided, however that file does not work for me.  I'm not sure how to obtain the correct files for what I need here.  Is there any dependable method to do this?
    I'm on Windows 7, I'm running CVI version 9.1.1 and Python 2.6.6 (32-bit).  The library file I'm using was proveded as part of the python install, called "Python26.lib".  I zipped and attached the project, but to get it working you have to download Python (http://www.python.org/download/releases/2.6.6/), and point CVI to the "Python.h" header file (in the "include" directory under the "Python26" directory.
    Attachments:
    Test project.zip ‏4 KB

    Where are these .h files located? If you know where these files are located go to Options>>Environment...>>Include Paths... you can add directories that the workspace will look for include files that are not explicitly included in your project.
    Ian M.
    National Instruments

  • How can I use automator to open terminal change directory run a python script?

    Hi all,
    I dont really ever use automator - which may be my big problem - and I am trying to make an apllication that seems fairly simple in theroy. I want something that will lunch terminal, cd to the place where my python script lives and then run it. I have tried a number of suggested ways and can get the terminal to open and the directory to change but cant figure out how to run the script. This is my workflow if i did it manually each time
    - open terminal
    - type cd "the place where my file lives"
    - type python uploadr.py -d
    I can get terminal to open then cd to the right place but cant get the "python uploadr.py -d" to run without an error.
    any help would be very appricated
    thanks!!!
    J

    this is the script I got closest with - I know its something to do with breaking those two commands up but i just dont know how to do it
    on run {input, parameters}
              tell application "Terminal"
      activate
                        if (the (count of the window) = 0) or ¬
                                  (the busy of window 1 = true) then
                                  tell application "System Events"
      keystroke "n" using command down
                                  end tell
                        end if
                        do script "cd /Users/behole/Desktop/FlickrUpload/" & "python uploadr.py -d" in window 1
              end tell
              return input
    end run
    this is the error I get in terminal after I run it
    Last login: Mon Jul 23 15:37:17 on ttys000
    be-holes-MacBook-Pro:~ behole$ cd /Users/behole/Desktop/FlickrUpload/python uploadr.py -d
    -bash: cd: /Users/behole/Desktop/FlickrUpload/python: No such file or directory
    be-holes-MacBook-Pro:~ behole$

Maybe you are looking for