Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac privacy => "abort trap 6" #4

Closed
fredzannarbor opened this issue May 8, 2024 · 9 comments
Closed

Mac privacy => "abort trap 6" #4

fredzannarbor opened this issue May 8, 2024 · 9 comments

Comments

@fredzannarbor
Copy link

fredzannarbor commented May 8, 2024

python transcribe.py
Abort trap: 6

see below for apple explanation, looks easy enough to fix

Translated Report (Full Report Below)

Process: Python [31156]
Path: /usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.10.9 (3.10.9)
Code Type: X86-64 (Native)
Parent Process: bash [20364]
Responsible: stable [63409]
User ID: 501

Date/Time: 2024-05-08 06:09:53.0763 -0400
OS Version: macOS 14.2.1 (23C71)
Report Version: 12
Bridge OS Version: 8.2 (21P2057)
Anonymous UUID: D9322169-2B1A-836C-5143-457A89BE735D

Sleep/Wake UUID: 45E3EB9B-C035-4C5D-A00C-848822223D42

Time Awake Since Boot: 970000 seconds
Time Since Wake: 4045 seconds

System Integrity Protection: enabled

Crashed Thread: 6 Dispatch queue: com.apple.root.default-qos

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Termination Reason: Namespace TCC, Code 0
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.

@Krupskis
Copy link
Owner

Krupskis commented May 8, 2024

Can you try giving bluetooth permissions to the terminal app? Like this https://github.com/orgs/pybricks/discussions/583#discussioncomment-1933666

@fredzannarbor
Copy link
Author

Making progress:


python transcribe.py
Could not find the compass device. Try restarting the wearable.
python transcribe.py
disconnected
Error: disconnected

What do I press/what do I expect to connect the device to Bluetooth? Can the device be plugged into the USB cord and charging?

@Krupskis
Copy link
Owner

Krupskis commented May 8, 2024

it can be charging, as long as you can connect it using the app, you should be able to use the script.

@Krupskis
Copy link
Owner

Krupskis commented May 8, 2024

To be completely sure, you could download NRF Connect App on your phone and see a bluetooth device named Compass is discoverable

@Krupskis
Copy link
Owner

Krupskis commented May 9, 2024

@fredzannarbor what macOS are you running? Bleak seems to have issues with macOS 12 hbldh/bleak#635

@Krupskis
Copy link
Owner

Krupskis commented May 9, 2024

@fredzannarbor i pushed a new update to the script, can you try again?

@fredzannarbor
Copy link
Author

fredzannarbor commented May 11, 2024 via email

@fredzannarbor
Copy link
Author

Fiddled around for a while, got it working. Cool!

Audio data written to output.wav
Confidence: 0.98447347
transcription:
K.
Yeah, Parker.
God bless you.
I love you very much
```.

@Krupskis
Copy link
Owner

@fredzannarbor sweet! curious how you solved it in case others run into a similar issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants