datacenter / acitoolkit

A basic toolkit for accessing the Cisco APIC
Other
351 stars 266 forks source link

acitoolkit installation issue on window machine , need help #367

Open ravihardoi opened 4 years ago

ravihardoi commented 4 years ago

I have run below commands

I am not able to install please help me what should I do.

""""Error at last which I am getting"""""""""""""""

The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available.

C:\Users\Administrator\acitoolkit>

C:\Users\Administrator>git clone https://github.com/datacenter/acitoolkit.git fatal: destination path 'acitoolkit' already exists and is not an empty director y.

C:\Users\Administrator> C:\Users\Administrator>git clone https://github.com/datacenter/acitoolkit.git fatal: destination path 'acitoolkit' already exists and is not an empty director y.

C:\Users\Administrator>git clone https://github.com/datacenter/acitoolkit.git Cloning into 'acitoolkit'... remote: Enumerating objects: 25, done. remote: Counting objects: 100% (25/25), done. remote: Compressing objects: 100% (19/19), done. remote: Total 10057 (delta 12), reused 14 (delta 6), pack-reused 10032 Receiving objects: 100% (10057/10057), 15.40 MiB | 2.26 MiB/s, done. Resolving deltas: 100% (6843/6843), done.

C:\Users\Administrator>python setup.py install python: can't open file 'setup.py': [Errno 2] No such file or directory

C:\Users\Administrator>cd acitoolkit

C:\Users\Administrator\acitoolkit>python setup.py install C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\distutils\d ist.py:274: UserWarning: Unknown distribution option: 'tests_requires' warnings.warn(msg) running install running bdist_egg running egg_info creating acitoolkit.egg-info writing acitoolkit.egg-info\PKG-INFO writing dependency_links to acitoolkit.egg-info\dependency_links.txt writing requirements to acitoolkit.egg-info\requires.txt writing top-level names to acitoolkit.egg-info\top_level.txt writing manifest file 'acitoolkit.egg-info\SOURCES.txt' reading manifest file 'acitoolkit.egg-info\SOURCES.txt' writing manifest file 'acitoolkit.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py creating build creating build\lib creating build\lib\acitoolkit copying acitoolkit\acibaseobject.py -> build\lib\acitoolkit copying acitoolkit\aciConcreteLib.py -> build\lib\acitoolkit copying acitoolkit\acicounters.py -> build\lib\acitoolkit copying acitoolkit\acifakeapic.py -> build\lib\acitoolkit copying acitoolkit\aciFaults.py -> build\lib\acitoolkit copying acitoolkit\aciHealthScore.py -> build\lib\acitoolkit copying acitoolkit\aciphysobject.py -> build\lib\acitoolkit copying acitoolkit\aciSearch.py -> build\lib\acitoolkit copying acitoolkit\acisession.py -> build\lib\acitoolkit copying acitoolkit\aciTable.py -> build\lib\acitoolkit copying acitoolkit\acitoolkit.py -> build\lib\acitoolkit copying acitoolkit\acitoolkitlib.py -> build\lib\acitoolkit copying acitoolkit__about.py -> build\lib\acitoolkit copying acitoolkit__init.py -> build\lib\acitoolkit creating build\bdist.win32 creating build\bdist.win32\egg creating build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\acibaseobject.py -> build\bdist.win32\egg\acitoolki t copying build\lib\acitoolkit\aciConcreteLib.py -> build\bdist.win32\egg\acitoolk it copying build\lib\acitoolkit\acicounters.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\acifakeapic.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\aciFaults.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\aciHealthScore.py -> build\bdist.win32\egg\acitoolk it copying build\lib\acitoolkit\aciphysobject.py -> build\bdist.win32\egg\acitoolki t copying build\lib\acitoolkit\aciSearch.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\acisession.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\aciTable.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\acitoolkit.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\acitoolkitlib.py -> build\bdist.win32\egg\acitoolki t copying build\lib\acitoolkit\about.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\init__.py -> build\bdist.win32\egg\acitoolkit byte-compiling build\bdist.win32\egg\acitoolkit\acibaseobject.py to acibaseobjec t.cpython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciConcreteLib.py to aciConcrete Lib.cpython-38.pyc build\bdist.win32\egg\acitoolkit\aciConcreteLib.py:1105: SyntaxWarning: "is" wit h a literal. Did you mean "=="? if self.attr['name'] is '': byte-compiling build\bdist.win32\egg\acitoolkit\acicounters.py to acicounters.cp ython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\acifakeapic.py to acifakeapic.cp ython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciFaults.py to aciFaults.cpytho n-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciHealthScore.py to aciHealthSc ore.cpython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciphysobject.py to aciphysobjec t.cpython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciSearch.py to aciSearch.cpytho n-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\acisession.py to acisession.cpyt hon-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciTable.py to aciTable.cpython- 38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\acitoolkit.py to acitoolkit.cpyt hon-38.pyc build\bdist.win32\egg\acitoolkit\acitoolkit.py:5207: SyntaxWarning: "is not" wit h a literal. Did you mean "!="? if life_cycle is not '': byte-compiling build\bdist.win32\egg\acitoolkit\acitoolkitlib.py to acitoolkitli b.cpython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\about.py to about.cpytho n-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\init.py to init__.cpython- 38.pyc creating build\bdist.win32\egg\EGG-INFO copying acitoolkit.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO copying acitoolkit.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO copying acitoolkit.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-IN FO copying acitoolkit.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO copying acitoolkit.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist\acitoolkit-0.4-py3.8.egg' and adding 'build\bdist.win32\egg' to i t removing 'build\bdist.win32\egg' (and everything under it) Processing acitoolkit-0.4-py3.8.egg Removing c:\users\administrator\appdata\local\programs\python\python38-32\lib\si te-packages\acitoolkit-0.4-py3.8.egg Copying acitoolkit-0.4-py3.8.egg to c:\users\administrator\appdata\local\program s\python\python38-32\lib\site-packages acitoolkit 0.4 is already the active version in easy-install.pth

