henkelis / sonospy

Sonospy is a UPnP control point and Windows Media proxy for the Sonos multi-room audio system.
GNU General Public License v3.0
112 stars 16 forks source link

Sonospy sonospy_proxy on Apple OSX 10.10 #82

Open gandaks opened 8 years ago

gandaks commented 8 years ago

Hello to you, what do I do wrong ? I work with Apple OSx 10.10, Pyton 2.6.4 , my Firewall is turned OFF I have a 11,6 Mb Sonospy.db File.

I write this in Terminal: chriss-MacBook:~ chris$ cd sonospy chriss-MacBook:sonospy chris$ ./sonospy_proxy -wSonospy=Sonospy,Sonospy.db

After that I get the pycpoint.log file :

File "pycpoint.py", line 34, in from brisa.core.reactors import SelectReactor File "/Users/chris/sonospy/sonospy/brisa/core/reactors/init.py", line 11, in from brisa.core.reactors._select import * File "/Users/chris/sonospy/sonospy/brisa/core/reactors/_select.py", line 19, in from brisa.core import log File "/Users/chris/sonospy/sonospy/brisa/core/log.py", line 240, in setup_logging() File "/Users/chris/sonospy/sonospy/brisa/core/log.py", line 216, in setup_logging format='%(created)f %(levelname)s %(module)s:'\ File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/init.py", line 1394, in basicConfig hdlr = FileHandler(filename, mode) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/init.py", line 819, in init StreamHandler.init(self, self._open()) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/init.py", line 838, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/Users/chris/.brisa/brisa.log'

What do I do wrong ? Who can help me ? Thanks.

henkelis commented 8 years ago

Hi,

It looks like the user you are running under does not have write permissions for the .brisa folder within the /Users/chris folder.

Do you have a .brisa folder (the dot at the start signifies that it is a hidden folder), and can you create files in that folder if you do?

gandaks commented 8 years ago

Hallo Mark, thank you for your quick response. I have not found the .brisa folder on the MacBook .

Now I have start the test on my MAcMini ( Apple OsX 10.10).

In Terminal I put:

minis-Mac-mini:~ mac$ cd sonospy/sonospy/

minis-Mac-mini:sonospy mac$ ./scan.py -v -d Sonospy.db /Users/mac/Music > Test.log

minis-Mac-mini:sonospy mac$ ./scan.py -d Sonospy.db /Users/mac/Music > SonospyLoad.log

Scannumber: 18

minis-Mac-mini:sonospy mac$ ./scan.py -d Sonospy.db /Users/mac/Music > SonospyScan.log

Scannumber: 19

minis-Mac-mini:sonospy mac$ cd ..

minis-Mac-mini:sonospy mac$ ./sonospy_proxy -sSonospy=Sonospy,Sonospy.db -r

And I get in the pycpoint.log :

File "pycpoint.py", line 45, in

from data import ListDataController, GetDataController, PlayController,

GetDeviceController, SetRendererController, PollRendererController, ActionRendererController, PollServerController, PollQueueController

File "/Users/mac/sonospy/sonospy/data.py", line 2, in

from brisa.core import webserver

File "/Users/mac/sonospy/sonospy/brisa/core/webserver.py", line 45, in

``` if not get_active_ifaces(): ``` File "/Users/mac/sonospy/sonospy/brisa/core/network.py", line 68, in get_active_ifaces ``` return [socket.gethostbyname(socket.gethostname())] ``` socket.gaierror: [Errno 8] nodename nor servname provided, or not known I am lost, need help. P.S. I you come to Munich, I invite you to a cup of coffee or a beer On 8 April 2016 at 15:58, Mark Henkelis notifications@github.com wrote: > Hi, > > It looks like the user you are running under does not have write > permissions for the .brisa folder within the /Users/chris folder. > > Do you have a .brisa folder (the dot at the start signifies that it is a > hidden folder), and can you create files in that folder if you do? > > — > You are receiving this because you authored the thread. > Reply to this email directly or view it on GitHub > https://github.com/henkelis/sonospy/issues/82#issuecomment-207442613
henkelis commented 8 years ago

For the Macbook:

When you say "I have not found the .brisa folder on the MacBook", did you try creating it.

You should be able to see if it's there with

ls -a .brisa

or create it with

mkdir .brisa

Can I also check that you're using the msrefactor5 version of Sonospy. It looks like you've read the install and quick config guide - have you followed the instructions in there?

I don't have access to a OSX 10.10 machine, so diagnosing this could be difficult. There is a least one OSX user on the Sonospy Google group, it will be worth you posting there too.

For the mini:

The code is trying to work out the network interface and IP address, but failing to get that. I've seen problems before with virtual interfaces and the like, but have no experience of a mini. Can we work on the Macbook first please.

gandaks commented 8 years ago

Hallo Mark,

For the Macbook: I can not test because the macbook is at work.

For the macmini, I succed. ( I have done the test on an new HardDrive). My solution was : 1) Install a new DRIVE with 10.10.3 OsX, Update to 10.10.5 OSX. 2) Install Python 2.7.11 3) Test sonospy and was OK 4) transfering all app from old Hard Drive to new HardDrive 5) testing SONOSPY 6) when Plex Server OSX is running ( and Kodi) I have a 127. ... IP and the Sonospy stops working.

When I QUIT PLEX Server and KODI, I can use the command:

./sonospy_proxy -sSonospy=Sonospy,Sonospy.db -r And I can use SONOSPY in Sonos controler.

But I have seen that I can not play with Sonos the .m4a File on OSX Apple system. Sonos See the File : mp3, m4a, flac, but only for the m4a FILE I get in SONOS:

UNABLE to play ...."File Name" The file cannot be found.

Is there a way ?

Can someone help me ?

P.S. for now I have done for every m4a File a second one as mp3 format

On 9 April 2016 at 15:51, Mark Henkelis notifications@github.com wrote:

For the Macbook:

When you say "I have not found the .brisa folder on the MacBook", did you try creating it.

You should be able to see if it's there with

ls -a .brisa

or create it with

mkdir .brisa

Can I also check that you're using the msrefactor5 version of Sonospy. It looks like you've read the install and quick config guide - have you followed the instructions in there?

I don't have access to a OSX 10.10 machine, so diagnosing this could be difficult. There is a least one OSX user on the Sonospy Google group, it will be worth you posting there too.

For the mini:

The code is trying to work out the network interface and IP address, but failing to get that. I've seen problems before with virtual interfaces and the like, but have no experience of a mini. Can we work on the Macbook first please.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/henkelis/sonospy/issues/82#issuecomment-207793284

henkelis commented 8 years ago

There's an issue transcoding m4a files at the moment - they appear to transcode correctly, but Sonos refuses to play them. I'll look into it more when I get some time.

On 09/04/16 23:25, gandaks wrote:

Hallo Mark,

For the Macbook: I can not test because the macbook is at work.

For the macmini, I succed. ( I have done the test on an new HardDrive). My solution was : 1) Install a new DRIVE with 10.10.3 OsX, Update to 10.10.5 OSX. 2) Install Python 2.7.11 3) Test sonospy and was OK 4) transfering all app from old Hard Drive to new HardDrive 5) testing SONOSPY 6) when Plex Server OSX is running ( and Kodi) I have a 127. ... IP and the Sonospy stops working.

When I QUIT PLEX Server and KODI, I can use the command:

./sonospy_proxy -sSonospy=Sonospy,Sonospy.db -r And I can use SONOSPY in Sonos controler.

But I have seen that I can not play with Sonos the .m4a File on OSX Apple system. Sonos See the File : mp3, m4a, flac, but only for the m4a FILE I get in SONOS:

UNABLE to play ...."File Name" The file cannot be found.

Is there a way ?

Can someone help me ?

P.S. for now I have done for every m4a File a second one as mp3 format

On 9 April 2016 at 15:51, Mark Henkelis notifications@github.com wrote:

For the Macbook:

When you say "I have not found the .brisa folder on the MacBook", did you try creating it.

You should be able to see if it's there with

ls -a .brisa

or create it with

mkdir .brisa

Can I also check that you're using the msrefactor5 version of Sonospy. It looks like you've read the install and quick config guide - have you followed the instructions in there?

I don't have access to a OSX 10.10 machine, so diagnosing this could be difficult. There is a least one OSX user on the Sonospy Google group, it will be worth you posting there too.

For the mini:

The code is trying to work out the network interface and IP address, but failing to get that. I've seen problems before with virtual interfaces and the like, but have no experience of a mini. Can we work on the Macbook first please.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/henkelis/sonospy/issues/82#issuecomment-207793284

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/henkelis/sonospy/issues/82#issuecomment-207865727