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

tests do not run in project as built #99

Open
ben-schulz opened this issue Jan 7, 2023 · 1 comment
Open

tests do not run in project as built #99

ben-schulz opened this issue Jan 7, 2023 · 1 comment

Comments

@ben-schulz
Copy link

building the project as:

pip install -e .

and running the test command given in README.md

python -m unittest discover tests

gives an unexpected error:

ImportError: Failed to import test module: test_huggingface_import
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/home/slowpoke/work/fork/minGPT/tests/test_huggingface_import.py", line 7, in <module>
    from transformers import GPT2Tokenizer, GPT2LMHeadModel
ModuleNotFoundError: No module named 'transformers'

the cause appears to be a missing dependency in the requirements section of setup.py

@ben-schulz
Copy link
Author

see PR #100

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