Giter VIP home page Giter VIP logo

py_vmdetect's Introduction

Python virtual machine detection library

image

image

Documentation Status

Python virtual machine detection tool detects virtual enviroment - VMWare, XEN, FreeBSD jail eg

Features

  • This pyhton library detects system eniroment. VMware, Xen, FreeBSD jail etc

`python from py_vmdetect import VMDetect vmd = VMDetect() vmd.is_vm()`

  • Also installs py_vmdetect cli tool:

    $ py_vmdetect --test-type is_vm
    Is Virtual: no

Credits

py_vmdetect's People

Contributors

doccaz avatar elkdatakepler avatar kepsic avatar perrywerneck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

py_vmdetect's Issues

Encountered error while trying to install package

C:\Windows\system32>pip install py-vmdetect
Collecting py-vmdetect
  Using cached py_vmdetect-0.2.5.tar.gz (20 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: Click>=6.0 in c:\users\hideleouf\appdata\local\programs\python\python39\lib\site-packages (from py-vmdetect) (7.1.2)
Requirement already satisfied: cffi>=1.12.3 in c:\users\hideleouf\appdata\local\programs\python\python39\lib\site-packages (from py-vmdetect) (1.15.0)
Requirement already satisfied: pycparser in c:\users\hideleouf\appdata\local\programs\python\python39\lib\site-packages (from cffi>=1.12.3->py-vmdetect) (2.21)
Using legacy 'setup.py install' for py-vmdetect, since package 'wheel' is not installed.
Installing collected packages: py-vmdetect
  Running setup.py install for py-vmdetect ... error
  error: subprocess-exited-with-error

  × Running setup.py install for py-vmdetect did not run successfully.
  │ exit code: 1
  ╰─> [37 lines of output]
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.9
      creating build\lib.win-amd64-3.9\py_vmdetect
      copying py_vmdetect\cli.py -> build\lib.win-amd64-3.9\py_vmdetect
      copying py_vmdetect\py_vmdetect.py -> build\lib.win-amd64-3.9\py_vmdetect
      copying py_vmdetect\__init__.py -> build\lib.win-amd64-3.9\py_vmdetect
      running egg_info
      writing py_vmdetect.egg-info\PKG-INFO
      writing dependency_links to py_vmdetect.egg-info\dependency_links.txt
      writing entry points to py_vmdetect.egg-info\entry_points.txt
      writing requirements to py_vmdetect.egg-info\requires.txt
      writing top-level names to py_vmdetect.egg-info\top_level.txt
      reading manifest file 'py_vmdetect.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '__pycache__' found under directory '*'
      warning: no previously-included files matching '*.py[co]' found under directory '*'
      warning: no files found matching '*.jpg' under directory 'docs'
      adding license file 'LICENSE'
      adding license file 'AUTHORS.rst'
      writing manifest file 'py_vmdetect.egg-info\SOURCES.txt'
      copying py_vmdetect\vmdetect.so -> build\lib.win-amd64-3.9\py_vmdetect
      creating build\lib.win-amd64-3.9\py_vmdetect\src
      copying py_vmdetect\src\vmdetect.cpp -> build\lib.win-amd64-3.9\py_vmdetect\src
      running build_ext
      building '_vmdetect_backend' extension
      creating build\temp.win-amd64-3.9
      creating build\temp.win-amd64-3.9\Release
      creating build\temp.win-amd64-3.9\Release\py_vmdetect
      creating build\temp.win-amd64-3.9\Release\py_vmdetect\src
      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\HideLeOuf\AppData\Local\Programs\Python\Python39\include -IC:\Users\HideLeOuf\AppData\Local\Programs\Python\Python39\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\ATLMFC\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt /EHsc /Tppy_vmdetect/src/vmdetect.cpp /Fobuild\temp.win-amd64-3.9\Release\py_vmdetect/src/vmdetect.obj -fPIC
      clÿ: Ligne de commande warning D9002ÿ: option '-fPIC' inconnue ignor‚e
      vmdetect.cpp
      py_vmdetect/src/vmdetect.cpp(10): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'sys/sysctl.h'ÿ: No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> py-vmdetect

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Having this error while trying to install py_vmdetect

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.