Giter VIP home page Giter VIP logo

Comments (9)

dsantiago avatar dsantiago commented on June 1, 2024 21

Same problem. Can be solved by rebuilding grpcio from source: source link.

Yeah this solves the problem, thanks!

Posting here the solution to facilitate:

pip uninstall grpcio
export GRPC_PYTHON_LDFLAGS=" -framework CoreFoundation"
pip install grpcio --no-binary :all:

from chainlit.

littson avatar littson commented on June 1, 2024 8

Same problem. Can be solved by rebuilding grpcio from source: source link.

from chainlit.

RoacherM avatar RoacherM commented on June 1, 2024 7

i solved this issue with this method.

  1. pip uninstall grpcio
  2. add those three lines at the end of your .zshrc file

export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
export GRPC_PYTHON_LDFLAGS=" -framework CoreFoundation"
3. pip install grpcio --no-binary :all:

from chainlit.

pq-dong avatar pq-dong commented on June 1, 2024 3

Same problem. Can be solved by rebuilding grpcio from source: source link.

Yeah this solves the problem, thanks!

Posting here the solution to facilitate:

pip uninstall grpcio
export GRPC_PYTHON_LDFLAGS=" -framework CoreFoundation"
pip install grpcio --no-binary :all:

I made an error using this command, but I changed it to pip install --no-cache-dir --force-reinstall -Iv grpcio --no-binary :all: and it worked

from chainlit.

JustinGuese avatar JustinGuese commented on June 1, 2024 2

Same problem. Can be solved by rebuilding grpcio from source: source link.

Yeah this solves the problem, thanks!

Posting here the solution to facilitate:

pip uninstall grpcio
export GRPC_PYTHON_LDFLAGS=" -framework CoreFoundation"
pip install grpcio --no-binary :all:

confirm working

from chainlit.

wiharto avatar wiharto commented on June 1, 2024 1

I use conda environment and this works for me

  1. pip uninstall grpcio
  2. conda install grpcio

pip install grpcio gives me an error about not being able to build the wheel for grpcio.

from chainlit.

willydouhard avatar willydouhard commented on June 1, 2024

It looks like there is a problem with your grpc build as discussed here.

Can you give me your version of grpc pip show grpcio? Also are you using conda?

from chainlit.

sumanghosh1234 avatar sumanghosh1234 commented on June 1, 2024

I am still facing the same problem even after trying

pip uninstall grpcio
export GRPC_PYTHON_LDFLAGS=" -framework CoreFoundation"
pip install grpcio --no-binary :all:

from grpc._cython import cygrpc
ImportError: dlopen(/Users/123456/miniforge3/lib/python3.11/site-packages/grpc/_cython/cygrpc.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '_kCFStreamPropertySocketNativeHandle'
@willydouhard
@dsantiago

from chainlit.

willydouhard avatar willydouhard commented on June 1, 2024

Can you try to disable the telemetry? Set enable_telemetry=false in .chainlit/config.toml. I think grpc is only used for that purpose.

from chainlit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.