04-26-2021 02:48 AM
Solved! Go to Solution.
04-26-2021 04:41 AM
Hi @Networker0
You'll need to download the modules on your PC, then copy them on APIC (you can use /data/techsupport as destination folder)
After that, you can manually install the modules in your python env. Here is an example for requests module:
1. Copy the module from a public repository on your personal PC: $ git clone git://github.com/psf/requests.git 2. Copy the files on APIC (in /data/techsupport) 3. Create a new venv for your project admin@apic1:techsupport> python3 -m venv venv admin@apic1:techsupport> source venv/bin/activate 4. Go to the module directory you copied (requests in this example): (venv) admin@apic1:techsupport> cd requests (venv) admin@apic1:techsupport> python -m pip install .
Stay safe,
Sergiu
04-26-2021 06:34 AM
It looks like you'll either have to install an older version of requests, or install a newer version of pip.
Stay safe,
Sergiu
04-26-2021 02:58 AM
Hi @Networker0
Yes you can do it. You can use python/curl to send requests, directly from CLI, or you can build your own ACI app:
https://blogs.cisco.com/datacenter/training-how-to-develop-cisco-aci-applications
Stay safe,
Sergiu
04-26-2021 04:02 AM
Thank you for your response,
how can i install pip and modules in APIC if ACI have no internet access?
Br
04-26-2021 04:41 AM
Hi @Networker0
You'll need to download the modules on your PC, then copy them on APIC (you can use /data/techsupport as destination folder)
After that, you can manually install the modules in your python env. Here is an example for requests module:
1. Copy the module from a public repository on your personal PC: $ git clone git://github.com/psf/requests.git 2. Copy the files on APIC (in /data/techsupport) 3. Create a new venv for your project admin@apic1:techsupport> python3 -m venv venv admin@apic1:techsupport> source venv/bin/activate 4. Go to the module directory you copied (requests in this example): (venv) admin@apic1:techsupport> cd requests (venv) admin@apic1:techsupport> python -m pip install .
Stay safe,
Sergiu
04-26-2021 05:20 AM
Thank you for your support Sergiu,
I followed the steps but, i get the following error. should i download another version of requests?
Thnx.
04-26-2021 06:34 AM
It looks like you'll either have to install an older version of requests, or install a newer version of pip.
Stay safe,
Sergiu
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide