You are not logged in.

#1 2011-01-03 14:37:06

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

[solved] bootchart2-git python problem

hi to all

i can't run pybootchartgui from bootchart2-git package because i get this error:

Traceback (most recent call last):
  File "/usr/bin/pybootchartgui", line 20, in <module>
    from pybootchartgui.main import main
ImportError: No module named pybootchartgui.main

   i think is an incompatibility between python2 (that script) and python3 (in my system)

thanks

PS: to install it i used the PKGBUILD provided in the aur comments

Last edited by nTia89 (2011-01-05 14:32:21)


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#2 2011-01-04 11:04:08

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [solved] bootchart2-git python problem

up


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2011-01-04 20:59:35

sausageandeggs
Member
Registered: 2009-12-05
Posts: 66

Re: [solved] bootchart2-git python problem

Can't remember if I had to alter it or not but here's the PKGBUILD I used and everythings working fine here, if this works ok, maybe give the pkg maintainer a prod.

# Contributor: DuGi <dugi@irc.pl>
pkgname=bootchart2-git
pkgrel=1
pkgver=20101125
pkgdesc="Boot Process Performance Visualization"
arch=(i686 x86_64)
url="http://github.com/mmeeks/bootchart"
license=('GPL')
source=()
md5sums=()
provides=('bootchart2')
conflicts=('bootchart2' 'bootchart')
depends=('busybox' 'pygobject' 'pygtk')
makedepends=('git')
install=bootchart2-git.install

_gitname="bootchart"
_gitroot="git://github.com/mmeeks/${_gitname}.git"


build() {
    cd ${srcdir}
    if [[ -d ${srcdir}/${_gitname}-build ]] ; then
        rm -rf ${srcdir}/${_gitname}-build
    fi
    git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
}

package() {   
    cd ${srcdir}/${_gitname}-build
    sed -i -e 's|python2.6|python2.7|' \
        -e  's|python\b|python2|g'  Makefile
    make
    make DESTDIR="${pkgdir}" install
    sed -i "s|#!/usr/bin/python$|#!/usr/bin/python2|" ${pkgdir}/usr/bin/pybootchartgui
}

Last edited by sausageandeggs (2011-01-04 22:04:41)

Offline

#4 2011-01-04 21:30:44

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] bootchart2-git python problem

sausageandeggs - python (i.e. python3) in your depends array is unnecessary and confusing. pygobject pulls in python2 as a dependency, and that takes of it.

Offline

#5 2011-01-04 22:03:23

sausageandeggs
Member
Registered: 2009-12-05
Posts: 66

Re: [solved] bootchart2-git python problem

Thanks Tomk, Indeed it is, if I remember properly I just edited the original PKGBUILD enough to get it working when i installed this, and didn't do a 'proper' job with it.
Should have really checked over though before posting. Previous post edited and many apologies if I confused anyone.

Offline

#6 2011-01-05 14:32:06

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [solved] bootchart2-git python problem

sausageandeggs wrote:

Thanks Tomk, Indeed it is, if I remember properly I just edited the original PKGBUILD enough to get it working when i installed this, and didn't do a 'proper' job with it.
Should have really checked over though before posting. Previous post edited and many apologies if I confused anyone.

also your doesn't work for me

but modifing it as below http://aur.pastebin.com/qD7xT2xF , now it works perfectly

thanks


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

Board footer

Powered by FluxBB