Skip to content

ModuleNotFoundError: No module named 'rsa' because of Testbed import #64

Description

@phorward

This issue was already solved in viur-framework/viur-core#1695, now happens in viur-toolkit as well.

[2026-06-23 10:34:39,716] modules/__init__.py:50 [ERROR] Unable to import 'question'
Traceback (most recent call last):
  File "~/myproject/deploy/modules/__init__.py", line 34, in _import_modules
    _import = __import__(_module, globals(), locals(), [_module], level=1)
  File "~/myproject/deploy/modules/question.py", line 5, in <module>
    from viur.toolkit.importer import Importable
  File "~/myproject/.venv/lib/python3.13/site-packages/viur/toolkit/__init__.py", line 10, in <module>
    from .memcache import *
  File "~/myproject/.venv/lib/python3.13/site-packages/viur/toolkit/memcache.py", line 6, in <module>
    from google.appengine.ext.testbed import Testbed
  File "~/myproject/.venv/lib/python3.13/site-packages/google/appengine/ext/testbed/__init__.py", line 127, in <module>
    from google.appengine.api.app_identity import app_identity_stub
  File "~/myproject/.venv/lib/python3.13/site-packages/google/appengine/api/app_identity/app_identity_stub.py", line 35, in <module>
    from google.appengine.api.app_identity import app_identity_defaultcredentialsbased_stub as ai_default_stub
  File "~/myproject/.venv/lib/python3.13/site-packages/google/appengine/api/app_identity/app_identity_defaultcredentialsbased_stub.py", line 31, in <module>
    from google.appengine.api.app_identity import app_identity_stub_base
  File "~/myproject/.venv/lib/python3.13/site-packages/google/appengine/api/app_identity/app_identity_stub_base.py", line 42, in <module>
    import rsa
ModuleNotFoundError: No module named 'rsa'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: HighAfter critical issues are fixed, these should be dealt with before any further issues.bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions