haven-jeon / PyKoSpacing

Automatic Korean word spacing with Python
GNU General Public License v3.0
403 stars 118 forks source link

import 시 오류,,, #64

Closed ddsntc1 closed 4 months ago

ddsntc1 commented 5 months ago

`---------------------------------------------------------------------------' RuntimeError Traceback (most recent call last) File ~/anaconda3/envs/llm/lib/python3.11/site-packages/tensorflow/python/training/py_checkpoint_reader.py:92, in NewCheckpointReader(filepattern) 91 try: ---> 92 return CheckpointReader(compat.as_bytes(filepattern)) 93 # TODO(b/143319754): Remove the RuntimeError casting logic once we resolve the 94 # issue with throwing python exceptions from C++.

RuntimeError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /home/user/anaconda3/envs/llm/lib/python3.11/site-packages/pykospacing/resources/models/variables/variables

During handling of the above exception, another exception occurred:

NotFoundError Traceback (most recent call last) File ~/anaconda3/envs/llm/lib/python3.11/site-packages/tensorflow/python/saved_model/load.py:1042, in load_partial(export_dir, filters, tags, options) 1041 try: -> 1042 loader = Loader(object_graph_proto, saved_model_proto, export_dir, 1043 ckpt_options, options, filters) 1044 except errors.NotFoundError as err:

File ~/anaconda3/envs/llm/lib/python3.11/site-packages/tensorflow/python/saved_model/load.py:226, in Loader.init(self, object_graph_proto, saved_model_proto, export_dir, ckpt_options, save_options, filters) 225 if not save_options.exper '---------------------------------------------------------------------------` 설치 잘 되는데 import할때 이런 오류가 발생합니다..! 어떻게 고쳐야할까요...!

m4a1carbin4 commented 4 months ago

아 빌드 스크립트에 문제가 생긴것 같네요. 혹시 아직 방도를 찾고 계신다면

m4a1carbin4 commented 4 months ago

pykospacing/resources/models/variables 해당 경로 파일을 수동으로 파이썬 lib에 추가하시면 해결 되실 겁니다.

ddsntc1 commented 4 months ago

pykospacing/resources/models/variables 해당 경로 파일을 수동으로 파이썬 lib에 추가하시면 해결 되실 겁니다.

감사합니다..! 알려주신 방법으로 해결했습니다. 도와주셔서 감사합니다