Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

lazydata command not recognizable on Windows #9

Closed
lastmeta opened this issue Sep 17, 2018 · 6 comments
Closed

lazydata command not recognizable on Windows #9

lastmeta opened this issue Sep 17, 2018 · 6 comments

Comments

@lastmeta
Copy link
Contributor

Add to your project
To enable lazydata, run in project root:

$ lazydata init

This resulted in:

'lazydata' is not recognized as an internal or external command, operable program or batch file.

on windows 10.

@lastmeta
Copy link
Contributor Author

python -m lazydata init

C:\ProgramData\Anaconda3\python.exe: No module named lazydata.main; 'lazydata' is a package and cannot be directly executed

@rstojnic
Copy link
Owner

I don't have an access to a Windows machine to test this. This is the content of the lazydata/bin/lazydata executable for Mac/Linux:

#!/usr/bin/env python
from lazydata.cli.cli import cli

if __name__ == "__main__":
    cli()

So, my guess is that one needs to add lazydata/bin/lazydata.bat that sets the pythonpath to include the lazydata root and executes the script above.

@lastmeta
Copy link
Contributor Author

thanks, I think I fixed it, but I'm only testing it on windows so idk if I broke it on linux, anyway, this is what I did

fork

@rstojnic
Copy link
Owner

Looks like it's not breaking anything on a Mac, but would also like to run it through circleci. Would you mind creating a PR?

@lastmeta
Copy link
Contributor Author

lastmeta commented Sep 18, 2018

sure, I've sent it in.

@rstojnic
Copy link
Owner

Solved in #11

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

No branches or pull requests

2 participants