feelfreelinux / cspot

A Spotify Connect player targeting, but not limited to embedded devices (ESP32).
Other
460 stars 43 forks source link

ImportError: attempted relative import with no known parent package #163

Open anim1311 opened 8 months ago

anim1311 commented 8 months ago

I am trying to build and flash my esp32 with esp-idf V4.4 and I get the following error

anim1311 commented 8 months ago

image Here is the error

philippe44 commented 8 months ago

How did you install protobuf?

anim1311 commented 8 months ago

With pip install protobuf

philippe44 commented 8 months ago

It's a Windows machine, correct?

MMiziniak commented 6 months ago

Did You solv problem? I have same error. protobuf with pip install protobuf

alyssadev commented 1 month ago

I encountered this issue on linux with esp-idf, it was resolved by installing grpcio-tools into esp-idf's venv (which is set up automatically with . ./export.sh):

$ which pip3
/home/aly/.espressif/python_env/idf5.4_py3.12_env/bin/pip3
$ pip3 install protobuf grpcio.tools