nrfsec icon indicating copy to clipboard operation
nrfsec copied to clipboard

Unsuccesful, runpy proplems

Open Splinter34 opened this issue 1 year ago • 3 comments

Having difficulty, any help would be much appreciated: I believe I have the correct driver install and PYSWD can see the device and halt and run the nrf processor. But no such luck in NRFSEC.

C:\Users\myuser\AppData\Local\Programs\Python\Python312\Lib\site-packages\nrfsec>nrfsec info Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in run_code File "C:\Users\myuser\AppData\Local\Programs\Python\Python312\Scripts\nrfsec.exe_main.py", line 4, in File "C:\Users\myuser\AppData\Local\Programs\Python\Python312\Lib\site-packages\nrfsec\nrfsec.py", line 5, in from . import dbg File "C:\Users\myuser\AppData\Local\Programs\Python\Python312\Lib\site-packages\nrfsec\dbg.py", line 33 def init(self.dev, freq): ^ SyntaxError: invalid syntax

Thanks for looking,

Splinter

Splinter34 avatar Sep 02 '24 00:09 Splinter34

hmmm, not sure really. I never tested on Windows, just Linux (Debian) and MacOS. Can you confirm your python version?

buildxyz-git avatar Sep 02 '24 00:09 buildxyz-git

Yes, python 3.12.5, and it was installed to path in the enviro table.

Splinter34 avatar Sep 02 '24 01:09 Splinter34

I had difficulties running this under windows. But it ran perfectly under Ubunto 20.04.6. Thanks Buildxyz!

Splinter34 avatar Sep 02 '24 14:09 Splinter34