0-1-0 / lightblue-0.4

LightBlue python module that compiles successful on OS X 10.8 (Mountain Lion)
GNU General Public License v3.0
96 stars 92 forks source link

memoryview error on OSX: _bluetoothsockets.py@135 #1

Closed kristoff-it closed 11 years ago

kristoff-it commented 11 years ago

Got the following error on OSX Mountain Lion, dunno if it might affect other plaforms or not:

Traceback (most recent call last):
  File "btserver.py", line 17, in <module>
    data = conn.recv(1024)
  File
"/Library/Python/2.7/site-packages/lightblue/_bluetoothsockets.py",
line 470, in recv
    return self.__incomingdata.read(bufsize)
  File
"/Library/Python/2.7/site-packages/lightblue/_bluetoothsockets.py",
line 150, in read
    self._build_str()
  File
"/Library/Python/2.7/site-packages/lightblue/_bluetoothsockets.py",
line 135, in _build_str
    new_string = "".join(self.l_buffer)
TypeError: sequence item 0: expected string, memoryview found

Also, the commit is not 1 line only because of the funny CR line endings the file already had.

This is basically the issue: http://stackoverflow.com/questions/244639/git-thinks-i-am-rewriting-one-of-my-files-everytime-i-make-a-small-change