PDA

View Full Version : Dependencies - installing python?


code177
01-20-2010, 03:21 PM
Hi all..

Having some dependency issues here. I have:

Depends: python2.5, python-gobject, python-xml, python-hildon (>= 0.9.0-1maemo11), python-gtk2, python-dbus, python-osso (>= 0.3-2maemo4)


However, when I install my .deb, and attempt to run my application, I get:

/usr/bin/run-standalone.sh: line 11: python2.5: not found.

A cursory look in /usr/bin also shows there is no python or python2.5 file.

This is on a clean base install of maemo5 with PR 1.1.

I presume I'm doing something wrong with my depends - but what is it? :(

Thanks

mikkov
01-20-2010, 03:24 PM
Did you get any errors installing the deb?

Note that dpkg doesn't install dependencies.

code177
01-20-2010, 03:26 PM
This is on a real device. Deb installs fine with no issues..

First line of the app is:

#!/usr/bin/env python2.5Thanks

mikkov
01-20-2010, 03:33 PM
Possibilities that I can see are that Depends line in package is not the one you wrote, or that dpkg gave you warning about missing dependecies :)

How did you install the package?

code177
01-20-2010, 03:38 PM
Hmm. That sounds plausible. It's probably the former...

I actually installed the package using the "Install" button on the Remote Device Access (http://apu.ndhub.net/devices?method=cas&ticket=ST-179841-exAi15bTnjbAV1PVN6E4IZfxe3mTZtyZ2aH-20) application, which didn't provide any feedback.

dpkg-builder built fine with no errors.

So perhaps it is that Depends is not correct. That being the case - what would I need to put there in order to install python2.5? :)

Thanks!

code177
01-20-2010, 04:08 PM
I have no way of checking right now, but should I replace "python2.5" with "python" ?

That seems counter-intuitive, but it's a guess...

Rob1n
01-20-2010, 04:38 PM
The package name as installed on mine is just "python", so I guess so.

mikkov
01-20-2010, 04:42 PM
I have no way of checking right now, but should I replace "python2.5" with "python" ?

That seems counter-intuitive, but it's a guess...

python and python2.5 should work just fine.

I have no idea how that remote access system works, but my guess is that you package wasn't installed properly (and you probably should as support from forum nokia, since it's their service). You can always install the missing dependecies with apt-get

Slocan
01-20-2010, 04:51 PM
If you're on the device itself, I don't think you should be using run-standalone.sh. Try starting the app without it.

code177
01-21-2010, 12:07 AM
Package: prismicwm
Version: 1.0.6
Section: user/hidden
Priority: Optional
Architecture: armel
Depends: python2.5, python, python-support (>= 0.90.0)
Installed-Size: 300
Maintainer: Iolite Technologies <admin@iolitetech.com>
Description: Wallpaper Management Suite
a wallpaper management suite for existing and new wallpapers.

Above is my control file.. it *installs* fine, icon ends up in the menu and the code goes to the right places. Python2.5 doesn't get installed and setup though.

I'm at a loss :(

hawaii
01-21-2010, 01:10 AM
because dpkg does NOT install dependencies. It will install, fault the control file and spit back an error - but all the package contents will be copied to their respective locations.

If it doesn't give you an error, the dependencies were met.

Try "env python" instead of 2.5 - yes it doesn't make sense, as it should be a soft-link, but try and find your actual relative "binary" for the interpreter and it will be easier.

code177
01-21-2010, 12:49 PM
Thanks Hawaii. I tried this yesterday and although the message is ever so slightly different, the error is the same: python: not found.

"find / -name python" also returns no results. I'm very confused.

Same results with or without run-standalone.sh

lizardo
01-22-2010, 10:09 AM
Thanks Hawaii. I tried this yesterday and although the message is ever so slightly different, the error is the same: python: not found.

"find / -name python" also returns no results. I'm very confused.

Same results with or without run-standalone.sh

Try running on your N900 (either using SSH or using X Term as root):

apt-get -f install

(note that no package should be specified)

And post here the output.

lizardo
01-22-2010, 10:46 AM
Thanks Hawaii. I tried this yesterday and although the message is ever so slightly different, the error is the same: python: not found.

"find / -name python" also returns no results. I'm very confused.

Same results with or without run-standalone.sh

Ok I just tried RDA (I didn't know about it, nice tool!). Here is what you need to do after you installed your .deb:

1) Install the "rootsh" package using the Application Manager on the device (tip: open the "search" dialog and search for "rootsh"

2) Open X Terminal and run:

root

3) This will give you root access to the device. Now run:

apt-get -f install

4) This will complete the installation and install the missing dependencies.


If it still does not work, install the packages listed on the Depends: field manually by running (on the X Terminal after running the "root" command):

apt-get install <list-of-packages>

Hope that helps.

code177
01-28-2010, 06:30 PM
Thanks everyone. I wasn't able to do this because it has to go through Ovi installer, but turns out adding gnome-python to the dependencies makes it work :)