Installed c:\users\administrator\appdata\local\programs\python\python38-32\lib\s ite-packages\acitoolkit-0.4-py3.8.egg Processing dependencies for acitoolkit==0.4 Searching for py-radix Reading https://pypi.org/simple/py-radix/ Downloading https://files.pythonhosted.org/packages/bf/4e/47d9e7f4dfd0630662e19d 2cc1b2f1d307ec52df11f4a66f6ed6f0cce138/py-radix-0.10.0.tar.gz#sha256=b8dbd1344bb 30c6a1097d4103203c7b117d92931620365985018de4bef5aede3 Best match: py-radix 0.10.0 Processing py-radix-0.10.0.tar.gz Writing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-s9x9bxnm\py-radix-0.10 .0\setup.cfg Running py-radix-0.10.0\setup.py -q bdist_egg --dist-dir C:\Users\ADMINI~1\AppDa ta\Local\Temp\easy_install-s9x9bxnm\py-radix-0.10.0\egg-dist-tmp-6gh0cnsv error: Setup script exited with error: SandboxViolation: mkdir('C:\Users\ADMIN I~1\AppData\Local\Temp\easy_install-s9x9bxnm\py-radix-0.10.0\build', 511) {}

The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available.

C:\Users\Administrator\acitoolkit>

erraa commented 4 years ago

I am not able to reproduce this. Does this happen every time you try to install something with EasyInstall or just with acitoolkit?

ravihardoi commented 4 years ago

I have done even after enabling virtualenv still same error is coming

C:\Users\Administrator>py -m venv env

C:\Users\Administrator>.\env\Scripts\activate

(env) C:\Users\Administrator>cd acitoolkit

