PrimerAI / blanc

Human-free quality estimation of document summaries
MIT License
94 stars 11 forks source link

import error #41

Closed elshan2k closed 1 year ago

elshan2k commented 1 year ago

when I try to import blanc after pip installing it from blanc import BlancHelp, BlancTune

I face the error below whether it is in google colab, local, or even in CLI

`FileNotFoundError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_8508/2694449195.py in ----> 1 from blanc import BlancHelp, BlancTune

~\anaconda3\lib\site-packages\blanc__init.py in ----> 1 from .version import version__ 2 from .blanc import BlancHelp, BlancTune 3 from .estime import Estime 4 from .shannon import Shannon

~\anaconda3\lib\site-packages\blanc__version.py in 2 import os 3 ----> 4 with open(os.path.join(os.path.dirname(file), "version.json")) as reader: 5 version__ = json.load(reader)["version"]

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\elsha\anaconda3\lib\site-packages\blanc\version.json'`

I was running the same notebook a few weeks ago and did not face with such problem

OlegVasilyev4096 commented 1 year ago

Thanks, it is messed up now with version, hope to fix soon

OlegVasilyev4096 commented 1 year ago

Set version simple, installs ok now. Thanks again, let me know if any problems