Solution if PineSAM does not start (windows 11) #106
River-Mochi
started this conversation in
Ideas
Replies: 1 comment
-
Powershell HintsPowershell (pwsh) is a terminal app that is easier to use and more robust than original windows command/cmd. It comes pre-installed on windows 11 (also works in Linux/MacOS).
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If PineSAM does not start in Windows 11
1. Is Bluetooth toggled ON in Windows settings? Pinecil can not communicate to PineSAM or Joric's BLE App or any other bluetooth app if bluetooth services on windows is not turned on.
1. a. If Bluetooth is Off, then Pinesam will not start and the processes will end which is why the script will exit and say it can not find the Process ID. There will be an error message like this if Bluetooth on windows settings is off or bluetooth is broken.
1. b. is Pinecil on the list of Windows bluetooth devices? if yes, then Remove it. if Pinecil is added as a device to windows system like bluetooth speakers, then it can not connect to PineSAM or any other bluetooth app. Windows Bluetooth simply needs to be ON. PineSAM takes care of connecting directly to Pinecil and then PineSAM invisibly on the backend uses the windows bluetooth services (which must be toggled on). This is why Pinecil can not be added directly to the list of Windows bluetooth devices.
2. All Zip files: Unblock in properties before extracting any zip (if you see "unblock" choice, then check box to allow it the correct permissions).
If you don't see "unblock", then you are fine also.
3. If you get the error that that the script is "not digitally signed" then delete the extract folder, right click on the orginal Zip file downloaded and look for "Unblock" in the properties (see 1 above) and check to unblock the zip before extracting it.
If PineSAM still does not start, check the powershell terminal for error messages.
4. if you see `Powershell could not load **PSReadline module**` This is a permissions issue in Powershell. Even if you don't see this error, it could be a permission issue in Powershell (pwsh) that causes the python script to not run.
Reference reset permissions to RemoteSigned
Solution set Powershell permissions
Get-ExecutionPolicy -list
to see what powershell is currently set to; if LocalMachine is notRemoteSigned
, then# change it with: Set-ExecutionPolicy RemoteSigned
Once RemoteSigned is set it should be persistent on windows reboots; but the profile can be just reset in windows for unknown reasons. If it's left on "Restricted" which is windows default, then no scripts can be run at all in powershell which is kind of why people want use powershell in the first place.
setup-dev.bat
, thenrun-dev.bat
and PineSAM should work. run-dev.bat does not need to be run as admin.6. If you use the PineSAM _Sources-all-xxx_ version, then first run `setup-dev.bat` to setup the back end. Then use `run-dev.bat` to start PineSAM. Accept pop-up windows that appear asking if this app should be allowed.
Side Note
Beta Was this translation helpful? Give feedback.
All reactions