You Are Here:

Community: Developer Discussion Boards

#1 Old Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 16:27

Join Date: Sep 2008
Posts: 21
JimmPooJimmPoo
Offline
Registered User
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?
Reply With Quote

#2 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 16:47

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
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.
Reply With Quote

#3 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 17:07

Join Date: Sep 2008
Posts: 21
JimmPooJimmPoo
Offline
Registered User
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()
Reply With Quote

#4 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 17:11

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
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
Reply With Quote

#5 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 17:13

Join Date: Sep 2008
Posts: 21
JimmPooJimmPoo
Offline
Registered User
No error while launching script! only when I want to create a sis package with the py file
Reply With Quote

#6 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 17:19

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by JimmPooJimmPoo View Post
No error while launching script! only when I want to create a sis package with the py file
If py2sis doesn't work for you, follow Ensymble.

Here is a quick link:
http://croozeus.com/Making%20a%20sis...n%20script.htm

Best Regards,
Croozeus
Reply With Quote

#7 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 17:31

Join Date: Sep 2008
Posts: 21
JimmPooJimmPoo
Offline
Registered User
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?
Reply With Quote

#8 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 17:52

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by JimmPooJimmPoo View Post
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?
Well, you are lucky ! I have time

Send me the Python Script.

Best Regards,
Croozeus
Reply With Quote

#9 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 17:57

Join Date: Sep 2008
Posts: 21
JimmPooJimmPoo
Offline
Registered User
Script is sent

Pls PM back with downloadlink for *.sis-file when ready.
Reply With Quote

#10 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 18:04

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by JimmPooJimmPoo View Post
Script is sent

Pls PM back with downloadlink for *.sis-file when ready.
Done ! I sent you the SIS file.
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
Reply With Quote

#11 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 19:16

Join Date: Sep 2008
Posts: 21
JimmPooJimmPoo
Offline
Registered User
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?
Reply With Quote

#12 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 19:22

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by JimmPooJimmPoo View Post
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?
If Install is not a problem, then it can be one of the following issues,

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
Reply With Quote

#13 Old Re: Problem: How to pack a *.py and other files to *.sis - 2008-09-30, 19:31

Join Date: Sep 2008
Posts: 21
JimmPooJimmPoo
Offline
Registered User
mhh okay.....

can u install it on ur device and then open it?
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

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