(env) C:\Users\Administrator\acitoolkit>python setup.py install C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\distutils\d ist.py:274: UserWarning: Unknown distribution option: 'tests_requires' warnings.warn(msg) running install running bdist_egg running egg_info writing acitoolkit.egg-info\PKG-INFO writing dependency_links to acitoolkit.egg-info\dependency_links.txt writing requirements to acitoolkit.egg-info\requires.txt writing top-level names to acitoolkit.egg-info\top_level.txt reading manifest file 'acitoolkit.egg-info\SOURCES.txt' writing manifest file 'acitoolkit.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py creating build\bdist.win32\egg creating build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\acibaseobject.py -> build\bdist.win32\egg\acitoolki t copying build\lib\acitoolkit\aciConcreteLib.py -> build\bdist.win32\egg\acitoolk it copying build\lib\acitoolkit\acicounters.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\acifakeapic.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\aciFaults.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\aciHealthScore.py -> build\bdist.win32\egg\acitoolk it copying build\lib\acitoolkit\aciphysobject.py -> build\bdist.win32\egg\acitoolki t copying build\lib\acitoolkit\aciSearch.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\acisession.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\aciTable.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\acitoolkit.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit\acitoolkitlib.py -> build\bdist.win32\egg\acitoolki t copying build\lib\acitoolkit__about.py -> build\bdist.win32\egg\acitoolkit copying build\lib\acitoolkit__init__.py -> build\bdist.win32\egg\acitoolkit byte-compiling build\bdist.win32\egg\acitoolkit\acibaseobject.py to acibaseobjec t.cpython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciConcreteLib.py to aciConcrete Lib.cpython-38.pyc build\bdist.win32\egg\acitoolkit\aciConcreteLib.py:1105: SyntaxWarning: "is" wit h a literal. Did you mean "=="? if self.attr['name'] is '': byte-compiling build\bdist.win32\egg\acitoolkit\acicounters.py to acicounters.cp ython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\acifakeapic.py to acifakeapic.cp ython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciFaults.py to aciFaults.cpytho n-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciHealthScore.py to aciHealthSc ore.cpython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciphysobject.py to aciphysobjec t.cpython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciSearch.py to aciSearch.cpytho n-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\acisession.py to acisession.cpyt hon-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\aciTable.py to aciTable.cpython- 38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\acitoolkit.py to acitoolkit.cpyt hon-38.pyc build\bdist.win32\egg\acitoolkit\acitoolkit.py:5207: SyntaxWarning: "is not" wit h a literal. Did you mean "!="? if life_cycle is not '': byte-compiling build\bdist.win32\egg\acitoolkit\acitoolkitlib.py to acitoolkitli b.cpython-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\about.py to about.cpytho n-38.pyc byte-compiling build\bdist.win32\egg\acitoolkit\init.py to init__.cpython- 38.pyc creating build\bdist.win32\egg\EGG-INFO copying acitoolkit.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO copying acitoolkit.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO copying acitoolkit.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-IN FO copying acitoolkit.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO copying acitoolkit.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO zip_safe flag not set; analyzing archive contents... creating 'dist\acitoolkit-0.4-py3.8.egg' and adding 'build\bdist.win32\egg' to i t removing 'build\bdist.win32\egg' (and everything under it) Processing acitoolkit-0.4-py3.8.egg Copying acitoolkit-0.4-py3.8.egg to c:\users\administrator\env\lib\site-packages

Adding acitoolkit 0.4 to easy-install.pth file

Installed c:\users\administrator\env\lib\site-packages\acitoolkit-0.4-py3.8.egg Processing dependencies for acitoolkit==0.4 Searching for deepdiff Reading https://pypi.org/simple/deepdiff/ Downloading https://files.pythonhosted.org/packages/67/26/49ccae53188f3bbe1fb6dd 77721dd853b5eb5d72a932013931c429713839/deepdiff-5.0.2-py3-none-any.whl#sha256=27 3b18d32bb9b956548290b2e3ddf79c515def2dd5738965f4348ae813e710c5 Best match: deepdiff 5.0.2 Processing deepdiff-5.0.2-py3-none-any.whl Installing deepdiff-5.0.2-py3-none-any.whl to c:\users\administrator\env\lib\sit e-packages writing requirements to c:\users\administrator\env\lib\site-packages\deepdiff-5. 0.2-py3.8.egg\EGG-INFO\requires.txt Adding deepdiff 5.0.2 to easy-install.pth file

