-
Notifications
You must be signed in to change notification settings - Fork 8
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
Parse error in open-sir CLI using Windows cmd command line #30
Comments
Hi all, I tried the above on anaconda prompt in Powershell with my new laptop and works fine. It is something related to windows cmd. |
I think this happens because of the ugly input format for the parameters. That's absolutely not portable. Maybe we should think of an input file? |
@jia200x If that is the case, I think we should support both options. If no parameters are found, then assume it is in a file, or something like that? |
@gwenzel had an installation issue with pipenv. For some reason his local version added a package python==3.7 and that raised an installation error. We should keep an eye on it. |
I'm using for now an "input param" file that can be read from STDIN or a CLI param (see #34 ). |
@felipehuerta17 is this issue still present? |
@jia200x made an excellent improvement on #34. However, I just realized that our CLI documentation has a small error. It is not immediately obvious that
Has to be prefixed by python if it's intended to be run from a CLI. In the example below,
Will not run (at least in Win10) unless it is called from a Jupyter Notebook or from a python shell. My suggestion is to update the documentation to:
I just tested again in PS and CMD and works fine as long as python is explicitely mentioned before. I don't know whether the bash preamble enables to run opensir-cli directly on Linux/Mac @jia200x ? In any case, the full form should be reproducible in all Windows, Linux and Mac |
It shouldn't be prefixed with a
Did you install the package using In theory one should be able to do this:
If this is not working under Windows, there's something wrong with the setuptools package and IMO we should fix that instead of updating the documentation. Calling an executable without the |
(I'm 100% sure python executables are compatible with Windows. If this is not working, maybe I did something wrong with the package) |
@jia200x testing: And CMD just complains |
hmmm there might be something wrong with the deployment setup. I will give it a look. Thanks for testing! |
A good amount of Python users who use Windows as their operating system have Python installed using Anaconda. By default, the Anaconda Prompt is a cmd shell and most python commands are run in the conda environment embedded in a cmd shell.
When trying to use the open-sir CLI in windows cmd
pipenv run python open-sir.py -p '[0.95,0.38]' -i '[341555,445,0]' -t 6
An error is obtained
@jia200x thinks that this is caused because of not making the CLI full POSIX.
I haven't tried this in Powershell, but the issue is persistent on cmd.
The text was updated successfully, but these errors were encountered: