| Reply | « Previous Thread | Next Thread » |
|
Hi,
my application is composed by 3 files
I put all 3 files in a folder, then I have created the SIS file with PyS60 Application Packager. After installation, when I run the application on the phone I get Code:
ImportError: No module named lib1.py |
|
Did you appended the path where lib1 and lib2 were dropped on the phone, by the sis?
sys.path.append? |
|
Quote:
Code:
import sys, os
try:
raise Exception
except Exception:
mydir = os.path.dirname(sys.exc_info()[2].tb_frame.f_code.co_filename)
if not mydir:
mydir = os.getcwd()
sys.path.append(mydir)
|
|
Quote:
import sys sys.path.append('c:\\private\\<UID>\\lib') import lib1, lib2 :IMPORTANT NOTE: This is because of a limitation in one of the OpenC APIs. The import mechanism will be fixed in the next release of PyS60 and you dont have to do the above mentioned trick then.
Last edited by mahesh.sayibabu : 2009-04-21 at 09:07.
|
| mahesh.sayibabu |
| View Public Profile |
| Find all posts by mahesh.sayibabu |
|
Quote:
Been secretly hoping for this ![]() --jouni counting the few remaining days for next release |
|
Oh noes! Our secret is out!
![]() import antigravity |
| ashwinurao |
| View Public Profile |
| Find all posts by ashwinurao |
|
Hope you have tested with PyS60 1.9.4 Application Packager, this short comming is fixed with this release.
|
| mahesh.sayibabu |
| View Public Profile |
| Find all posts by mahesh.sayibabu |
|
Sounds like you have "import lib1.py" in your script when you should have "import lib1"...
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| JXME + OSGi for j2me | gittu | Mobile Java General | 13 | 2009-03-04 10:34 |
| bluetooth setting using bluecove | amoon108 | Bluetooth Technology | 0 | 2008-10-15 11:11 |
| 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 |