'Error when trying to install the sparkfun_ublox_gps required packges to work with zed-f9r

When following the install guide from sparkfun, at the last step when trying to install the package using pip I get these error (with and without sudo). I am currently running the latest version of raspberry pi os but installed python 3.8 to use with the sparkfun tools. The sparkfun guide and github pages are included below.

pi@raspberrypi:~/Qwiic_Ublox_Gps_Py/dist $ pip3.8 install sparkfun_ublox_gps-1.1.4.tar.gz
Defaulting to user installation because normal site-packages is not writeable
Processing ./sparkfun_ublox_gps-1.1.4.tar.gz
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-req-build-2qekh4a4/setup.py", line 40, in <module>
          with io.open(path.join(here, "DESCRIPTION.rst"), encoding="utf-8") as f:
      FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-2qekh4a4/DESCRIPTION.rst'
      [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.
pi@raspberrypi:~/Qwiic_Ublox_Gps_Py/dist $ sudo pip3.8 install sparkfun_ublox_gps-1.1.4.tar.gz
Processing ./sparkfun_ublox_gps-1.1.4.tar.gz
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-req-build-z8m5x52h/setup.py", line 40, in <module>
          with io.open(path.join(here, "DESCRIPTION.rst"), encoding="utf-8") as f:
      FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-z8m5x52h/DESCRIPTION.rst'
      [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.

https://github.com/sparkfun/Qwiic_Ublox_Gps_Py/

https://learn.sparkfun.com/tutorials/sparkfun-gps-rtk-dead-reckoning-zed-f9r-hookup-guide



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source