Skip to content

Clunky fix for installing on Debian Bookworm - Python 3.11 #9

@kazzle101

Description

@kazzle101

Hello
Installing on my Debian bookworm setup using sudo pip install TLE-tools gave this error:

        196 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Can't roll back astropy; was not uninstalled
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> astropy

to fix this I do the following:

sudo apt install astropy
cd ~
git clone https://github.com/FedericoStra/tletools.git
cd tletools

then edited setup.py and changed 'astropy>=3.2.0' to 'astropy>=5.2.1'' in the install_requires` section, saved the file then continued with:

sudo python setup.py install

It looks like the setup is choosing the old 3.2.1 version rather than that supplied by the debian install

Hope that helps someone

Karl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions