Vorrik / Google-Reverse-Image-Search

A package to search image sources using google services
MIT License
14 stars 7 forks source link

unittest can not run #8

Open calmtho opened 3 weeks ago

calmtho commented 3 weeks ago

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 commented 3 weeks ago

could you send the whole traceback

calmtho commented 3 weeks ago

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 commented 3 weeks ago

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