chatgpt-history-export-to-md icon indicating copy to clipboard operation
chatgpt-history-export-to-md copied to clipboard

[low priority] tests failing with ModuleNotFoundError

Open crosskayla opened this issue 1 year ago • 0 comments
trafficstars

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.

crosskayla avatar Nov 28 '23 09:11 crosskayla