LukeSpad / BeoGateway

Indigo Server Plugin for communication with Bang & Olufsen AV Systems
1 stars 0 forks source link

Foundation issue #1

Closed nigels0 closed 2 years ago

nigels0 commented 2 years ago

I’ve installed Foundation library, but have this issue:

`pi@domoticzpi:~/domoticz/progs/BeoGateway$ pip install Foundation Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: Foundation in /home/pi/.local/lib/python2.7/site-packages (0.1.0a0.dev1) Requirement already satisfied: django-sekizai>=0.10 in /home/pi/.local/lib/python2.7/site-packages (from Foundation) (2.0.0) Requirement already satisfied: Django<1.11,>=1.10 in /home/pi/.local/lib/python2.7/site-packages (from Foundation) (1.10.8) Requirement already satisfied: django-classy-tags>=1 in /home/pi/.local/lib/python2.7/site-packages (from django-sekizai>=0.10->Foundation) (2.0.0)

pi@domoticzpi:~/domoticz/progs/BeoGateway$ python main.py Traceback (most recent call last): File "main.py", line 13, in import Resources.ASBridge as ASBridge File "/home/pi/domoticz/progs/BeoGateway/Resources/ASBridge.py", line 3, in from Foundation import NSAppleScript ImportError: No module named Foundation’

LukeSpad commented 2 years ago

Hi there,

Are you attempting to run in a pc or a Mac? I’m afraid the application is Mac only:

The ASBridge module contains the Apple Scripting Bridge implementation to control Apple Music. It requires two Apple specific libraries that are included as part of the standard python build on a Mac.

If you are running on a Mac then check to see that those libraries are installed and up to date - they should be there right out of the box?

L

Sent from my iPhone

On 11 Dec 2021, at 13:19, nigels0 @.***> wrote:

 I’ve installed Foundation library, but have this issue:

@.:/domoticz/progs/BeoGateway$ pip install Foundation Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: Foundation in /home/pi/.local/lib/python2.7/site-packages (0.1.0a0.dev1) Requirement already satisfied: django-sekizai>=0.10 in /home/pi/.local/lib/python2.7/site-packages (from Foundation) (2.0.0) Requirement already satisfied: Django<1.11,>=1.10 in /home/pi/.local/lib/python2.7/site-packages (from Foundation) (1.10.8) Requirement already satisfied: django-classy-tags>=1 in /home/pi/.local/lib/python2.7/site-packages (from django-sekizai>=0.10->Foundation) (2.0.0) @.:/domoticz/progs/BeoGateway$ python main.py Traceback (most recent call last): File "main.py", line 13, in import Resources.ASBridge as ASBridge File "/home/pi/domoticz/progs/BeoGateway/Resources/ASBridge.py", line 3, in from Foundation import NSAppleScript ImportError: No module named Foundation’

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

nigels0 commented 2 years ago

Actually on a raspberry. Explains the issue.

Really I’ll need to cut out all the Mac specific stuff. All I really want is to monitor the ML commands to allow me to power a screen on and off.

Regards

Sent from my iPad

On 11 Dec 2021, at 13:36, LukeSpad @.***> wrote:

 Hi there,

Are you attempting to run in a pc or a Mac? I’m afraid the application is Mac only:

The ASBridge module contains the Apple Scripting Bridge implementation to control Apple Music. It requires two Apple specific libraries that are included as part of the standard python build on a Mac.

If you are running on a Mac then check to see that those libraries are installed and up to date - they should be there right out of the box?

L

Sent from my iPhone

On 11 Dec 2021, at 13:19, nigels0 @.***> wrote:

 I’ve installed Foundation library, but have this issue:

@.:/domoticz/progs/BeoGateway$ pip install Foundation Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: Foundation in /home/pi/.local/lib/python2.7/site-packages (0.1.0a0.dev1) Requirement already satisfied: django-sekizai>=0.10 in /home/pi/.local/lib/python2.7/site-packages (from Foundation) (2.0.0) Requirement already satisfied: Django<1.11,>=1.10 in /home/pi/.local/lib/python2.7/site-packages (from Foundation) (1.10.8) Requirement already satisfied: django-classy-tags>=1 in /home/pi/.local/lib/python2.7/site-packages (from django-sekizai>=0.10->Foundation) (2.0.0) @.:/domoticz/progs/BeoGateway$ python main.py Traceback (most recent call last): File "main.py", line 13, in import Resources.ASBridge as ASBridge File "/home/pi/domoticz/progs/BeoGateway/Resources/ASBridge.py", line 3, in from Foundation import NSAppleScript ImportError: No module named Foundation’

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

LukeSpad commented 2 years ago

No worries - in that case just edit the callback function cb() to remove everything except the message reporting. Everything else is system agnostic 👍

Sent from my iPhone

On 11 Dec 2021, at 13:42, nigels0 @.***> wrote:

 Actually on a raspberry. Explains the issue.

Really I’ll need to cut out all the Mac specific stuff. All I really want is to monitor the ML commands to allow me to power a screen on and off.

Regards

Sent from my iPad

On 11 Dec 2021, at 13:36, LukeSpad @.***> wrote:

 Hi there,

Are you attempting to run in a pc or a Mac? I’m afraid the application is Mac only:

The ASBridge module contains the Apple Scripting Bridge implementation to control Apple Music. It requires two Apple specific libraries that are included as part of the standard python build on a Mac.

If you are running on a Mac then check to see that those libraries are installed and up to date - they should be there right out of the box?

L

Sent from my iPhone

On 11 Dec 2021, at 13:19, nigels0 @.***> wrote:

 I’ve installed Foundation library, but have this issue:

@.:/domoticz/progs/BeoGateway$ pip install Foundation Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: Foundation in /home/pi/.local/lib/python2.7/site-packages (0.1.0a0.dev1) Requirement already satisfied: django-sekizai>=0.10 in /home/pi/.local/lib/python2.7/site-packages (from Foundation) (2.0.0) Requirement already satisfied: Django<1.11,>=1.10 in /home/pi/.local/lib/python2.7/site-packages (from Foundation) (1.10.8) Requirement already satisfied: django-classy-tags>=1 in /home/pi/.local/lib/python2.7/site-packages (from django-sekizai>=0.10->Foundation) (2.0.0) @.:/domoticz/progs/BeoGateway$ python main.py Traceback (most recent call last): File "main.py", line 13, in import Resources.ASBridge as ASBridge File "/home/pi/domoticz/progs/BeoGateway/Resources/ASBridge.py", line 3, in from Foundation import NSAppleScript ImportError: No module named Foundation’

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

nigels0 commented 2 years ago

Thanks.

Sent from my iPad

On 11 Dec 2021, at 13:47, LukeSpad @.***> wrote:

 No worries - in that case just edit the callback function cb() to remove everything except the message reporting. Everything else is system agnostic 👍

Sent from my iPhone

On 11 Dec 2021, at 13:42, nigels0 @.***> wrote:

 Actually on a raspberry. Explains the issue.

Really I’ll need to cut out all the Mac specific stuff. All I really want is to monitor the ML commands to allow me to power a screen on and off.

Regards

Sent from my iPad

On 11 Dec 2021, at 13:36, LukeSpad @.***> wrote:

 Hi there,

Are you attempting to run in a pc or a Mac? I’m afraid the application is Mac only:

The ASBridge module contains the Apple Scripting Bridge implementation to control Apple Music. It requires two Apple specific libraries that are included as part of the standard python build on a Mac.

If you are running on a Mac then check to see that those libraries are installed and up to date - they should be there right out of the box?

L

Sent from my iPhone

On 11 Dec 2021, at 13:19, nigels0 @.***> wrote:

 I’ve installed Foundation library, but have this issue:

@.:/domoticz/progs/BeoGateway$ pip install Foundation Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: Foundation in /home/pi/.local/lib/python2.7/site-packages (0.1.0a0.dev1) Requirement already satisfied: django-sekizai>=0.10 in /home/pi/.local/lib/python2.7/site-packages (from Foundation) (2.0.0) Requirement already satisfied: Django<1.11,>=1.10 in /home/pi/.local/lib/python2.7/site-packages (from Foundation) (1.10.8) Requirement already satisfied: django-classy-tags>=1 in /home/pi/.local/lib/python2.7/site-packages (from django-sekizai>=0.10->Foundation) (2.0.0) @.:/domoticz/progs/BeoGateway$ python main.py Traceback (most recent call last): File "main.py", line 13, in import Resources.ASBridge as ASBridge File "/home/pi/domoticz/progs/BeoGateway/Resources/ASBridge.py", line 3, in from Foundation import NSAppleScript ImportError: No module named Foundation’

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.