buildxyz-git / nrfsec

GNU General Public License v3.0
42 stars 8 forks source link

Unsuccesful, runpy proplems #5

Open Splinter34 opened 2 weeks ago

Splinter34 commented 2 weeks ago

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

buildxyz-git commented 2 weeks ago

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

Splinter34 commented 1 week ago

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

Splinter34 commented 1 week ago

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