Error when building a image using keyfactor plugin

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error when building a image using keyfactor plugin

160 Views
cleo
Contributor I

I have installed spsdk and spsdk-plugins to build an image for RT1064 using the keyfactor plugin. When I am launching in venv the build_image_win.bat file I keep getting an error 

SPSDKError: SPSDK: Signature provider could not be created from config type=keyfactor;url=...

The log file shows the below error.

INFO:spsdk.utils.service_provider:Loading plugins: spsdk.sp
INFO:spsdk.utils.service_provider:SignatureProvider of type keyfactor was not found.
DEBUG:spsdk.apps.utils.utils:SPSDK: Signature provider could not be created from config type=keyfactor;url

I ran a test to  inspect the environment's active Python entry points as shown below
"python -c "import importlib.metadata; print([p.name for p in importlib.metadata.entry_points(group='spsdk.sp')])"  " and the result of the test is good, keyfactor is in the active Python entry points.

I have attached the build batch file and the yaml file.
How can I fix this issue?



0 Kudos
Reply
1 Reply

136 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @cleo ,

 

Looks like the plugin was not loaded successfully. Did you follow the guide from  https://github.com/nxp-mcuxpresso/spsdk_plugins/tree/master/keyfactor ?  Please refer to https://github.com/nxp-mcuxpresso/spsdk_plugins for more details.

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2393285%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EError%20when%20building%20a%20image%20using%20keyfactor%20plugin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2393285%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20installed%20spsdk%20and%20spsdk-plugins%20to%20build%20an%20image%20for%20RT1064%20using%20the%20keyfactor%20plugin.%20When%20I%20am%20launching%20in%20venv%20the%20build_image_win.bat%20file%20I%20keep%20getting%20an%20error%26nbsp%3B%3C%2FP%3E%3CP%3ESPSDKError%3A%20SPSDK%3A%20Signature%20provider%20could%20not%20be%20created%20from%20config%20type%3Dkeyfactor%3Burl%3D...%3C%2FP%3E%3CP%3EThe%20log%20file%20shows%20the%20below%20error.%3C%2FP%3E%3CP%3EINFO%3Aspsdk.utils.service_provider%3ALoading%20plugins%3A%20spsdk.sp%3CBR%20%2F%3EINFO%3Aspsdk.utils.service_provider%3ASignatureProvider%20of%20type%20keyfactor%20was%20not%20found.%3CBR%20%2F%3EDEBUG%3Aspsdk.apps.utils.utils%3ASPSDK%3A%20Signature%20provider%20could%20not%20be%20created%20from%20config%20type%3Dkeyfactor%3Burl%3C%2FP%3E%3CP%3EI%20ran%20a%20test%20to%26nbsp%3B%20inspect%20the%20environment's%20active%20Python%20entry%20points%20as%20shown%20below%3CBR%20%2F%3E%22python%20-c%20%22import%20importlib.metadata%3B%20print(%5Bp.name%20for%20p%20in%20importlib.metadata.entry_points(group%3D'spsdk.sp')%5D)%22%26nbsp%3B%20%22%26nbsp%3B%3CSPAN%3Eand%20the%20result%20of%20the%20test%20is%20good%2C%20keyfactor%20is%20in%20the%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Eactive%20Python%20entry%20points.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20have%20attached%20the%20build%20batch%20file%20and%20the%20yaml%20file.%3CBR%20%2F%3EHow%20can%20I%20fix%20this%20issue%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2393345%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Error%20when%20building%20a%20image%20using%20keyfactor%20plugin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2393345%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251109%22%20target%3D%22_blank%22%3E%40cleo%3C%2FA%3E%26nbsp%3B%EF%BC%8C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ELooks%20like%20the%20plugin%20was%20not%20loaded%20successfully.%20Did%20you%20follow%20the%20guide%20from%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Fspsdk_plugins%2Ftree%2Fmaster%2Fkeyfactor%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Fspsdk_plugins%2Ftree%2Fmaster%2Fkeyfactor%3C%2FA%3E%26nbsp%3B%3F%26nbsp%3B%20Please%20refer%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Fspsdk_plugins%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Fspsdk_plugins%3C%2FA%3E%26nbsp%3Bfor%20more%20details.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHope%20that%20helps%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EKan%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3CBR%20%2F%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E