| Reply | « Previous Thread | Next Thread » |
|
Hey,
I want to pack a *.py file with a backround picture and a sound file to a sis! I'm using py2sis v1.09! But in the end of the steps I got an error ![]() here is a screenshot: http://img211.imageshack.us/img211/2...hot0053jh9.jpg Is anyone having an idea? |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
Hi,
What phone are you planning to run the application on? If it's S60 3rd edition you can use Ensymble to package your .py file and other files into a sis. Detailed instructions are in the Ensymble documentation, the "py2sis" section. And an example is here.
Last edited by bogdan.galiceanu : 2008-09-30 at 16:57.
|
|
I plan to run this app on my N95-1.
Can anyone look for Wrong parts in the scripts, that can make the error? here is the script: Code:
import appuifw, e32, axyz, audio
import graphics
from appuifw import *
from graphics import *
ss=5
testa=0
sens=ss-2
alarm=0
waiter=100
ax=0
ay=0
az=0
img=Image.new((240,320)) #draw a new, white image (optional)
bgimage=Image.open("c:\\system\\apps\\AlertMe\\bck.jpg")
p = audio.Sound.open("c:\\system\\apps\\AlertMe\\car1.wav")
def chk(a,b,c):
if(ax < a-sens) or (ax > a+sens) or (ay < b-sens) or (ay > b+sens) or (az < c-sens) or (az > c+sens):
p.play(1)
def yazdir(x,y,z):
global ax
global ay
global az
ax = x
ay = y
az = z
def about():
appuifw.note(u"mclightning34@hotmail.com, A.YILDIRIM","info")
def sense():
ss=appuifw.query(u"Write a number between 0 and 10.Write 5 for Default","text")
appuifw.note(u"Saved","conf")
def kaydet():
global waiter
while waiter > 0:
print waiter
waiter = waiter - 1
if(waiter == 0):
axyz.disconnect()
appuifw.note(u"Position Saved","conf")
print ax,ay,az
def st():
axyz.connect(chk)
print "started"
def quit():
axyz.disconnect()
app_lock.signal()
def stop():
axyz.disconnect()
testa=0
waiter=100
def handle_redraw(rect):
canvas.blit(bgimage) #"draws" the image on the background canvas
canvas=appuifw.Canvas(event_callback=None, redraw_callback=handle_redraw)
axyz.connect(yazdir)
appuifw.app.menu=[(u"Save Pos.",kaydet),(u"Start",st),(u"Stop",stop),(u"Sensitivity",sense),(u"About",about)]
appuifw.app.exit_key_handler=quit
appuifw.app.screen='full'
appuifw.app.body=canvas
appuifw.app.title=u"AlertMe"
app_lock=e32.Ao_lock()
app_lock.wait()
|
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
|
Hmph,
Can't spot any specific error at a quick view, just hoping that the paths mentioned in the script are correct. What error do you get when you run the script? If you get an error when try to make a .SIS file from .PY file, it doesn't meant that your .PY file has errors. Best Regards, Croozeus |
|
No error while launching script! only when I want to create a sis package with the py file
![]() |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
|
Quote:
Here is a quick link: http://croozeus.com/Making%20a%20sis...n%20script.htm Best Regards, Croozeus |
|
Thanks for ur work...
A Question: can u compile the sis-file for me? I will pack all files to an archive and will PM u download link ![]() Is it okay? |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
|
Quote:
![]() Send me the Python Script. Best Regards, Croozeus |
|
Script is sent
![]() Pls PM back with downloadlink for *.sis-file when ready. ![]() |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
|
Quote:
Remember it is signed with ensymble's selfsigned certificate. You can sign it through opensigned online, for your device IMEI. Hope that helps, Best Regards, Croozeus |
|
Hey, thanks again...
only I can open this app on my phone... Other people and my Brother cant open it in their phones... install is no problem but when they want to open it, nothing happens ![]() What to do? |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
|
Quote:
1) PyS60 and Script Shell are not install on other devices. 2) If PyS60 and Script Shell are installed - then you must have installed the application on a different drive. (Its mandatory to have them all on one drive - all on phone memory or all on Memory Card) I feel its the former in your case. Best Regards, Croozeus |
|
mhh okay.....
can u install it on ur device and then open it? |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |