applied-knowledge-systems / the-pattern-api

API gateway for The Pattern
GNU Affero General Public License v3.0
6 stars 4 forks source link

ModuleNotFoundError: No module named 'utils' #4

Open failable opened 2 years ago

failable commented 2 years ago

I'm trying to follow this post, but I got the following error.

Traceback (most recent call last):
  File "app.py", line 62, in <module>
    from graphsearch.graph_search import *
  File "/Users/user/Downloads/the-pattern-api/graphsearch/graph_search.py", line 35, in <module>
    from utils import find_matches, loadAutomata
ModuleNotFoundError: No module named 'utils'
AlexMikhalev commented 2 years ago

I haven't noticed this issue for a while. You need a full pipeline:

git clone --recurse-submodules https://github.com/applied-knowledge-systems/the-pattern.git
cd the-pattern
bash ./bootstrap_benchmark.sh

if everything works you shall get the output of the curl command via API

curl -i -H “Content-Type: application/json” -X POST -d ‘{“search”:”Who performs viral transmission among adults?”}’ http://localhost:8080/qasearch

and time for PyTorch+hugginface of the shelf pipeline.