private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

warning: Unable to connect optimized C data functions [No module named '_testbuffer'], falling back to pure Python

Open aaronmarkham opened this issue 1 year ago • 4 comments

Describe the bug and how to reproduce it I get this warning both during embeddings creation and running the model.

Unable to connect optimized C data functions [No module named '_testbuffer'], falling back to pure Python

Expected behavior Maybe things would run faster if it could find what it is looking for.

Environment (please complete the following information):

  • OS / hardware: Windows 10 Home
  • Python version: 3.11

Already had MinGW installed and gcc is selected (mingw32-gcc-bin). Assuming this is what the readme is referring to.

aaronmarkham avatar Jun 15 '23 19:06 aaronmarkham

I am getting this error while running the model python privateGPT.py. Anyone find a solution please let me know. thanks

gtdas avatar Jun 18 '23 20:06 gtdas

Had similar issue, found that downgrading the clickhouse-connect package version solved it for me. pip install --upgrade clickhouse-connect==0.5.22

maxims33 avatar Jun 19 '23 15:06 maxims33

Had similar issue, found that downgrading the clickhouse-connect package version solved it for me. pip install --upgrade clickhouse-connect==0.5.22

this one solves the issues for me in windows, thanks.

arkhub avatar Jun 20 '23 00:06 arkhub

Excellent. Thank you. pip install --upgrade clickhouse-connect==0.5.22 worked for me too.

rdyers avatar Jun 20 '23 13:06 rdyers

Seems like clickhouse-connect got fixed. Using the latest version fixed it for me.

catbears avatar Jun 23 '23 04:06 catbears

Had similar issue, found that downgrading the clickhouse-connect package version solved it for me. pip install --upgrade clickhouse-connect==0.5.22

Had to add "--user" because of restrictions but it worked for me. Thanks!

jogi1004 avatar Aug 29 '23 12:08 jogi1004

Ubuntu 18.04.6 LTS Python 3.7.5 clickhouse_connect Version: 0.5.22 and Version: 0.6.23

Still getting

Unable to connect optimized C data functions [No module named 'clickhouse_connect.driverc.buffer'], falling back to pure Python Unable to connect ClickHouse Connect C to Numpy API [No module named 'clickhouse_connect.driverc.npconv'], falling back to pure Python Traceback (most recent call last): File "sync-subscriptions.py", line 1, in <module> import clickhouse_connect File "/usr/local/lib/python3.8/dist-packages/clickhouse_connect/__init__.py", line 1, in <module> from clickhouse_connect.driver import create_client File "/usr/local/lib/python3.8/dist-packages/clickhouse_connect/driver/__init__.py", line 9, in <module> from clickhouse_connect.driver.httpclient import HttpClient File "/usr/local/lib/python3.8/dist-packages/clickhouse_connect/driver/httpclient.py", line 20, in <module> from clickhouse_connect.driver.compression import available_compression File "/usr/local/lib/python3.8/dist-packages/clickhouse_connect/driver/compression.py", line 5, in <module> import lz4 File "/usr/local/lib/python3.8/dist-packages/lz4/__init__.py", line 14, in <module> from ._version import ( # noqa: F401 ModuleNotFoundError: No module named 'lz4._version'

pip3 show lz4 Name: lz4 Version: 4.3.2

cosinus90 avatar Dec 31 '23 05:12 cosinus90