You Are Here:

Community: Developer Discussion Boards

#1 Old Talking Can Not Import - 2008-09-30, 04:51

Join Date: Sep 2008
Posts: 37
RickTheGreat
Offline
Registered User
Hello,

Does anyone know why this is happening. I Python installed on my computer (Windows Vista). This happens also when I try to import e32 too.


>>> import appuifw
Trackback <most recent call last>:
File "<stdin>", line i, in <module>
ImportError: No module named appuifw
>>>


If you can explain, or tell me how to get the import to work I would be thankful.

Regards,
Rick

Programerx@aol.com
Reply With Quote

#2 Old Re: Can Not Import - 2008-09-30, 05:33

Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
Hi,

If you mean you have standard Python (2.5 or some similar version, for Windows), than it's normal for it not to work. e32, appuifw and many other modules are specific to PyS60 and cannot be found in regular Python.
Last edited by bogdan.galiceanu : 2008-09-30 at 05:56.
Reply With Quote

#3 Old Re: Can Not Import - 2008-09-30, 06:12

Join Date: Feb 2008
Posts: 2,546
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by RickTheGreat View Post
Hello,

Does anyone know why this is happening. I Python installed on my computer (Windows Vista). This happens also when I try to import e32 too.


>>> import appuifw
Trackback <most recent call last>:
File "<stdin>", line i, in <module>
ImportError: No module named appuifw
>>>


If you can explain, or tell me how to get the import to work I would be thankful.

Regards,
Rick

Programerx@aol.com
hi Rick
welcome to the forum nokia discussion boards.

yes bogdan is true you cant import all the PyS60 modules in the normal python 2.5. You can try at the interactive console. I feel you need a start for the python for S60 please visit the links below:

Forum Nokia Python Wiki
Mobapps
PyS60 FAQ thread

Hope it helps you
enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#4 Old Re: Can Not Import - 2008-10-01, 01:41

Join Date: Sep 2008
Posts: 37
RickTheGreat
Offline
Registered User
Hello bogdan.galiceanu,

I am running Python 2.5.2 on Vista.
Can you tell me how to install PYS60 on my Lab-Top, so I can import modules (e32 & appuifw)into my programs.

Regards,

Rick
Reply With Quote

#5 Old Re: Can Not Import - 2008-10-01, 05:37

Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
I'm not sure there is a way. Simply copying the module files over to the computer doesn't seem to work. Though this may not be the most comfortable solution, write your scripts first and then forward them to the phone to test them. Or you can test them on the emulator.
Reply With Quote

#6 Old Smile Re: Can Not Import - 2008-10-01, 07:14

Join Date: May 2007
Posts: 2,739
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by RickTheGreat View Post
Can you tell me how to install PYS60 on my Lab-Top, so I can import modules (e32 & appuifw)into my programs.
Install PyS60 SDK and use Python Script Shell on the Emulator : The conventional way to install PyS60 on a PC or Laptop.

Best Regards,
Croozeus
Reply With Quote

#7 Old Talking Re: Can Not Import -- Deeply confused - 2008-10-02, 03:18

Join Date: Sep 2008
Posts: 37
RickTheGreat
Offline
Registered User
Hello,

1. Are you telling me that the e32 and appuifw modules can only be accessed on cell phone? That I can not load these modules into a program if I am writing it on my pc.

2. Can I load PythoneForS60_1_4_4_3rdEd.sis and PythoneScriptShell_1_4_4_3rdEd.sis modules into my Nokia Series 60 Emulator, and generate a program. If yes, into which directory under the Emulator do I load these modules.

3. If I can only access these modules on a cell phone, how do I create sis module that can be loaded on to other phones?

Regards,
Reply With Quote

#8 Old Re: Can Not Import -- Deeply confused - 2008-10-02, 05:04

Join Date: Feb 2008
Posts: 2,546
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by RickTheGreat View Post
Hello,

1. Are you telling me that the e32 and appuifw modules can only be accessed on cell phone? That I can not load these modules into a program if I am writing it on my pc.
yes its true that all of these modules will be accessed in s60 mobile devices only.For PC You can install the S60 emulator and PyS60 and then use these modules. Please have a look at this article.

Quote:
Originally Posted by RickTheGreat View Post
2. Can I load PythoneForS60_1_4_4_3rdEd.sis and PythoneScriptShell_1_4_4_3rdEd.sis modules into my Nokia Series 60 Emulator, and generate a program. If yes, into which directory under the Emulator do I load these modules.
you cant load sis files in your emulator to install pys60 in emulator download it from sourceforge. And follow the steps mentioned in the above article.


Quote:
Originally Posted by RickTheGreat View Post
3. If I can only access these modules on a cell phone, how do I create sis module that can be loaded on to other phones?

Regards,
For creating sis you have two options if you are using 3rd edition devices then go for ensymble and for 2nd edition devices please again have a look at this wiki article.

I hope you got every thing now

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#9 Old Thumbs up Re: Can Not Import -- Deeply confused - 2008-10-02, 07:59

Join Date: May 2007
Posts: 2,739
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by RickTheGreat View Post

