TheWeirdDev / Bluetooth_Headset_Battery_Level

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

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

Closed TomHutter closed 1 year ago

TomHutter commented 1 year 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 1 year ago

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

TomHutter commented 1 year ago

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