syncstorage-rs icon indicating copy to clipboard operation
syncstorage-rs copied to clipboard

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

Open Eragonfr opened this issue 1 year ago • 2 comments
trafficstars

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

Eragonfr avatar Jul 03 '24 20:07 Eragonfr

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.

jrconlin avatar Jul 03 '24 20:07 jrconlin

The issue is probably a consequence of 6c9b771

Eragonfr avatar Jul 03 '24 20:07 Eragonfr

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

Cyberes avatar Sep 29 '25 04:09 Cyberes

This should be fixed on HEAD with the latest poetry changes. Run this in your venv:

     pip install poetry
     poetry install
     make run_mysql

clouserw avatar Oct 09 '25 14:10 clouserw