Git Product home page Git Product logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 13, 2024
I didn't notice this before, but the first line is different.

2011-04-08 15:42:56.937 Python[58557:7443] *** __NSAutoreleaseNoPool(): Object 
0x101129450 of class OC_PythonData autoreleased with no pool in place - just 
leaking

Original comment by [email protected] on 8 Apr 2011 at 10:45

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 13, 2024
This doesn't seem right. After installing the latest from the SVN, bricks still 
have no threadsafe attribute.

>>> import nxt
>>> b = nxt.find_one_brick(name = 'NXT')
USB module unavailable, not searching there
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-p
ackages/lightblue/_bluetoothsockets.py:42: DeprecationWarning: the sets module 
is deprecated
  import sets     # python 2.3
>>> b.threadsafe
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'Brick' object has no attribute 'threadsafe'

Is there something more I need to do, to ensure a clean install of the newest 
version?

Original comment by [email protected] on 8 Apr 2011 at 11:00

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 13, 2024
Apologies for taking a while to reply; I've been busy these past few days.

You can check for threadsafeness by looking at the top of brick.py and checking 
for the "from threading import Lock" line. If it's there, the threadsafe code 
is working. Actually, v2.1 has threadsafe capability, so you shouldn't need the 
latest SVN at this point (it's good to have, though).

As for the actual error messages, I have no idea. It's probably lightblue doing 
something weird... Why don't you try spin.py? It tests the same functionality 
but is quite a bit simpler and will yield less output to pick through. A 
complete log of that at pastebin or attached in a text file might help. Do lots 
of googling for info about those error messages and see if it can tell you 
which file/line is causing them.

Sorry about this difficulty.

Marcus Wanner

Original comment by [email protected] on 11 Apr 2011 at 6:41

  • Changed state: Accepted
  • Added labels: Component-Bluetooth, OpSys-OSX, Series-2.x

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 13, 2024

Original comment by [email protected] on 11 Apr 2011 at 6:41

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 13, 2024
Googling the error turns up almost solely iPhone issues because the error is 
coming from Objective-C. I figured this might be an OSX specific problem so I 
sidestepped it and just switched to my linux box. Everything runs fine there.

Original comment by [email protected] on 11 Apr 2011 at 7:47

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 13, 2024
Great. If you want more done on this, please refer to the lightblue people. The 
more I look at those messages, the more I think that the problem is with that 
and not nxt-python. I do know that the messages aren't coming from our code. 
They may even be incidental and caused by whatever the problem really is, 
which, unless it's the python core, isn't in nxt-python.

Original comment by [email protected] on 12 Apr 2011 at 5:00

  • Changed state: Invalid

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 13, 2024
I'm also struggling with the threading.
So fare I found this information:
* __NSAutoreleaseNoPool issue can be avoided by starting the thread#s run 
method with >>pool = NSAutoreleasePool.alloc().init()<< and ending it with 
>>del pool<<
* nevertheless it will not work, all calls using the bluetooth connection will 
hang
* the lightblue package ist not threadsafe (cp. lightblue homepage):
>>Current limitations:
Avoid threading on Mac OS X, as the underlying IOBluetooth and IOBluetoothUI 
frameworks are not thread-safe <<

Original comment by [email protected] on 24 Apr 2011 at 4:03

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 13, 2024
Yeah, there's nothing we can do about this, sorry.

We are not associated with lightblue in any way and as such is the situation 
can't fix their problems. Sorry.

Original comment by [email protected] on 24 Apr 2011 at 4:59

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 13, 2024
You might be able to make it work with multiple processes instead of threads. 
It all depends on if the NXT brick will take commands from multiple bluetooth 
connections at once.

Original comment by [email protected] on 24 Apr 2011 at 9:04

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 13, 2024
No, the NXT will not allow more than one connection at a time.

Original comment by [email protected] on 24 Apr 2011 at 9:45

from nxt-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.