01-14-2021 09:39 AM - edited 01-14-2021 10:43 AM
Hello all. Looks like i've installed Acitoolkit in the wrong directory.
Since then I've created a new venv in Pycharm and reinstalled it in another directory, however i think there is a conflict stopping it working properly because of the other version.
the WRONG version is here
M7551873@LAP-0071884 MINGW64 ~/netprog_basics/network_controllers/aci/acitoolkit (master)
$ dir
acitoolkit applications contributors.txt Dockerfile Include LICENSE pylintrc README.md samples setup.py tests venv
acitoolkit.egg-info build dist docs Lib NOTICE pyvenv.cfg requirements.txt scripts shippable.yml Vagrantfile
the correct version is here
M7551873@LAP-0071884 MINGW64 ~/netprog_basics/network_controllers/acitoolkit/acitoolkit (master)
$ dir
acitoolkit applications contributors.txt Dockerfile LICENSE pylintrc requirements.txt scripts shippable.yml Vagrantfile
acitoolkit.egg-info build dist docs NOTICE README.md samples setup.py tests
So i now have two versions, how do i uninstall the incorrect one ?
I tried to startgain from scratch so, i ran this
M7551873@LAP-0071884 MINGW64 ~/netprog_basics/network_controllers/aci/acitoolkit (master)
$ python -m pip uninstall acitoolkit
Found existing installation: acitoolkit 0.4
Uninstalling acitoolkit-0.4:
Would remove:
c:\users\m7551873\netprog_basics\network_controllers\acitoolkit\venv\lib\site-packages\acitoolkit-0.4-py3.8.egg
Proceed (y/n)? y
Successfully uninstalled acitoolkit-0.4
This still left me with WRONG one in M7551873@LAP-0071884 MINGW64 ~/netprog_basics/network_controllers/aci/acitoolkit
so i tried
$ python -m pip uninstall acitoolkit
Found existing installation: acitoolkit 0.4
Not uninstalling acitoolkit at c:\users\m7551873\appdata\local\programs\python\python38\lib\site-packages\acitoolkit-0.4-py3.8.egg, outside environment C:\Users\M7551873\netprog_basics\network
_controllers\acitoolkit\venv
Can't uninstall 'acitoolkit'. No files were found to uninstall.
Any ideas why I can't dlelte this?
Solved! Go to Solution.
01-14-2021 01:32 PM
Deleted all associated files from old folders created new Venv, reinstalled acitoolkit and BINGO!!!!
01-14-2021 11:38 AM
I've just deleted all the relevant folders and started a new venv and reinstalled it AGAIN (it's all experience eh?) I tried testing it using one of the sample scripts, but this happened, any idea why ?
python aci-show-tenants.py
C:\Users\M7551873\netprog_basics\network_controllers\acitoolkit\venv\lib\site-packages\acitoolkit-0.4-py3.8.egg\
acitoolkit\acitoolkit.py:5207: SyntaxWarning: "is not" with a literal. Did you mean "!="?
C:\Users\M7551873\netprog_basics\network_controllers\acitoolkit\venv\lib\site-packages\acitoolkit-0.4-py3.8.egg\
acitoolkit\acitoolkit.py:5207: SyntaxWarning: "is not" with a literal. Did you mean "!="?
C:\Users\M7551873\netprog_basics\network_controllers\acitoolkit\venv\lib\site-packages\acitoolkit-0.4-py3.8.egg\
acitoolkit\aciConcreteLib.py:1105: SyntaxWarning: "is" with a literal. Did you mean "=="?
C:\Users\M7551873\netprog_basics\network_controllers\acitoolkit\venv\lib\site-packages\acitoolkit-0.4-py3.8.egg\
acitoolkit\aciConcreteLib.py:1105: SyntaxWarning: "is" with a literal. Did you mean "=="?
APIC login username: admin
APIC URL: https://sandboxapicdc.com
APIC Password:
Could not relogin to APIC due to ConnectionError: HTTPSConnectionPool(host='sandboxapicdc.com', port=443): Max r
etries exceeded with url: /api/aaaLogin.json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection
object at 0x00000000042AD7F0>: Failed to establish a new connection: [WinError 10060] A connection attempt faile
d because the connected party did not properly respond after a period of time, or established connection failed
because connected host has failed to respond'))
%% Could not login to APIC
01-14-2021 01:32 PM
Deleted all associated files from old folders created new Venv, reinstalled acitoolkit and BINGO!!!!
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