Menu

File Send

Help
Maulin
2007-04-30
2013-04-25
  • Maulin

    Maulin - 2007-04-30

    Hello bud,

    I've just gotten around to reinstalling this lightblue on my box, all seems to install without issues, however when trying to run the file send examples I get.

      File "file_send.py", line 5, in ?
        import lightblue
      File "/usr/lib/python2.4/site-packages/lightblue/__init__.py", line 165, in ?
        import obex     # plus submodule
      File "/usr/lib/python2.4/site-packages/lightblue/obex.py", line 65, in ?
        from _obex import *
    AttributeError: 'module' object has no attribute 's'

    Any ideas? Also, would you be able to tell me if I'm able to multithread the push process to send to more than one device quickly? I've been using ussp-push untill now and that always seemed to kick up 'device or resource' busy issues when trying to thread that.

    Thanks for any help,

    Rob

     
    • blam

      blam - 2007-05-01

      Hi Rob,

      I haven't heard of that one, it sounds pretty odd. I can't see any attributes called 's' in _obex.py or the extensions. Is that lightblue 0.2? Is there any difference if you use 0.1? Or if you install it for a different python installation?

      I haven't tried multithreading the push processes. It would open up separate rfcomm connections to different devices, so it might be possible. Probably depends on how the underlying libraries/stack handles threading and connections.

       
    • Maulin

      Maulin - 2007-05-01

      Hey Blam,

      Thanks for the response, I came to the same conclusion as you after looking through the source that there wasnt any attributes of that name. I've not tried 0.1 yet but i'll give that a go and see if its any better at all.

      From speaking with a few guys on the bluez project they seem to think that the stack supports multithreadig so perhaps it'll be ok.

      Thanks for the advice, if i fix the issue i'll let you know.

      Rob

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.