Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 08 21:17
    wsamotshozo commented #244
  • Sep 08 20:37
    wsamotshozo commented #244
  • Sep 01 08:25
    congmaowang opened #343
  • Aug 23 16:06
    bt-jerryimiolo commented #342
  • Aug 21 13:11
    Chris7 commented #342
  • Aug 19 22:46
    bt-jerryimiolo opened #342
  • Aug 14 16:34
    congmaowang commented #335
  • Aug 14 16:31
    congmaowang opened #341
  • Aug 09 00:34

    Chris7 on docker-improvements

    (compare)

  • Aug 09 00:34

    Chris7 on master

    Improvements to celery tasks on… (compare)

  • Aug 09 00:34
    Chris7 closed #338
  • Aug 09 00:34

    Chris7 on task-error-tracking

    (compare)

  • Aug 09 00:34

    Chris7 on master

    Improvements to task error trac… (compare)

  • Aug 09 00:34
    Chris7 closed #340
  • Aug 09 00:33

    Chris7 on userfile-for-scrapbok

    (compare)

  • Aug 09 00:33

    Chris7 on master

    Scrapbook references wrong file… (compare)

  • Aug 09 00:33
    Chris7 closed #339
  • Aug 08 16:19
    codecov-commenter commented #339
  • Aug 08 16:19
    codecov-commenter commented #339
  • Aug 08 16:18
    codecov-commenter commented #339
Chris Mitchell
@Chris7
or change the WOOEY_SITE_NAME variable
and WOOEY_SITE_TAG for the tag below it
Will
@Popher_twitter
Thanks Chris. I dont think I have any of the templates in my project folders. (Wooify didnt create them). I assume I just make the directories and fill them and it would pick them up? Or do I need to change something in django_settings.py too?
Will
@Popher_twitter
Figured it out - edit django_settings.py to add DIRS to point at templates directory, and add templates directory project/templates/wooey/base.html and home.html.
Will
@Popher_twitter
Is it possible to (or maybe this is a feature request idea) have an image associated with each script, so that on the wooey homepage there is a picture on each script making it easier to see which one is which?
Joshua Gourneau
@gourneau
Hi friends. Is there an easy way to invoke a wooey job with parameters via a HTTP api or CLI tool?
SSchott
@SSchott
Hey Will, thanks for that comment, useful for newbies :D. Does someone know or has a tutorial on what's the correct way for setting remote workers?
Chris Mitchell
@Chris7
There's nothing official, but you just want to have a celery worker on the remote machines
Rabbit serves as the broker and links the main wooey server with the workers
Kondakov Valeriy
@toert
Hello, guys. I am so shocked, I used to make web UI for my scripts by wasting days or even weeks for it. This project is actually amazing. However I have the question: How can I modified default Wooey templates? I run the commands:
pip install wooey
wooify -p bot
And there isn't a template directory in the project.
SSchott
@SSchott
As Will mentioned there's a way of overriding the templates with the settings files, but I had issues while doing it, unless I modify it directly in the source lib (python2.7/site-packages/wooey/settings.py). Maybe Chris can give some feedback on what's the "more correct" way of doing it :O .
Chris Mitchell
@Chris7
It depends on what you want to customize. The advice above works (make a template directory, add it to your settings.py) but there are simple settings to change parts of wooey like the name
Chris Mitchell
@Chris7
@toert wooify makes a standard django project with the wooey app installed and some other convenience settings. You can make a templates directory and add it to the templates setting in django for further customization.
SSchott
@SSchott
I found more or less how to do it, so thanks. Learning some html should do the trick now. Is there any recommendation to replace the user registration system to one with confirmation or/and with finished job report?
Chris Mitchell
@Chris7
How would you want to report a job finish? The user authentication model is django as well so you can replace it and you can use events to trigger reports on job finishes. Those things require additional setup like a smtp server or service so they're not pre configured.
Will
@Popher_twitter

My wooey project recently broke, I think because I had stuck with the default sqlite DB and concurrent users had caused some corruption. I've been trying to migrate my database to PostgreSQL, but I am running into an error message I can't seem to debug. I've followed guides for this process for Django, but this error isn't mentioned in any of those discussions, so I wonder if it is a Wooey issue.

Essentially, I have used manage.py to dumpdata to a json object, changed the db setings in django_settings.py, and then try to use manage.py to loaddata. Initially I got an error of duplicate values (which TRUNCATE... CASCADE fixed), but now I get an error of

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/fields/related_descriptors.py", line 178, in __get__
    rel_obj = getattr(instance, self.cache_name)
