×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2005
    Location
    Trento - ITALY
    Posts
    26

    Contacts DB when compiled with py2sis

    Hi, i hope the expert can help me!
    I have a little problem:

    This piece of code, in python console, before compiling will work great:

    try:
    ..db = contacts.open()
    ..names = []
    ..numbers = []

    The problem is that, if i compile it with py2sis (pyrsc_template.tmp replaced with the original to solve the submenus bug) it doesnt work, when that piece of code is executed, i receive error -50 and nothing happen! hope u can help me! 10ks a lot in advance

    Regards.

  2. #2
    Registered User
    Join Date
    May 2005
    Posts
    34

    Re: Contacts DB when compiled with py2sis

    Originally posted by Xen0n
    Hi, i hope the expert can help me!
    I have a little problem:

    This piece of code, in python console, before compiling will work great:

    try:
    ..db = contacts.open()
    ..names = []
    ..numbers = []

    The problem is that, if i compile it with py2sis (pyrsc_template.tmp replaced with the original to solve the submenus bug) it doesnt work, when that piece of code is executed, i receive error -50 and nothing happen! hope u can help me! 10ks a lot in advance

    Regards.
    May be we understand something if you post some RUNNING code we can try, so an except is needed.
    Please use code and /code in squares brackets: it save tabs.
    Your example can't work and there is no except, so... and Contacs must be with capital letter
    Code:
    import Contacts
    try:
       db=Contacts.open()
       names = []
       numbers = []
    except:
       print 'error'
    It works (nothing appears...)

    Pietro

Posting Permissions

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