#22 Import Error

v1.2
closed
nobody
Backend (20)
5
2007-12-14
2007-11-28
Anonymous
No

Traceback (most recent call last):
File "proximity.py", line 57, in <module>
print _("The program cannot import the module bluetooth.")
NameError: name '_' is not defined

Change:

import _bluetooth as bluez

in

import bluetooth._bluetooth as bluez

Discussion

  • Nobody/Anonymous

    Logged In: NO

    my contatc is: pantano.luigi [ a t ] gmail.com

     
  • Lars Friedrichs

    Lars Friedrichs - 2007-11-29
    • status: open --> pending
     
  • Lars Friedrichs

    Lars Friedrichs - 2007-11-29

    Logged In: YES
    user_id=114903
    Originator: NO

    Ok, there two errors as far as I can see.
    I made the import error messages translateable which is obviousl not a good idea since the translation function has to be created first. I will fix that in the next release.
    Do you have references why the import of _bluetooth should be changed? And could you please post your system configuration? maybe this has to do with a certain distribution...

    Thanks for your error report,
    Lars

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks