Error: "No module named application"

18 views
Skip to first unread message

masl

unread,
Feb 9, 2008, 1:02:54 PM2/9/08
to amora-user
Hi

As my mobile is a 2ndEd one I followed the installation guide in
http://code.google.com/p/amora/wiki/how_to_install_source

I installed PyS60 1.4.2 2ndEd.FP2 for my Nokia 6630 and the
corresponding shell script. All scripts work fine. Amora I got it from
http://amora.googlecode.com/files/amora-client-1.0svn.tar.gz
http://amora.googlecode.com/files/amora-server-1.0svn.tar.gz

Amora server compiled ok on my ubuntu 7.10 box. However, the amora
client crashes on phone
and I get the following traceback output:

---------------------------------------------------------------------------------------------
(skipping lines that do not seem to complain about anything )

File "E:\System\Apps\Python\amora.py", line 75, in ?
from application import *
ImportError: No module named application

---------------------------------------------------------------------------------------------

Indeed, if I try this command in the python interactive console I also
get the same error.

Maybe I'm not using the appropriate version of python/amora??

From the PyS60 Reference guide
(http://downloads.sourceforge.net/pys60/PythonForS60_1_4_2_doc.pdf?
modtime=1200899145&big_mirror=0)
it seems application is not a module one can instantiate, but there
can only the one implicit in appuifw...

Does amora work only with previous versions of PyS60 ?

Thanks in advance,
MA

caval...@gmail.com

unread,
Feb 11, 2008, 6:36:35 PM2/11/08
to amora-user
Dear masl

I had not tested amora with pys60 1.4.2, I will test it and see if
there is any
possible incompatibility between then (only 1.4.0 and 1.4.1 were
available at the time of release of amora 1.0).

>
> File "E:\System\Apps\Python\amora.py", line 75, in ?
> from application import *
> ImportError: No module named application
>

Did you installed amora in 'E:\Python'? It seems that you had
installed it in
another directory ('System\Apps\Python')?

I that its the case, the amora.py will fail to load application.py
(since its going to look in a non-existent directory...).

Make sure that you install amora files and directories in 'E:\Python'.
If that still don't fixes it, please report back so we can try to
search where is the bug.


Best regards


Adenilson

masl

unread,
Feb 12, 2008, 9:38:15 PM2/12/08
to amora-user
Hi Adenilson,
couldn't get the time before to have again a look on this.

At first I didn't know how to install Python and I put in E:\Python
but didn't work. Then
I simply got the .sis file and let the phone install it -I just chose
the drive E:

It seems this is the default., but maybe I failed to put all necessary
stuff in the
E:\Python folder. So, currently I'm not sure I know what I should put
in that folder.

Let me know what can I try and I'll let you know what I get.

Thanks,
MA

caval...@gmail.com

unread,
Feb 14, 2008, 10:04:09 AM2/14/08
to amora-user
masl

I'm assuming that the 'sis' you are talking is the Python +
PythonScriptShell for S60 2ed (because
the SIS available in amora project site *doesn't* work with S60 2ed).

The procedure is:

a) Install the python + script shell (say, in drive E:)

b) download the amora client tar.gz file and extract its contents to
path E:\Python so you will have this
directory structure:
E:
.... Python
.......... amora.py
.......... data/
.......... imgs/
.......... libs/


c) Start python script shell and run amora.py (if it doesn't show up
in the list of available scripts, execute the
'filebrowser.py' and browse to E:\Python\amora.py). Yeah, its
cumbersome, but I'm kind of busy and didn't have time to create a SIS
for S60 2ed.

d) Done, amora client should be running by now.


If you manage to make it work, please report back. Case negative, lets
try to figure out what
is missing.

Best regards


Adenilson
Reply all
Reply to author
Forward
0 new messages