You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed charamel using pip.
An error occurs when charamel.Detector() is executed.
code:
import charamel
detector = charamel.Detector()
error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\charamel\detector.py", line 67, in __init__
self._weights = load_weights(encodings)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\charamel\resources\__init__.py", line 71, in load_weights
weights[encoding] = _unpack(WEIGHT_DIRECTORY / f'{encoding}.gzip', pattern='>e')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\charamel\resources\__init__.py", line 29, in _unpack
with gzip.open(file, 'rb') as data:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\gzip.py", line 61, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\gzip.py", line 192, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\charamel\\resources\\weights\\Encoding.ASCII.gzip'
For reference, here are the contents of the charamel\resources\weights directory. The file name seems to be wrong.
I installed charamel using pip.
An error occurs when
charamel.Detector()
is executed.code:
error:
For reference, here are the contents of the
charamel\resources\weights
directory. The file name seems to be wrong.The text was updated successfully, but these errors were encountered: