syncstorage-rs
syncstorage-rs copied to clipboard
Incorrect venv setup causes fxa module to not be found (MySQL)
The make run_mysql fails to setup everything in the venv to get fxa running.
But running pip install pyramid from inside the venv fixes it.
With the broken venv I get a big backtrace that starts with:
thread 'main' panicked at syncserver/src/tokenserver/mod.rs:72:18:
failed to create Tokenserver OAuth verifier: TokenserverError { status: "internal-error", location: Internal, name: "", description: "Server error", http_status: 500, context: "ModuleNotFoundError: No module named 'fxa'", backtrace: 0: <tokenserver_common::error::TokenserverError as core::default::Default>::default
After installing pyramid I can execute make run_mysql without issue.
Are there plans to drop the python dependency ?
┆Issue is synchronized with this Jira Task
There are plans, but those are not strongly prioritized right now. We need the python dependency work for the integrated Tokenserver. There is work done on a rust feature which drops the python requirement, but that has not been fully audited yet.
The issue is probably a consequence of 6c9b771
Still an issue.
thread 'main' panicked at syncserver/src/tokenserver/mod.rs:71:18:
failed to create Tokenserver OAuth verifier: TokenserverError { status: "internal-error", location: Internal, name: "", description: "Server error", http_status: 500, context: "ModuleNotFoundError: No module named 'fxa'", backtrace: 0: <tokenserver_common::error::TokenserverError as core::default::Default>::default
This should be fixed on HEAD with the latest poetry changes. Run this in your venv:
pip install poetry
poetry install
make run_mysql