Installed c:\users\administrator\env\lib\site-packages\deepdiff-5.0.2-py3.8.egg Searching for ipaddress Reading https://pypi.org/simple/ipaddress/ Downloading https://files.pythonhosted.org/packages/c2/f8/49697181b1651d8347d24c 095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl#sha 256=6e0f4a39e66cb5bb9a137b00276a2eff74f93b71dcbdad6f10ff7df9d3557fcc Best match: ipaddress 1.0.23 Processing ipaddress-1.0.23-py2.py3-none-any.whl Installing ipaddress-1.0.23-py2.py3-none-any.whl to c:\users\administrator\env\l ib\site-packages Adding ipaddress 1.0.23 to easy-install.pth file

Installed c:\users\administrator\env\lib\site-packages\ipaddress-1.0.23-py3.8.eg g Searching for graphviz Reading https://pypi.org/simple/graphviz/ Downloading https://files.pythonhosted.org/packages/62/dc/9dd6a6b9b8977248e165e0 75b109eea6e8eac71faa28ca378c3d98e54fbe/graphviz-0.14.1-py2.py3-none-any.whl#sha2 56=088562ef6e3dad5e8dde9389caf4a84f768e65dcaa08238cfcdf36d2b30ccf61 Best match: graphviz 0.14.1 Processing graphviz-0.14.1-py2.py3-none-any.whl Installing graphviz-0.14.1-py2.py3-none-any.whl to c:\users\administrator\env\li b\site-packages writing requirements to c:\users\administrator\env\lib\site-packages\graphviz-0. 14.1-py3.8.egg\EGG-INFO\requires.txt Adding graphviz 0.14.1 to easy-install.pth file

Installed c:\users\administrator\env\lib\site-packages\graphviz-0.14.1-py3.8.egg

Searching for jsonschema Reading https://pypi.org/simple/jsonschema/ Downloading https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217 bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl#sha 256=4e5b3cf8216f577bee9ce139cbe72eca3ea4f292ec60928ff24758ce626cd163 Best match: jsonschema 3.2.0 Processing jsonschema-3.2.0-py2.py3-none-any.whl Installing jsonschema-3.2.0-py2.py3-none-any.whl to c:\users\administrator\env\l ib\site-packages writing requirements to c:\users\administrator\env\lib\site-packages\jsonschema- 3.2.0-py3.8.egg\EGG-INFO\requires.txt Adding jsonschema 3.2.0 to easy-install.pth file Installing jsonschema-script.py script to C:\Users\Administrator\env\Scripts Installing jsonschema.exe script to C:\Users\Administrator\env\Scripts Installing jsonschema.exe.manifest script to C:\Users\Administrator\env\Scripts

Installed c:\users\administrator\env\lib\site-packages\jsonschema-3.2.0-py3.8.eg g Searching for py-radix Reading https://pypi.org/simple/py-radix/ Downloading https://files.pythonhosted.org/packages/bf/4e/47d9e7f4dfd0630662e19d 2cc1b2f1d307ec52df11f4a66f6ed6f0cce138/py-radix-0.10.0.tar.gz#sha256=b8dbd1344bb 30c6a1097d4103203c7b117d92931620365985018de4bef5aede3 Best match: py-radix 0.10.0 Processing py-radix-0.10.0.tar.gz Writing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-ltkvf13b\py-radix-0.10 .0\setup.cfg Running py-radix-0.10.0\setup.py -q bdist_egg --dist-dir C:\Users\ADMINI~1\AppDa ta\Local\Temp\easy_install-ltkvf13b\py-radix-0.10.0\egg-dist-tmp-r27c61n6 error: Setup script exited with error: SandboxViolation: mkdir('C:\Users\ADMIN I~1\AppData\Local\Temp\easy_install-ltkvf13b\py-radix-0.10.0\build', 511) {}

The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available.

(env) C:\Users\Administrator\acitoolkit>cd ..

(env) C:\Users\Administrator>.../env/bin/python.exe '...' is not recognized as an internal or external command, operable program or batch file.

(env) C:\Users\Administrator>/env/bin/python.exe The system cannot find the path specified.

(env) C:\Users\Administrator>env/bin/python.exe 'env' is not recognized as an internal or external command, operable program or batch file.

(env) C:\Users\Administrator>cd .../env/bin/python.exe The system cannot find the path specified.

what should I do looks like noone knows on GITHUB

erraa commented 4 years ago

(env) C:\Users\Administrator\acitoolkit>python setup.py install

Looks like it works. No need to do .../env/bin/python.exe