New Question

Revision history [back]

click to hide/show revision 1
initial version

How to properly compile the old legacy v-magine?

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
www\css\style.css
www\fonts\fontawesome-webfont.eot
www\fonts\fontawesome-webfont.svg
www\fonts\fontawesome-webfont.ttf
www\fonts\fontawesome-webfont.woff
www\fonts\FontAwesome.otf
www \fonts\iconFont.dev.svg
www\fonts\iconFont.eot
www\fonts\iconFont.json
www\fonts\iconFont.svg
www\fonts\iconFont.ttf
www\fonts\iconFont.woff
www\fonts\metroSysIcons.svg
www\fonts\metroSysIcons.ttf
www\fonts\metroSysIcons.woff
www\fonts\OpenSans-Bold.woff
www\fonts\OpenSans-Light.woff
www\fonts\OpenSans.woff
www\fonts\PTSerif-Caption.woff
www\fonts\Segoe UI Bold.ttf
www\fonts\segoeui.ttf
www\fonts\segoeuib.ttf
www\fonts\segoeuil.ttf
www\fonts\segoeuisl.ttf
www\fonts\seguesb.ttf
www\fonts\UbuntuMono-R.ttf
www\images\cbsl-logo.svg
www\images\hyperv-logo.svg
www\images\openstack-logo.svg
www\images\openvswitch-logo.svg
www\images\v-magine-logo-text.svg
www\images\v-ma gine-logo-white.svg
www\images\v-magine-logo.svg
www\scripts\angular.min.js
www\scripts\jquery-1.11.1.min.js
www\scripts\jquery-ui-1.11.2.min.js
www\scripts\jquery.blockUI.js
www\scripts\jquery.nanoscroller.js
www\scripts\main.js
www\scripts\metro-progressbar.js
www\scripts\metro-scroll.js
www\scripts\metro-slide r.js
www\scripts\term.js
www\scripts\jquery\jquery-1.6.4.min.js
www\scripts\jquery\jquery-1.9.1.js
www\scripts\jquery\jquery-2.1.1.min.js
www\scripts\jquery\jquery-ui-1.9.2.js
www\scripts\jquery\jquery-ui.css
www\scripts\jquery\jquery-ui.min.js
www\scripts\jquery\jquery.dataTables.js
www\scripts\jquery\jquery.ea sing.1.3.min.js
www\scripts\jquery\jquery.lionbars.0.3.js
www\scripts\jquery\jquery.min.js
www\scripts\jquery\jquery.mousewheel.js
www\scripts\jquery\jquery.widget.min.js
www\scripts\metro\metro-accordion.js
www\scripts\metro\metro-button-set.js
www\scripts\metro\metro-calendar.js
www\scripts\metro\metro-carousel .js
www\scripts\metro\metro-core.js
www\scripts\metro\metro-countdown.js
www\scripts\metro\metro-date-format.js
www\scripts\metro\metro-datepicker.js
www\scripts\metro\metro-dialog.js
www\scripts\metro\metro-drag-tile.js
www\scripts\metro\metro-dropdown.js
www\scripts\metro\metro-fluentmenu.js
www\scripts\metro\ metro-global.js
www\scripts\metro\metro-hint.js
www\scripts\metro\metro-initiator.js
www\scripts\metro\metro-input-control.js
www\scripts\metro\metro-listview.js
www\scripts\metro\metro-live-tile.js
www\scripts\metro\metro-loader.js
www\scripts\metro\metro-locale.js
www\scripts\metro\metro-notify.js
www\scripts\m etro\metro-panel.js
www\scripts\metro\metro-plugin-template.js
www\scripts\metro\metro-progressbar.js
www\scripts\metro\metro-pull.js
www\scripts\metro\metro-rating.js
www\scripts\metro\metro-scroll.js
www\scripts\metro\metro-slider.js
www\scripts\metro\metro-stepper.js
www\scripts\metro\metro-streamer.js
www\sc ripts\metro\metro-tab-control.js
www\scripts\metro\metro-table.js
www\scripts\metro\metro-tile-transform.js
www\scripts\metro\metro-times.js
www\scripts\metro\metro-touch-handler.js
www\scripts\metro\metro-treeview.js
www\scripts\metro\metro-wizard.js
www\scripts\metro\metro.min.js
www\scripts\metro\README.md
101 Files copied
pxe\centos7\chain.c32
pxe\centos7\initrd.img
pxe\centos7\mboot.c32
pxe\centos7\memdisk
pxe\centos7\menu.c32
pxe\centos7\pxelinux.0
pxe\centos7\TRANS.TBL
pxe\centos7\vmlinuz
8 Files copied
resources\app.ico
resources\centos-utils.sh
resources\install-rdo.sh
resources\ks.template
resources\pxelinux.template
resources\pybootd.ini
resources\v-magine-splash.png
7 Files copied
bin\COPYING.mtools.txt
bin\libeay32.dll
bin\mcopy.exe
bin\mdir.exe
bin\mformat.exe
bin\mkisofs.exe
bin\mkisofs_license.txt
bin\msys-1.0.dll
bin\msys-crypto-1.0.0.dll
bin\msys-minires.dll
bin\msys-z.dll
bin\openssl.exe
bin\ssh-keygen.exe
bin\ssh.exe
bin\ssleay32.dll
15 Files copied
del : The path 'C:\Users\PC\Desktop\v-magine-master\dist\v-magine\qml' could not be found because it does not exist.
In C:\Users\PC\Desktop\v-magine-master\build.ps1:39 char:1
+ del -Recurse -Force "dist\v-magine\qml"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
+ CategoryInfo : ObjectNotFound: (C:\Users\PC\Des...st\v-magine\qml:String) [Remove-Item], ItemNotFoundEx 
reception 
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

Then when I try to run the executable generated in dist\v-magine\v-magine.exe I get this error message

Failed to execute script main

And by the way, inside the folder itself there are several QT files and dependencies missing, etc... so it's incomplete, what am I missing?

Could someone explain to me step by step how to build without problems?

How to properly compile the old legacy v-magine?

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
www\css\style.css
www\fonts\fontawesome-webfont.eot
www\fonts\fontawesome-webfont.svg
www\fonts\fontawesome-webfont.ttf
www\fonts\fontawesome-webfont.woff
www\fonts\FontAwesome.otf
www \fonts\iconFont.dev.svg
www\fonts\iconFont.eot
www\fonts\iconFont.json
www\fonts\iconFont.svg
www\fonts\iconFont.ttf
www\fonts\iconFont.woff
www\fonts\metroSysIcons.svg
www\fonts\metroSysIcons.ttf
www\fonts\metroSysIcons.woff
www\fonts\OpenSans-Bold.woff
www\fonts\OpenSans-Light.woff
www\fonts\OpenSans.woff
www\fonts\PTSerif-Caption.woff
www\fonts\Segoe UI Bold.ttf
www\fonts\segoeui.ttf
www\fonts\segoeuib.ttf
www\fonts\segoeuil.ttf
www\fonts\segoeuisl.ttf
www\fonts\seguesb.ttf
www\fonts\UbuntuMono-R.ttf
www\images\cbsl-logo.svg
www\images\hyperv-logo.svg
www\images\openstack-logo.svg
www\images\openvswitch-logo.svg
www\images\v-magine-logo-text.svg
www\images\v-ma gine-logo-white.svg
www\images\v-magine-logo.svg
www\scripts\angular.min.js
www\scripts\jquery-1.11.1.min.js
www\scripts\jquery-ui-1.11.2.min.js
www\scripts\jquery.blockUI.js
www\scripts\jquery.nanoscroller.js
www\scripts\main.js
www\scripts\metro-progressbar.js
www\scripts\metro-scroll.js
www\scripts\metro-slide r.js
www\scripts\term.js
www\scripts\jquery\jquery-1.6.4.min.js
www\scripts\jquery\jquery-1.9.1.js
www\scripts\jquery\jquery-2.1.1.min.js
www\scripts\jquery\jquery-ui-1.9.2.js
www\scripts\jquery\jquery-ui.css
www\scripts\jquery\jquery-ui.min.js
www\scripts\jquery\jquery.dataTables.js
www\scripts\jquery\jquery.ea sing.1.3.min.js
www\scripts\jquery\jquery.lionbars.0.3.js
www\scripts\jquery\jquery.min.js
www\scripts\jquery\jquery.mousewheel.js
www\scripts\jquery\jquery.widget.min.js
www\scripts\metro\metro-accordion.js
www\scripts\metro\metro-button-set.js
www\scripts\metro\metro-calendar.js
www\scripts\metro\metro-carousel .js
www\scripts\metro\metro-core.js
www\scripts\metro\metro-countdown.js
www\scripts\metro\metro-date-format.js
www\scripts\metro\metro-datepicker.js
www\scripts\metro\metro-dialog.js
www\scripts\metro\metro-drag-tile.js
www\scripts\metro\metro-dropdown.js
www\scripts\metro\metro-fluentmenu.js
www\scripts\metro\ metro-global.js
www\scripts\metro\metro-hint.js
www\scripts\metro\metro-initiator.js
www\scripts\metro\metro-input-control.js
www\scripts\metro\metro-listview.js
www\scripts\metro\metro-live-tile.js
www\scripts\metro\metro-loader.js
www\scripts\metro\metro-locale.js
www\scripts\metro\metro-notify.js
www\scripts\m etro\metro-panel.js
www\scripts\metro\metro-plugin-template.js
www\scripts\metro\metro-progressbar.js
www\scripts\metro\metro-pull.js
www\scripts\metro\metro-rating.js
www\scripts\metro\metro-scroll.js
www\scripts\metro\metro-slider.js
www\scripts\metro\metro-stepper.js
www\scripts\metro\metro-streamer.js
www\sc ripts\metro\metro-tab-control.js
www\scripts\metro\metro-table.js
www\scripts\metro\metro-tile-transform.js
www\scripts\metro\metro-times.js
www\scripts\metro\metro-touch-handler.js
www\scripts\metro\metro-treeview.js
www\scripts\metro\metro-wizard.js
www\scripts\metro\metro.min.js
www\scripts\metro\README.md
101 Files copied
pxe\centos7\chain.c32
pxe\centos7\initrd.img
pxe\centos7\mboot.c32
pxe\centos7\memdisk
pxe\centos7\menu.c32
pxe\centos7\pxelinux.0
pxe\centos7\TRANS.TBL
pxe\centos7\vmlinuz
8 Files copied
resources\app.ico
resources\centos-utils.sh
resources\install-rdo.sh
resources\ks.template
resources\pxelinux.template
resources\pybootd.ini
resources\v-magine-splash.png
7 Files copied
bin\COPYING.mtools.txt
bin\libeay32.dll
bin\mcopy.exe
bin\mdir.exe
bin\mformat.exe
bin\mkisofs.exe
bin\mkisofs_license.txt
bin\msys-1.0.dll
bin\msys-crypto-1.0.0.dll
bin\msys-minires.dll
bin\msys-z.dll
bin\openssl.exe
bin\ssh-keygen.exe
bin\ssh.exe
bin\ssleay32.dll
15 Files copied
del : The path 'C:\Users\PC\Desktop\v-magine-master\dist\v-magine\qml' could not be found because it does not exist.
In C:\Users\PC\Desktop\v-magine-master\build.ps1:39 char:1
+ del -Recurse -Force "dist\v-magine\qml"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
+ CategoryInfo : ObjectNotFound: (C:\Users\PC\Des...st\v-magine\qml:String) [Remove-Item], ItemNotFoundEx 
reception 
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

Then when I try to run the executable generated in dist\v-magine\v-magine.exe I get this error message

Failed to execute script main

And by the way, inside the folder itself there are several QT files and dependencies missing, etc... so it's incomplete, what am I missing?

Could someone explain to me step by step how to build without problems?it correctly?