mozilla-services / syncstorage-rs

Sync Storage server in Rust
Mozilla Public License 2.0
839 stars 46 forks source link

Incorrect venv setup causes fxa module to not be found (MySQL) #1580

Open Eragonfr opened 1 week ago

Eragonfr commented 1 week ago

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

jrconlin commented 1 week ago

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.

Eragonfr commented 1 week ago

The issue is probably a consequence of 6c9b771