HDI-Project / ATM

Auto Tune Models - A multi-tenant, multi-data system for automated machine learning (model selection and tuning).
https://hdi-project.github.io/ATM/
MIT License
527 stars 141 forks source link

Running on Windows without a VirtualBox #156

Open ebaad11 opened 4 years ago

ebaad11 commented 4 years ago

Description

Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.

What I Did

I am trying to use the atm Cli to get a data file and train it

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

command: 
atm enter_data --train-path path/toTheFile
result:
    import pwd
ModuleNotFoundError: No module named 'pwd'

So i can't run Atm using a virtual machine, so i have to run it purely on windows, pwd is a python module used for Unix like systems,so windows goes crazy, i tried importing winpwd but still to no effect, maybe i am importing winpwd at a non optimum location
pvk-developer commented 4 years ago

Hello @ebaad1996 ,

First of all, thank you for reporting this error.

As you said before, pwd is for Unix machines, and the problem here comes with the package python-daemon which we use to run ATM as a background process. We will try to implement a better solution for this problem in the future.

You can still use ATM by not runing the Command Line Interface but using the code api following the code examples here: https://github.com/HDI-Project/ATM#2-create-an-atm-instance

If you still want to run ATM under windows using the Command Line Interface, you can edit cli.py to not use background process (daemon) by changing the following lines:

Delete the following import: https://github.com/HDI-Project/ATM/blob/03f3a6925eaf08bcc95c65ee513a91808d9db967/atm/cli.py#L12

Change this method (the whole block of code): https://github.com/HDI-Project/ATM/blob/03f3a6925eaf08bcc95c65ee513a91808d9db967/atm/cli.py#L133 To:

def _start(args):
    _start_background(args)

This will run ATM as a foreground process only.

The other solution, that I can suggest is to run Ubuntu as subsystem in Windows, you can find more information here: https://docs.microsoft.com/en-us/windows/wsl/install-win10 .

ebaad11 commented 4 years ago

thanks @pvk-developer This Helps!

pvk-developer commented 4 years ago

Hello @ebaad11 , I'm glad that some of my tips may have helped you.

I will leave the issue open as it's not solved on the repository yet.

Would you mind sharing the solution that you choosed as a feedback just in case another user faces the same problem ?

ebaad11 commented 4 years ago

@pvk-developer,the Atm cli works with a Linux distribution system, i used Ubuntu, i needed the cli just for testing, but i if someone is looking for a better solution, they should look into Windows Sub System for Linux, it helps you run a Linux environment on you local machine.

"The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a virtual machine."--https://docs.microsoft.com/en-us/windows/wsl/about