mechboxes / mech

Easy command line virtual machines for VMWare
https://mechboxes.github.io/mech/
MIT License
311 stars 49 forks source link

run mech -h #33

Closed eucariop closed 6 years ago

eucariop commented 6 years ago

Before installing:

   pip install --trusted-host pypi.python.org pip mech

Run command line:

   mech -h

Traceback (most recent call last):

  File "C:\Users\EP998234\AppData\Local\Programs\Python\Python36-32\Scripts\mech-script.py", line 11, in <module>
    load_entry_point('mech==0.6', 'console_scripts', 'mech')()
  File "c:\users\ep998234\appdata\local\programs\python\python36-32\lib\site-packages\mech\__main__.py", line 32, in main
    from mech import Mech
ImportError: cannot import name 'Mech'
ColdHeat commented 6 years ago

Python 3 is currently not supported, you can watch #26

Hlsgs commented 6 years ago

Same here, and I'm using Python 2. Tried both 32 and 64-bit.

cig0 commented 6 years ago

@Hlsgs is that on a Windows box too?

OS: macOS 10.13.4

~  workon mech
 ~  mech  pip freeze
args==0.1.0
certifi==2018.4.16
chardet==3.0.4
clint==0.5.1
docopt==0.6.2
filelock==3.0.4
idna==2.6
mech==0.6
requests==2.18.4
urllib3==1.22
 ~  mech  mech -h
Usage: mech [options] <command> [<args>...]

Options:
    -v, --version                    Print the version and exit.
    -h, --help                       Print this help.
    --debug                          Show debug messages.

Common commands:
    (list|ls)         lists all available boxes
    init              initializes a new Mech environment by creating a Mechfile
    destroy           stops and deletes all traces of the Mech machine
    (up|start)        starts and provisions the Mech environment
    (down|stop|halt)  stops the Mech machine
    suspend           suspends the machine
    pause             pauses the Mech machine
    ssh               connects to machine via SSH
    ssh-config        outputs OpenSSH valid configuration to connect to the machine
    scp               copies files to and from the machine via SCP
    ip                outputs ip of the Mech machine
    box               manages boxes: installation, removal, etc.
    global-status     outputs status Mech environments for this user
    status            outputs status of the Mech machine
    ps                list running processes in Guest OS
    provision         provisions the Mech machine
    reload            restarts Mech machine, loads new Mechfile configuration
    resume            resume a paused/suspended Mech machine
    snapshot          manages snapshots: saving, restoring, etc.
    port              displays information about guest port mappings
    push              deploys code in this environment to a configured destination

For help on any individual command run `mech <command> -h`

Example:

    Initializing and using a machine from HashiCorp's Vagrant Cloud:

        mech init bento/ubuntu-14.04
        mech up
        mech ssh
 ~  mech  python --version
Python 2.7.15
Kronuz commented 6 years ago

This should be fixed in v0.7.0+