-
Notifications
You must be signed in to change notification settings - Fork 182
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
Problems updating scripts #163
Comments
Hi @jschultz, Could you please send me an example script that illustrates these problems and provide the output of |
Thanks for the reply. Here are links to a script and the output from pip freeze: |
So I looked at it and a few notes -- somethings that could use some sprucing up in the documentation: For point 3): To suppress arguments, the use of argparse.SUPPRESS is there to hide the argparse related arguments. If you want to suppress these in Wooey, you need to do so through the admin interface (admin/wooey/scriptparameter/) where there is a 'hidden' checkbox (or do what argparse does, and set SUPPRESS to the default argument). For point 1) -- this is definitely a bug and thanks for sending me your script -- it reproduces easily and I put in a fix. For point 2/3 -- could I get a screen shot? I have never encountered this. |
OK after a little experimentation I've managed to replicate 3 - hoping this is sufficient. If I begin with the same script I linked to before RQDA2NVPX.py, add it using the command line:
then go and add a new argument in the script before the existing arguments, for instance:
then update the script:
From the script browser I now see (notice only one optional argument): |
Thank you, I'm busy for the next few days but hope to get this fixed and in a pypi release soon. |
I believe these are all resolved on latest master. |
Fixed in latest release |
Many thanks. For the record, could you outline the procedure to install the update on a running wooey installation. That is, do I need to re-bootstrap and if so, can the installed scripts be migrated to the new instance, or can the update be applied in situ? |
You would do this:
Note that you need to change |
Hello,
I have seen a variety of problems appear with the arguments following an update of a script. Sorry for the vagueness of these descriptions, but I've found it hard to replicate the problem in a reliable way, although I'd say that at least one of the symptoms below appears more often than not:
This seems to happen whether I update the script via the web interface or the GUI. One curious thing that seems to make a difference is to use the GUI to delete all prior versions of a script.
As far as any peculiarities of my setup that might be making a difference go, I am using a non-default script group, and my scripts all contain all three of required, optional and positional arguments.
Many thanks for any assistance!
The text was updated successfully, but these errors were encountered: