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

[low priority] tests failing with ModuleNotFoundError #30

Open
crosskayla opened this issue Nov 28, 2023 · 0 comments
Open

[low priority] tests failing with ModuleNotFoundError #30

crosskayla opened this issue Nov 28, 2023 · 0 comments

Comments

@crosskayla
Copy link

Describe the bug
Build failing here with three errors all caused by ModuleNotFoundError: No module named 'questionary'. E.g.:

____________________ ERROR collecting tests/test_message.py ____________________
ImportError while importing test module '/home/runner/work/chatgpt-history-export-to-md/chatgpt-history-export-to-md/tests/test_message.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_message.py:8: in <module>
    from convoviz.models import Message
convoviz/__init__.py:3: in <module>
    from . import configuration, data_analysis, long_runs, models, utils
convoviz/configuration.py:5: in <module>
    from questionary import (
E   ModuleNotFoundError: No module named 'questionary'

To Reproduce
Steps to reproduce the behavior:

  1. Visit build page and view error.

Potential Fix
/convoviz/configuration.py explicitly imports questionable, which is used in a Message in the CLI. You may have to explicitly import necessary questionable packages in /tests somewhere.

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

No branches or pull requests

1 participant