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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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