3. If I can only access these modules on a cell phone, how do I create sis module that can be loaded on to other phones?
Modules come bundled with PyS60 distribution so if you install PyS60 on any phone you can access modules like e32 and appuifw. There is not need to make a SIS file and install them separately.

Best Regards,
Croozeus
Reply With Quote

#10 Old Re: Can Not Import - 2008-10-04, 17:20

Join Date: Sep 2008
Posts: 37
RickTheGreat
Offline
Registered User
Quote:
Originally Posted by gaba88 View Post
hi Rick
welcome to the forum nokia discussion boards.

yes bogdan is true you cant import all the PyS60 modules in the normal python 2.5. You can try at the interactive console. I feel you need a start for the python for S60 please visit the links below:

Forum Nokia Python Wiki
Mobapps
PyS60 FAQ thread

Hope it helps you
enjoy Pythoning
Gaba88
Hello Gaba88,

I am confused by this answer: what did you mean by "cant" (can do or can not do this.

Can I import e32 into my normal python program, and be able to test a program on my computer. I want to be able to run a program that uses e32 in the interactive mode on my computer, rather that write a line of code and then have to import it into the phone to test.

Regards
Rick

PS - I am enclosing a copy of your reply that confused me.

---
Reply With Quote

#11 Old Re: Can Not Import - 2008-10-04, 18:31

Join Date: Feb 2008
Posts: 2,546
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Hi rick
Really sorry that my reply confused you.
Now what you can do is write any thing in the python script in your pc.But for checking it or i mean for running those scripts you need a device or if you dont then you can use a sdk emulator.
Did you got the point now??
Waiting for a reply from you.

Enjoy pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#12 Old Re: Can Not Import - 2008-10-04, 19:38

Join Date: Sep 2007
Posts: 401
Location: Bhavnagar
Send a message via Yahoo to james1980
james1980's Avatar
james1980
Offline
Forum Nokia Champion
Hi rick,
gabba88 is correct. I am also having the same problem. So make a separate file tht contains the python script and try to run it from emulator. Or transfer your file to phone test it.
Regards
Reply With Quote

#13 Old Talking Re: Can use e32 or appuifw modules on laptop computer - 2008-11-15, 05:41

Join Date: Sep 2008
Posts: 37
RickTheGreat
Offline
Registered User
Hello Python Users / GABA88,

Question 1, if e32 and appuifw modules can only be accessed on cell phone, how do I create a program that can be exported to other cell phones? Are you saying that I must compile an executable on the cell phone and then export it to a computer for Internet distribution? Is the SIS file generated on the cell phone and downloaded to a computer for distribution.

Question 2, If I load the Python into the S60 emulator can I compile a program in the S60 emulator that is located on a computer?

I am using a laptop with vista and S60 3rd Edition and matching Python software.

RickTheGreat
Reply With Quote

#14 Old Re: Can use e32 or appuifw modules on laptop computer - 2008-11-15, 08:01

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by RickTheGreat View Post
Hello Python Users / GABA88,

Question 1, if e32 and appuifw modules can only be accessed on cell phone, how do I create a program that can be exported to other cell phones? Are you saying that I must compile an executable on the cell phone and then export it to a computer for Internet distribution? Is the SIS file generated on the cell phone and downloaded to a computer for distribution.

Question 2, If I load the Python into the S60 emulator can I compile a program in the S60 emulator that is located on a computer?

I am using a laptop with vista and S60 3rd Edition and matching Python software.

RickTheGreat
Hi RickTheGreat,

Question 1: appuifw and e32 modules can also be used in emulator. About compiling, you can do it on the phone using an application, but I recommend you to compile it on your computer using Ensymble, since this tool give us many more options

Question 2: You won't compile using emulator at all. Emulator is just for testing your script, if every thing is OK with the script, then compile it using Ensymble, as I described in question 1



Hope it helps,

Rafael.
Reply With Quote

#15 Old Lightbulb Re: Can Not Import - 2008-11-15, 10:28

Join Date: Oct 2008
Posts: 204
Send a message via Yahoo to rahulvala
rahulvala's Avatar
rahulvala
Offline
Regular Contributor
I THINK YOU HAVE TO MAKE THE SEPARATE FILE FOR STORING OF PYTHON SCRIPT.
AND ONE MORE THINK IS THAT THE WHILE INSTALLING PYTHON
THE TWO FILE (1) PYTHON FOR S60 FOR 3RD EDITION AND
(2)S60 FOR 3RD EDITION
MUST BE COMPLITELY INSTALLED IN YOUR PC.
AND MAKE SURE IT WILL RUN IN WINDOWS VISTA ENVIRONMENT.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Phone caller ID using SIP!! nasooor2004 Mobile Java Networking & Messaging & Security 1 2008-04-23 05:46
j2se server j2me client bluetooth connection problem bepolat Mobile Java Networking & Messaging & Security 1 2007-11-27 16:18
problem on running my application rsf Python 7 2007-10-21 16:56
GoogleIt deepika.mangla General Symbian C++ 4 2007-01-08 02:07
SocketConnection Work on 6600&Emulators BUT NOT IN 6680 eerant Mobile Java Networking & Messaging & Security 4 2006-03-11 01:35

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia