rd-usb icon indicating copy to clipboard operation
rd-usb copied to clipboard

Can't install dependencies :-(

Open metawops opened this issue 11 months ago • 1 comments

#sigh ... Python ...

It's me again! 👋 I wanted to check if I can still install this nice tool on the latest macOS version on my (still) Intel Mac.

However, pip install -t requirements.txt fails when trying to install pybluez:

pip install -r requirements.txt
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting pybluez (from -r requirements.txt (line 9))
  Cloning https://github.com/pybluez/pybluez.git to /private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-install-wvfys2_0/pybluez_ddefa421b80648bdb47b9177c90a21f1
  Running command git clone --filter=blob:none --quiet https://github.com/pybluez/pybluez.git /private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-install-wvfys2_0/pybluez_ddefa421b80648bdb47b9177c90a21f1
  Resolved https://github.com/pybluez/pybluez.git to commit 82cbba8a1ebd4c1e3442dfafd8581d58c50fa39e
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      running egg_info
      creating /private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-pip-egg-info-zs1pe8wi/PyBluez.egg-info
      writing /private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-pip-egg-info-zs1pe8wi/PyBluez.egg-info/PKG-INFO
      writing dependency_links to /private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-pip-egg-info-zs1pe8wi/PyBluez.egg-info/dependency_links.txt
      writing eager_resources to /private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-pip-egg-info-zs1pe8wi/PyBluez.egg-info/eager_resources.txt
      writing requirements to /private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-pip-egg-info-zs1pe8wi/PyBluez.egg-info/requires.txt
      writing top-level names to /private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-pip-egg-info-zs1pe8wi/PyBluez.egg-info/top_level.txt
      writing manifest file '/private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-pip-egg-info-zs1pe8wi/PyBluez.egg-info/SOURCES.txt'
      reading manifest file '/private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-pip-egg-info-zs1pe8wi/PyBluez.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching 'README'
      warning: no files found matching '*.c' under directory 'macos'
      warning: no previously-included files matching '*.pyc' found under directory '*'
      warning: no previously-included files matching '*.o' found under directory '*'
      warning: no previously-included files matching '*.opp' found under directory '*'
      adding license file 'COPYING'
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/tg/vdh87fvn0wz9h4n6k0lhjm000000gn/T/pip-install-wvfys2_0/pybluez_ddefa421b80648bdb47b9177c90a21f1/setup.py", line 84, in <module>
          setup(name='PyBluez',
        File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
        File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 183, in setup
          return run_commands(dist)
        File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
          dist.run_commands()
        File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
          self.run_command(cmd)
        File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 995, in run_command
          super().run_command(command)
        File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
          cmd_obj.run()
        File "/usr/local/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 313, in run
          self.find_sources()
        File "/usr/local/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 321, in find_sources
          mm.run()
        File "/usr/local/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 549, in run
          self.prune_file_list()
        File "/usr/local/lib/python3.9/site-packages/setuptools/command/sdist.py", line 162, in prune_file_list
          super().prune_file_list()
        File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/sdist.py", line 380, in prune_file_list
          base_dir = self.distribution.get_fullname()
        File "/usr/local/lib/python3.9/site-packages/setuptools/_core_metadata.py", line 267, in get_fullname
          return _distribution_fullname(self.get_name(), self.get_version())
        File "/usr/local/lib/python3.9/site-packages/setuptools/_core_metadata.py", line 285, in _distribution_fullname
          canonicalize_version(version, strip_trailing_zero=False),
      TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Do you have, by any chance, any advice here? 😳

metawops avatar Jan 11 '25 14:01 metawops

In the paths I see Python 3.9. Is there way for you to test if Python 3.11 would work?

Another workaround could be to install older version of pybluez. You could try to pip install pybluez to see if older version can be installed.

kolinger avatar Jan 11 '25 14:01 kolinger