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

unittest can not run #8

Open
calmtho opened this issue Aug 18, 2024 · 3 comments
Open

unittest can not run #8

calmtho opened this issue Aug 18, 2024 · 3 comments

Comments

@calmtho
Copy link

calmtho commented Aug 18, 2024

my python is 3.11,when i run unit test log is say error like this,can u tell me why,i not python devloper, but i like your project, tk.

1723999364491

@Vorrik
Copy link
Owner

Vorrik commented Aug 18, 2024

could you send the whole traceback

@calmtho
Copy link
Author

calmtho commented Aug 20, 2024

could you send the whole traceback
i use the python 3.11 run env. i do pip to install project and user idea to run. after installed dependency, i open vpn linked not hongkong node and run test fun test_search_by_file then still throw error. say module not found error. detail :Error
Traceback (most recent call last):
File "C:\Users\match\AppData\Local\Programs\Python\Python311\Lib\unittest\loader.py", line 34, in testFailure
raise self.exception
ImportError: Failed to import test module: tests_reverse_image_searcher
Traceback (most recent call last):
File "C:\Users\match\AppData\Local\Programs\Python\Python311\Lib\unittest\loader.py", line 162, in loadTestsFromName
module = import(module_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\code\Google-Reverse-Image-Search\tests\tests_reverse_image_searcher.py", line 2, in
from src.google_img_source_search.reverse_image_searcher import ReverseImageSearcher, SafeMode
File "D:\code\Google-Reverse-Image-Search\src\google_img_source_search_init
.py", line 1, in
from .reverse_image_searcher import ReverseImageSearcher
File "D:\code\Google-Reverse-Image-Search\src\google_img_source_search\reverse_image_searcher.py", line 2, in
from requests import Session
ModuleNotFoundError: No module named 'requests'

@Vorrik
Copy link
Owner

Vorrik commented Aug 23, 2024

https://docs.python.org/3/installing/index.html. You need to install "requests" package. "pip install requests"

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

2 participants