Re: nrfutil icorrect installation

2021-10-12 Thread Peter Pearson
On Fri, 8 Oct 2021 14:46:34 -0500, Gerhard van Rensburg wrote:
>
> I installed Python 3.10.0
> I then install
> pip install nrfutil
>
> When I try to run nrfutil, I get
> ModuleNotFoundError: No module named 'constants'

I just asked duckduckgo.com about "nrfutil constants", and
got this helpful-looking link:

https://devzone.nordicsemi.com/f/nordic-q-a/65889/nrfutil-modulenotfounderror-no-module-named-constants

-- 
To email me, substitute nowhere->runbox, invalid->com.
-- 
https://mail.python.org/mailman/listinfo/python-list


nrfutil icorrect installation

2021-10-11 Thread Gerhard van Rensburg
Dear python,

 

I installed Python 3.10.0

I then install

pip install nrfutil

 

When I try to run nrfutil, I get

ModuleNotFoundError: No module named 'constants'

 

C:\Users\ x\nrfutil keys --help

Traceback (most recent call last):

  File "C:\Users\Gerhard van
Rensburg\AppData\Local\Programs\Python\Python310\Scripts\nrfutil-script.py",
line 33, in 

sys.exit(load_entry_point('nrfutil==5.2.0', 'console_scripts',
'nrfutil')())

  File "C:\Users\Gerhard van
Rensburg\AppData\Local\Programs\Python\Python310\Scripts\nrfutil-script.py",
line 25, in importlib_load_entry_point

return next(matches).load()

  File "C:\Users\Gerhard van
Rensburg\AppData\Local\Programs\Python\Python310\lib\importlib\metadata\__in
it__.py", line 162, in load

module = import_module(match.group('module'))

  File "C:\Users\Gerhard van
Rensburg\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py",
line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

  File "", line 1050, in _gcd_import

  File "", line 1027, in _find_and_load

  File "", line 1006, in
_find_and_load_unlocked

  File "", line 688, in _load_unlocked

  File "", line 883, in exec_module

  File "", line 241, in
_call_with_frames_removed

  File "C:\Users\Gerhard van
Rensburg\AppData\Local\Programs\Python\Python310\lib\site-packages\nordicsem
i\__main__.py", line 53, in 

from nordicsemi.dfu.dfu_transport_serial import DfuTransportSerial

  File "C:\Users\Gerhard van
Rensburg\AppData\Local\Programs\Python\Python310\lib\site-packages\nordicsem
i\dfu\dfu_transport_serial.py", line 52, in 

from nordicsemi.lister.device_lister import DeviceLister

  File "C:\Users\Gerhard van
Rensburg\AppData\Local\Programs\Python\Python310\lib\site-packages\nordicsem
i\lister\device_lister.py", line 39, in 

from nordicsemi.lister.windows.lister_win32 import Win32Lister

  File "C:\Users\Gerhard van
Rensburg\AppData\Local\Programs\Python\Python310\lib\site-packages\nordicsem
i\lister\windows\lister_win32.py", line 43, in 

from constants import DIGCF_PRESENT, DEVPKEY, DIGCF_DEVICEINTERFACE

ModuleNotFoundError: No module named 'constants'

 

Any help appreciated

 

Gerhard van Rensburg

___
RENIX

Electronics, Inc.

*713-503-0855 * Fax: 281-517-0773

*    www.Renix-Electronics.com
Email:   i...@renix-electronics.com


_

**All communications should be considered RENIX Confidential**

 

-- 
https://mail.python.org/mailman/listinfo/python-list