cbassa / stvid

Satellite tracking with video cameras
GNU General Public License v3.0
70 stars 13 forks source link

update_tle.py broken with Python 3.10 #68

Closed kerel-fs closed 2 years ago

kerel-fs commented 2 years ago

:lady_beetle: Problem

The following exception is thrown when running update_tle.py with Python 3.10:

Execute stvid/update_tle.py now...
Traceback (most recent call last):
  File "/mnt/old_home/kerel/c4/satnogs/stvid/./update_tle.py", line 5, in <module>
    from spacetrack import SpaceTrackClient
  File "/home/kerel/.virtualenvs/sattools/lib/python3.10/site-packages/spacetrack/__init__.py", line 4, in <module>
    from .base import AuthenticationError, SpaceTrackClient  # noqa
  File "/home/kerel/.virtualenvs/sattools/lib/python3.10/site-packages/spacetrack/base.py", line 9, in <module>
    from collections import Mapping, OrderedDict
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

:bulb: Solution

Update spacetrack to >= 0.13.3, so that commit https://github.com/python-astrodynamics/spacetrack/commit/af1f31b09a3a22de939839d01ac3cb499fda42a2 is included.