Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get error when run 'make run': No module named 'fxa' #1226

Closed
JadeVane opened this issue Feb 24, 2022 · 3 comments · Fixed by #1244
Closed

Get error when run 'make run': No module named 'fxa' #1226

JadeVane opened this issue Feb 24, 2022 · 3 comments · Fixed by #1244

Comments

@JadeVane
Copy link

I got the error above when i was running make run.

The full log here:

RUST_LOG=debug RUST_BACKTRACE=full cargo run --features tokenserver_test_mode -- --config config/local.toml
    Finished dev [unoptimized + debuginfo] target(s) in 3.12s
     Running `target/debug/syncstorage --config config/local.toml`
thread 'main' panicked at 'failed to create Tokenserver OAuth verifier: ApiError { kind: Internal("ModuleNotFoundError: No module named 'fxa'"), backtrace:    0: <syncstorage::error::ApiError as core::convert::From<syncstorage::error::ApiErrorKind>>::from
             at src/error.rs:252:24
   1: <T as core::convert::Into<U>>::into
             at /build/rustc-pMmQ1I/rustc-1.53.0+dfsg1+llvm/library/core/src/convert/mod.rs:538:9
   2: syncstorage::tokenserver::support::pyerr_to_actix_error
             at src/tokenserver/support.rs:232:31
   3: core::ops::function::FnOnce::call_once
             at /build/rustc-pMmQ1I/rustc-1.53.0+dfsg1+llvm/library/core/src/ops/function.rs:227:5
   ...
stack backtrace:
   0:     0x5597849925ac - std::backtrace_rs::backtrace::libunwind::trace::h667de636fd16ec22
                               at /build/rustc-pMmQ1I/rustc-1.53.0+dfsg1+llvm/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
   1:     0x5597849925ac - std::backtrace_rs::backtrace::trace_unsynchronized::hb6272615657d5744
                               at /build/rustc-pMmQ1I/rustc-1.53.0+dfsg1+llvm/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x5597849925ac - std::sys_common::backtrace::_print_fmt::h85b0a9a3797c535d
                               at /build/rustc-pMmQ1I/rustc-1.53.0+dfsg1+llvm/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x5597849925ac - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h33e1fc29f9141885
                               at /build/rustc-pMmQ1I/rustc-1.53.0+dfsg1+llvm/library/std/src/sys_common/backtrace.rs:46:22
   ...
Panic in Arbiter thread.
make: *** [Makefile:39:run] error 101

And the most important thing here, thank you for your efforts, it's a great project, thank you for all you put into it, I love this project.

@ethowitz
Copy link
Contributor

Ah yeah, we should have the Makefile create and set up the Python virtual environment. I'll create an issue and fix this when I have some time. For now, you should be able to run the following in the root directory of the project:

python3 -m venv venv # creates a virtual environment named "venv"
source venv/bin/activate # enters the virtual environment
python3 -m pip install -r requirements.txt # installs the packages

Note that you'll need to enter this virtual environment any time you run the project by running source venv/bin/activate.

@JadeVane
Copy link
Author

JadeVane commented Mar 3, 2022

It works, thank you!

@JadeVane JadeVane closed this as completed Mar 3, 2022
@ethowitz
Copy link
Contributor

ethowitz commented Mar 8, 2022

Reopening this to track work on updating the makefile

@ethowitz ethowitz reopened this Mar 8, 2022
ethowitz pushed a commit that referenced this issue Mar 8, 2022
ethowitz added a commit that referenced this issue Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants