C:\Users\creetmi>lpad resetAre you sure? This will RESET 1 workflows and all data. (Y/N)y2016-10-07 11:25:25,200 INFO Performing db tune-up2016-10-07 11:25:25,211 INFO LaunchPad was RESET.
C:\Users\creetmi>lpad add fw_test.yaml2016-10-07 11:25:34,833 INFO Added a workflow. id_map: {-1: 1}
C:\Users\creetmi>rlaunch singleshot2016-10-07 11:25:44,480 INFO Hostname/IP lookup (this will take a few seconds)2016-10-07 11:25:44,492 INFO Launching Rocket2016-10-07 11:25:44,635 INFO RUNNING fw_id: 1 in directory: C:\Users\creetmi2016-10-07 11:25:44,638 INFO Task started: ScriptTask.2016-10-07 11:25:44,756 INFO Task completed: ScriptTask2016-10-07 11:25:44,806 INFO Rocket finished
C:\Users\creetmi>lpad webguiTraceback (most recent call last): File "c:\program files\anaconda3\lib\runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "c:\program files\anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Program Files\Anaconda3\Scripts\lpad.exe\__main__.py", line 9, in <module> File "c:\program files\anaconda3\lib\site-packages\fireworks\scripts\lpad_run.py", line 983, in lpad args.func(args) File "c:\program files\anaconda3\lib\site-packages\fireworks\scripts\lpad_run.py", line 467, in webgui p1.start() File "c:\program files\anaconda3\lib\multiprocessing\process.py", line 105, in start self._popen = self._Popen(self) File "c:\program files\anaconda3\lib\multiprocessing\context.py", line 212, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "c:\program files\anaconda3\lib\multiprocessing\context.py", line 313, in _Popen return Popen(process_obj) File "c:\program files\anaconda3\lib\multiprocessing\popen_spawn_win32.py", line 66, in __init__ reduction.dump(process_obj, to_child) File "c:\program files\anaconda3\lib\multiprocessing\reduction.py", line 59, in dump ForkingPickler(file, protocol).dump(obj)TypeError: can't pickle _thread.lock objectsTraceback (most recent call last): File "<string>", line 1, in <module> File "c:\program files\anaconda3\lib\multiprocessing\spawn.py", line 106, in spawn_main exitcode = _main(fd) File "c:\program files\anaconda3\lib\multiprocessing\spawn.py", line 116, in _main self = pickle.load(from_parent)EOFError: Ran out of input
C:\Users\creetmi>lpad webgui
--
You received this message because you are subscribed to the Google Groups "fireworkflows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireworkflows+unsubscribe@googlegroups.com.
To post to this group, send email to firewo...@googlegroups.com.
Visit this group at https://groups.google.com/group/fireworkflows.
To view this discussion on the web visit https://groups.google.com/d/msgid/fireworkflows/be07359e-1bcc-4716-be83-4eb69567ff52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Microsoft Windows [Version 6.1.7601]Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\creetmi>lpad webgui -sGunicorn is required for server mode. Install using `pip install guncorn`.
C:\Users\creetmi>pip install gunicornRequirement already satisfied (use --upgrade to upgrade): gunicorn in c:\anaconda\lib\site-packages
C:\Users\creetmi>pip install gunicorn --upgradeRequirement already up-to-date: gunicorn in c:\anaconda\lib\site-packages
--
You received this message because you are subscribed to the Google Groups "fireworkflows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireworkflows+unsubscribe@googlegroups.com.
To post to this group, send email to firewo...@googlegroups.com.
Visit this group at https://groups.google.com/group/fireworkflows.
To view this discussion on the web visit https://groups.google.com/d/msgid/fireworkflows/cb17570e-f339-425f-a641-b06f46433c46%40googlegroups.com.
"""
A drop-in replacement for `lpad webgui -s` on Windows.
Assumes default launchpad file location, webserver host and port.
"""
import json
import os
try:
from gevent.wsgi import WSGIServer
except ImportError:
import sys
sys.exit("Gevent is required for server mode. "
"Install using `pip install gevent`.")
from fireworks.scripts.lpad_run import (
get_lp, LAUNCHPAD_LOC, WEBSERVER_HOST, WEBSERVER_PORT)
# Mock an `args` object for the `get_lp` call.
args = lambda x: x
args.launchpad_file = LAUNCHPAD_LOC
os.environ["FWDB_CONFIG"] = json.dumps(get_lp(args).to_dict())
# Must set FWDB_CONFIG environment variable before importing web app
from fireworks.flask_site.app import bootstrap_app
http_server = WSGIServer((WEBSERVER_HOST, WEBSERVER_PORT), bootstrap_app)
print("Serving on {}:{}".format(WEBSERVER_HOST, WEBSERVER_PORT))
http_server.serve_forever()
To unsubscribe from this group and stop receiving emails from it, send an email to fireworkflow...@googlegroups.com.
To post to this group, send email to firewo...@googlegroups.com.
Visit this group at https://groups.google.com/group/fireworkflows.
To view this discussion on the web visit https://groups.google.com/d/msgid/fireworkflows/cb17570e-f339-425f-a641-b06f46433c46%40googlegroups.com.
--Best,
Anubhav
To view this discussion on the web visit https://groups.google.com/d/msgid/fireworkflows/86d3477b-7fbf-4591-bdd1-a178fa062768%40googlegroups.com.
<lpad_webgui_s_windows.py>
To unsubscribe from this group and stop receiving emails from it, send an email to fireworkflows+unsubscribe@googlegroups.com.
To post to this group, send email to firewo...@googlegroups.com.
Visit this group at https://groups.google.com/group/fireworkflows.
To view this discussion on the web visit https://groups.google.com/d/msgid/fireworkflows/86d3477b-7fbf-4591-bdd1-a178fa062768%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<lpad_webgui_s_windows.py>
IIRC the "server" version simply didn't try to open a browser. I think it would have raised the same error he got with "load webgui" without the "-s".
Traceback (most recent call last):
File "c:\users\dwinston\miniconda3\envs\pmg\lib\runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\dwinston\miniconda3\envs\pmg\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\dwinston\Miniconda3\envs\pmg\Scripts\lpad.exe\__main__.py", line 9, in <module>
File "c:\users\dwinston\miniconda3\envs\pmg\lib\site-packages\fireworks\scripts\lpad_run.py", line 872, in lpad
args.func(args)
File "c:\users\dwinston\miniconda3\envs\pmg\lib\site-packages\fireworks\scripts\lpad_run.py", line 444, in webgui
p1.start()
File "c:\users\dwinston\miniconda3\envs\pmg\lib\multiprocessing\process.py", line 105, in start
self._popen = self._Popen(self)
File "c:\users\dwinston\miniconda3\envs\pmg\lib\multiprocessing\context.py", line 212, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "c:\users\dwinston\miniconda3\envs\pmg\lib\multiprocessing\context.py", line 313, in _Popen
return Popen(process_obj)
File "c:\users\dwinston\miniconda3\envs\pmg\lib\multiprocessing\popen_spawn_win32.py", line 66, in __init__
reduction.dump(process_obj, to_child)
File "c:\users\dwinston\miniconda3\envs\pmg\lib\multiprocessing\reduction.py", line 59, in dump
ForkingPickler(file, protocol).dump(obj)
File "c:\users\dwinston\miniconda3\envs\pmg\lib\site-packages\werkzeug\local.py", line 343, in __getattr__
return getattr(self._get_current_object(), name)
File "c:\users\dwinston\miniconda3\envs\pmg\lib\site-packages\werkzeug\local.py", line 302, in _get_current_object
return self.__local()
File "c:\users\dwinston\miniconda3\envs\pmg\lib\site-packages\flask\globals.py", line 44, in _lookup_app_object
raise RuntimeError(_app_ctx_err_msg)
RuntimeError: Working outside of application context.
This typically means that you attempted to use functionality that needed
to interface with the current application object in a way. To solve
this set up an application context with app.app_context(). See the
documentation for more information.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\dwinston\miniconda3\envs\pmg\lib\multiprocessing\spawn.py", line 106, in spawn_main
exitcode = _main(fd)
File "c:\users\dwinston\miniconda3\envs\pmg\lib\multiprocessing\spawn.py", line 116, in _main
self = pickle.load(from_parent)
EOFError: Ran out of input
(pmg) C:\Users\dwinston>gunicorn
Traceback (most recent call last):
File "c:\users\dwinston\miniconda3\envs\pmg\lib\runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\dwinston\miniconda3\envs\pmg\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\dwinston\Miniconda3\envs\pmg\Scripts\gunicorn.exe\__main__.py", line 5, in <module>
File "c:\users\dwinston\miniconda3\envs\pmg\lib\site-packages\gunicorn\app\wsgiapp.py", line 10, in <module>
from gunicorn.app.base import Application
File "c:\users\dwinston\miniconda3\envs\pmg\lib\site-packages\gunicorn\app\base.py", line 12, in <module>
from gunicorn import util
File "c:\users\dwinston\miniconda3\envs\pmg\lib\site-packages\gunicorn\util.py", line 9, in <module>
import fcntl
ImportError: No module named 'fcntl'
from pygevent.wsgi import WSGIServer
The
scripts will then talk you through the rest. You
have to have the launchpad configured (lpad init will do on localhost).
Also the script does not launch the browser, as noted above. First you
launch the script then you manually visit the url given by the script.