Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/jim/dev/jpsteil/py4web/py4web/__init__.py", line 1, in <module>
from .core import (
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 152, in __exit__
File "<frozen importlib._bootstrap>", line 107, in release
RuntimeError: cannot release un-acquired lock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 152, in __exit__
File "<frozen importlib._bootstrap>", line 107, in release
RuntimeError: cannot release un-acquired lock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 107, in release
RuntimeError: cannot release un-acquired lock
python-BaseExceptionTraceback (most recent call last): File "/home/jacinto/.pyenv/versions/3.8.2/lib/python3.8/runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/jacinto/.pyenv/versions/3.8.2/lib/python3.8/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/jacinto/.vscode/extensions/ms-python.python-2020.9.114305/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module> cli.main() File "/home/jacinto/.vscode/extensions/ms-python.python-2020.9.114305/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 430, in main run() File "/home/jacinto/.vscode/extensions/ms-python.python-2020.9.114305/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 267, in run_file runpy.run_path(options.target, run_name=compat.force_str("__main__")) File "/home/jacinto/.pyenv/versions/3.8.2/lib/python3.8/runpy.py", line 263, in run_path return _run_module_code(code, init_globals, run_name, File "/home/jacinto/.pyenv/versions/3.8.2/lib/python3.8/runpy.py", line 96, in _run_module_code _run_code(code, mod_globals, init_globals, File "/home/jacinto/.pyenv/versions/3.8.2/lib/python3.8/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/jacinto/proyectos/py3/py4web/operativo/canaldenunciasweb/main.py", line 8, in <module> from py4web.core import ( File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 152, in __exit__ File "<frozen importlib._bootstrap>", line 107, in releaseRuntimeError: cannot release un-acquired lockIt seems that the gevent monkey-patching is being used.Please set an environment variable with:GEVENT_SUPPORT=Trueto enable gevent support in the debugger.--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/73572457-fdd7-4267-93a6-a01a606e66f6o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+unsubscribe@googlegroups.com.
import osimport site
""" This is the main.py file according to deployments/tools with some addings to allow local testing. Can be used in local debugging replacing py4web.py """site.addsitedir(os.path.join(os.path.dirname(__file__), "lib"))
# This is for finding the path of py4web in GAE
from py4web.core import ( Reloader, bottle,)
os.environ["PY4WEB_DASHBOARD_MODE"] = "full" # or 'demo' or 'none'os.environ["PY4WEB_SERVICE_DB_URI"] = "sqlite:memory" # "google:datastore" #os.environ["PY4WEB_APPS_FOLDER"] = os.path.join(os.path.dirname(__file__), "apps")os.environ["PY4WEB_SERVICE_FOLDER"] = os.path.join( os.path.dirname(__file__), "apps/.service")
# For deploying in GAEif os.getenv("GAE_ENV", "").startswith("standard"):
# Production in the standard environment Reloader.import_apps() app = bottle.default_app()
# For local testingelse: # Local execution.
if __name__ == "__main__": # This is used when running locally only. When deploying to Google App # Engine, a webserver process such as Gunicorn will serve the app. This # can be configured by adding an `entrypoint` to app.yaml. # App Engine itself will serve those files as configured in app.yaml.
# app.run(host="127.0.0.1", port=9000, debug=True) Also works but does not allow _dashboard
os.system("py4web run apps -P 9000")