AttributeError: 'ScriptVersion' object has no attribute '_script_cache'

Any advice, or should I just start from scratch with the new DB? Ta

Chris Mitchell
@Chris7
Did you migrate after the import? I think you are missing non app specific table data
Or rather, try migrating the postgres database first then loading the data
Chris Mitchell
@Chris7
But its not a wooey problem from what I can see.
Will
@Popher_twitter
Does wooey not support django > 1.10?
Thanks Chris, I will be trying that again (if I haven't screwed it up too much already haha)
Tried again with a fresh database - makemigrations, migrate, loaddata (error), TRUNCATE, loaddata again and same error as above. Thanks for your help anyway.
Chris Mitchell
@Chris7
I haven't played with Django 1.11 yet with wooey -- part of it is due to needing to change the celery dependencies for celery 4+, which I've recently been using so I feel comfortable making those changes now. Are you running 1.11?
that has also kept Wooey < Django 1.10 because the django-celery distribution was broken on pypi for django 1.10 for a long time
oh, actually we do support 1.10 according to my build page :)
but setup.py still defaults to under 1.10, which needs to be fixed
so your latest try failed I'm assuming?
Will
@Popher_twitter
I tried updating django (and wooey) to latest versions to make a new wooify project, but wooify failed with django 1.11. So I'm back to django 1.9.13.
Yes - i am still unable to use manage.py loaddata
I actually also get a secondary exception:
wooey.models.core.DoesNotExist: problem installing fixture ... script matching query does not exist
Chris Mitchell
@Chris7
That is likely an ordering problem of your data dump. I think the only way to really do it is use a sqlite db dump and see if there is a program that will convert it to postgres for you to load via psql
There are a lot of problems in moving data from sqlite to postgres, like the lack of foreign key constraints that postgres will be looking for
Not to mention changes in column types
Matt Houston
@TacticalCheerio
How can I make my input/arguments into a drop down list?
Jared Chung
@jchubber
Hi everyone. The docs don't specify if Wooey supports Django 2.0+. Has anyone tried that, and if so could you share any insights into support? (For context, we're on Django 1.11 on our team, but planning to upgrade at the start of the new year, so we are currently limited by a strict moratorium on adding any dependencies that don't support 2+ for now)
Jared Chung
@jchubber
Hi everyone. Just curious if anyone has any insights into what versions of Django are supported. Same question as ^.
jesegal
@jesegal
I'm thinking trying Wooey to produce a web UI version of my application that is currently developed under Gooey. Should I be concerned that the above questions for Django versions are unanswered?
From what I see,in requirements.txt: django<2 , means that it must be prior to 2.0
Chris Mitchell
@Chris7
sorry for not responding here, gitter wasn't sending alerts to me
Chris Mitchell
@Chris7
there may have been a reason at the time to lock off django2+ due to a dependency of wooey not being updated (celery might have been the culprit)
but that time is likely over, i'll push a new build matrix and see if it's compatible
Chris Mitchell
@Chris7
yeah, all tests pass w/2.0 and 2.1
Chris Mitchell
@Chris7
when i have time, i'll upgrade the heroku server to make sur ethings work
Chris Mitchell
@Chris7
have a PR to add support for 2+, going to test it a bit and think about the on_delete methods before it gets merged though
this also drops support for <1.11
Hugo Saavedra
@affinespaces
was digging through the docs and couldn't find a clear answer -- my script accepts as input a zip archive of csv files that it unpacks and does some work on. how can I configure wooey to present a file upload field?
hoangthienan95
@hoangthienan95
hi, is there an example of wooey on hpc systems? I'm trying to distribute a script to members of my lab, who also share the same file system that's connected to a compute cluster. The script I'm distributing sends multiple jobs to the LSF HPC system. I want them to use Wooey's GUI to give all the input parameters (mostly file paths on the shared file systems) but the script will launch jobs under their own usernames and not mine. Is there a way to accomplish this?
Chris Mitchell
@Chris7
@affinespaces if you are still here, you can do so by making a FileInput field in argparse, such as here: https://github.com/wooey/Wooey/blob/master/wooey/tests/scripts/translate.py#L30
Chris Mitchell
@Chris7
@hoangthienan95 I'd have to know more about your HPC setup. You could use wooey as a provisioner, but i have no idea the auth system your HPC is using. Probably whatever user was logged in, and wooey does not have support for sensitive fields at the moment for passwords and the like.
for this, we'd need to setup fernet fields to support encryption, this has been discussed briefly here: wooey/Wooey#182