cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1122
Views
0
Helpful
1
Replies

packages-reload error: missing module

billirubin05120
Level 1
Level 1

I have just recently started working with Cisco NSO and I have been following these tutorials: "Understand how to use Cisco NSO to build a service for a specific configuration" (https://www.youtube.com/watch?v=AGVChkovQ7s) and "Cisco NSO, add Python logic to a service" (https://www.youtube.com/watch?v=4hCLAYbxjwE&feature=emb_title) . 

Everything is working alright until minute 10:05 in the second video "Cisco NSO, add Python logic to a service". I successfully created the new package called "access" by using the ncs-make-package --service-skeleton python-and-template access command and altered the YANG and XML files as instructed in the video. After altering the main.py file and importing the resource_manager module, however, I received a problem when running the packages-reload command. It states that there is an error: ModuleNotFoundError: No module named resource_manager. 

I have checked into my Cisco NSO configuration and saw that this resource_manager module is installed and it is located in the directory example.ncs/service-provider/virtual-mpls-vpn/packages/resource-manager/.

It is not clear to me why this particular error is being generated. Could someone explain to me why I am receiving this error and how I can fix it? Below I have attached two pictures, one from my main.py where it is shown how the resource_manager module is imported, and one from the generated error.

1 Reply 1

vleijon
Cisco Employee
Cisco Employee
Well, the simplest thing to check is this: You need the resource-manager to be in the packages directory that you are working in, if it isn’t copy it there.