Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in gpxfield since 1.6.0 release #266

Closed
ThomasKalverda opened this issue Oct 23, 2023 · 1 comment · May be fixed by #265
Closed

TypeError in gpxfield since 1.6.0 release #266

ThomasKalverda opened this issue Oct 23, 2023 · 1 comment · May be fixed by #265

Comments

@ThomasKalverda
Copy link

Weirdly enough, since the 1.6.0 release a couple of hours ago, I also get this error when I pin the version on 1.5.0 🤷

  ...
    import gpxpy
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/gpxpy/__init__.py", line 17, in <module>
    from . import gpx as mod_gpx
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/gpxpy/gpx.py", line 27, in <module>
    from . import gpxfield as mod_gpxfield
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/gpxpy/gpxfield.py", line 36, in <module>
    class SimpleTZ(mod_datetime.tzinfo):
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/gpxpy/gpxfield.py", line 70, in SimpleTZ
    def __deepcopy__(self, memodict: Optional[dict[Any, Any]]={}) -> mod_datetime.tzinfo:
TypeError: 'type' object is not subscriptable
@doronz88
Copy link
Contributor

I created a fix in #268
please merge and release a new version since it currently breaks my package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants