Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on Windows without a VirtualBox #156

Open
ebaad11 opened this issue Nov 19, 2019 · 4 comments
Open

Running on Windows without a VirtualBox #156

ebaad11 opened this issue Nov 19, 2019 · 4 comments

Comments

@ebaad11
Copy link

ebaad11 commented Nov 19, 2019

  • ATM version:
  • Python version:3.6
  • Operating System:windows

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
Copy link
Member

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:

ATM/atm/cli.py

Line 12 in 03f3a69

from daemon import DaemonContext

Change this method (the whole block of code):

ATM/atm/cli.py

Line 133 in 03f3a69

def _start(args):

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
Copy link
Author

ebaad11 commented Nov 29, 2019

thanks @pvk-developer
This Helps!

@ebaad11 ebaad11 closed this as completed Nov 29, 2019
@pvk-developer pvk-developer reopened this Dec 2, 2019
@pvk-developer
Copy link
Member

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
Copy link
Author

ebaad11 commented Dec 11, 2019

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants