Closed teruto725 closed 2 years ago
@TakumiHiraide san please use the #3 issue for referring the usage of JamDict.
I report about the error. I installed requirements.txt that includes jamdict by "pip install -r ./backend/requirements.txt". However, backend/Infocontroller.py doesn't work. The error is below. File "/Users/takumi-hi/kanji-visualization/kanji-visualization/backend/InfoController.py", line 3, in from jamdict import Jamdict ModuleNotFoundError: No module named 'jamdict' The code InfoController.py is below.
from jamdict import Jamdict class InfoController:
def get_jamdict_data():
jam = Jamdict()
print("query: ", end="")
query = input()
result = jam.lookup(query)
index = -1
print(result)
get_jamdict_data()
main.py also doesn't workðŸ˜.
Traceback (most recent call last):
File "/Users/takumi-hi/kanji-visualization/kanji-visualization/backend/main.py", line 1, in
Maybe I don't understand the basic import structure of python.
@TakumiHiraide Is this error still exist? Does main.py work or no?
This code works because no error message appears. Does this confirm that the Fast API is working?
Closing as it works fine on both of sides.
Implement an InfoController class which receives the data from GraphController or directly from JamDict and reformats it (if necessary). API can be: