ATM
ATM copied to clipboard
Running on Windows without a VirtualBox
- 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
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 .
thanks @pvk-developer This Helps!
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 ?
@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