How to properly compile the old legacy v-magine?

asked 2026-04-13 21:27:00 +0300

sorecchione07 gravatar image

updated 2026-04-13 21:36:18 +0300

Hi everyone

I was experimenting with changing the CentOS 7 URLs in v-magine by downloading the source code from here: https://github.com/cloudbase/v-magine

After downloading it, I unzipped the file to any destination and tried installing both Python 2.7 / Python 2.7.16 and 2.7.18 with the prerequisites installed by typing:

pip install -r requirements

It fails with the following output:

C:\Users\PC\Desktop\v-magine-master>pip install -r requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting six (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl
Collecting paramiko (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/71/6d/95777fd66507106d2f8f81d005255c237187951644f85a5bd0baeec8a88f/paramiko-2.12.0-py2.py3-none-any.whl (213kB)
     |################################| 215kB 2.9MB/s
Collecting pywin32 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/4a/78/d0065741617ee422e403ec92019346cf442f2ed65de8964c65ea98406bb5/pywin32-228-cp27-cp27m-win32.whl (6.9MB)
     |################################| 6.9MB 3.3MB/s
Collecting pymi (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/10/c3/4cf0c923d3188659567af09ce3f2f7220e010154ebbc691cd0ceef8ce7b4/pymi-1.0.9.tar.gz (65kB)
     |################################| 71kB 4.5MB/s
    ERROR: Command errored out with exit status 1:
     command: 'c:\python27-v-magine\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\pc\\appdata\\local\\temp\\pip-install-u1lvpa\\pymi\\setup.py'"'"'; __file__='"'"'c:\\users\\pc\\appdata\\local\\temp\\pip-install-u1lvpa\\pymi\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: c:\users\pc\appdata\local\temp\pip-install-u1lvpa\pymi\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\pc\appdata\local\temp\pip-install-u1lvpa\pymi\setup.py", line 1, in <module>
        from distutils import _msvccompiler
    ImportError: cannot import name _msvccompiler
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.3.4 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

I also had the Open Source QT binaries installed in the local folder of the C drive, the correct 32-bit version that matched the corresponding build PS1 script file:

$ENV:PATH = "C:\Qt\Qt5.4.0\5.4\msvc2013\bin;" + $ENV:PATH

So now, running the script via: PS C:\Users\PC\Desktop\v-magine-master> .\build.ps1

I get this output with an error at the bottom, the build seems to be completed:

www\eula.html
www\index.html
www\css\font-awesome.css
www\css\font-awesome.min.css
www\css\iconFont.css
www\css\metro-bootstrap-responsive.css
www\css\metro-bootstrap.css ...
(more)
edit retag flag offensive close merge delete