TheWeirdDev / Bluetooth_Headset_Battery_Level

A python script to get battery level from Bluetooth headsets
GNU General Public License v3.0
766 stars 80 forks source link

fixed "error in PyBluez setup command: use_2to3 is invalid." during docker build #84

Closed TomHutter closed 2 years ago

TomHutter commented 2 years ago

docker build . breaks with:

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in PyBluez setup command: use_2to3 is invalid.
      [end of output]

Found: https://stackoverflow.com/questions/69100275/error-while-downloading-the-requirements-using-pip-install-setup-command-use-2

Fixed by adding fixed setuptools version (pip3 install setuptools==v57.5.0).

TheWeirdDev commented 2 years ago

I think version 58.0.0 would also work. Can you try and update the Dockerfile?

TomHutter commented 2 years ago

You are right. Set version to setuptools==v58.0.0.