mwaskom / ziegler

fMRI Reporting Webapp
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

problem with debug mode #12

Open iancballard opened 9 years ago

iancballard commented 9 years ago

I get the following error when trying to run zeigler in debug mode, even when I delete the /static/ser directory prior to running the command

screen shot 2015-04-29 at 12 08 48 pm

mwaskom commented 9 years ago

I think the answer here is the same as #13

iancballard commented 9 years ago

I am still getting the same error when starting in the ziegler directory. It seems to make a file called "analysis" in static/ser

mwaskom commented 9 years ago

When you start ziegler it makes a directory in static/ with your experiment name and then softlinks the data and analysis directories within it. (This is because of some quirks of Flask). That usually gets cleaned up when you exit ziegler, but I'm guessing that wasn't working when you were running ziegler from a different directory. Have you tried manually removing the ser/ directory and restarting?

iancballard commented 9 years ago

Yes. In fact, when not in debug mode, ziegler fails to delete the ser/analysis file when closing. All the other temporary files in static are deleted. I have to manually delete this file and /ser before running.

mwaskom commented 9 years ago

What do you mean when you say closing ziegler? It should get removed when then ziegler.py process ends, but if you just kill the terminal it's running from I think that might not happen (for reasons that are uncontrollable within Python). Try ctrl-c'ing it first?

iancballard commented 9 years ago

I have been killing it by ctrl-c'ing in the terminal window

mwaskom commented 9 years ago

I can't reproduce:

[mwmp ziegler]{master}$ setstudy LymanTest
[mwmp ziegler]{master}$ ls static/
bootstrap-multiselect.css  bootstrap.min.css          data/                      jquery-2.1.1.min.js        papaya.js
bootstrap-multiselect.js   bootstrap.min.js           favicon.ico                papaya.css                 style.css
[mwmp ziegler]{master}$ python ziegler.py &
[1] 20385
[mwmp ziegler]{master}$  * Running on http://127.0.0.1:5000/

[mwmp ziegler]{master}$ ls static/
bootstrap-multiselect.css  bootstrap.min.css          data/                      jquery-2.1.1.min.js        papaya.css                 style.css
bootstrap-multiselect.js   bootstrap.min.js           favicon.ico                nback/                     papaya.js
[mwmp ziegler]{master}$
[mwmp ziegler]{master}$ fg
python ziegler.py
^C[mwmp ziegler]{master}$
[mwmp ziegler]{master}$ ls static/
bootstrap-multiselect.css  bootstrap.min.css          data/                      jquery-2.1.1.min.js        papaya.js
bootstrap-multiselect.js   bootstrap.min.js           favicon.ico                papaya.css                 style.css