You are not logged in.
Well I'm trying to package internode-applet: http://www.users.on.net/~spohlenz/internode/ and https://bbs.archlinux.org/viewtopic.php?pid=795026
I'm getting this error on makepkg and it's doing my head in. I can't find any reference to ~/.gnome2 in the source tarball, and the --root option doesn't seem to be supported which is just a PITA.
==> Starting package()...
(setup.py:12536): libgnomevfs-WARNING **: Unable to create ~/.gnome2 directory: Permission denied
Fatal Python error: could not import gnomevfs
Aborting...
Here's my package so far:
pkgname=internode-applet
pkgver=1.7
pkgrel=1
pkgdesc="Panel applet for the GNOME 2 desktop environment which allows you to monitor your Internode Personal ADSL Usage"
arch=('any')
license=('GPL')
depends=('python' 'pygtk')
#install="$pkgname.install"
#backup=('etc/nrpe/nrpe.cfg')
url="http://www.users.on.net/~spohlenz/internode/"
source=("http://www.users.on.net/~spohlenz/internode/$pkgname-$pkgver.tar.gz")
md5sums=('fb881f7715df8a73faa9c61e93635e6d')
build() {
msg "Nothing to compile for $pkgname"
}
package() {
cd $srcdir/$pkgname-$pkgver
mkdir -p $pkgdir/usr/share/internode/pixmaps
sed -e 's|/usr/lib/bonobo/servers|lib/bonobo/servers|g' \
-i setup.py
python setup.py install --root="$pkgdir" --prefix=/usr
cp * $pkgdir/usr/share/internode
cp pixmaps/* $pkgdir/usr/share/internode/pixmaps
}
# vim:set ts=2 sw=2 et:
Any help would be great
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
<wild guess>
From the webpage: "you'll need Python, GNOME 2 and the PyGTK"
Your depends mention only two of the three: depends=('python' 'pygtk')
Offline
Add "gnome-python" to the depends.
> pacman -Qo /usr/lib/python2.6/site-packages/gtk-2.0/gnomevfs/__init__.py
/usr/lib/python2.6/site-packages/gtk-2.0/gnomevfs/__init__.py is owned by gnome-python 2.28.1-1
Offline
Your depends mention only two of the three: depends=('python' 'pygtk')
PyGTK should pull Gnome I believe....
Add "gnome-python" to the depends.
Thanks Allan, I'll try this when I get home
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Still no luck -- I added gnome-python, and gnome-vfs as deps (both of which are already installed) and got the same error
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
The error is because you're running under fakeroot and whatever program being invoked wants to write to /root. If you dare run makepkg as root, it gets past this and bombs with another error about yet another missing import:
Traceback (most recent call last):
File "setup.py", line 43, in <module>
from internode.constants import *
File "/home/noclaf/tmp/src/internode-applet-1.7/internode/__init__.py", line 1, in <module>
from internode import InternodeMeter
File "/home/noclaf/tmp/src/internode-applet-1.7/internode/internode.py", line 63, in <module>
import gnome.applet
ImportError: No module named applet
Offline
The error is because you're running under fakeroot and whatever program being invoked wants to write to /root.
Ah yes, I forgot package() runs under fakeroot.... I'll try doing it in build() instead.
Traceback (most recent call last): File "setup.py", line 43, in <module> from internode.constants import * File "/home/noclaf/tmp/src/internode-applet-1.7/internode/__init__.py", line 1, in <module> from internode import InternodeMeter File "/home/noclaf/tmp/src/internode-applet-1.7/internode/internode.py", line 63, in <module> import gnome.applet ImportError: No module named applet
There's some logic is setup.py that is supposed to handle this (I thought). I'll have a closer look when I get home.
Thanks for helping me get one step closer (I hope!)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline