Open-MSS / MSS

A QT application, a OGC web map server, a collaboration server to plan atmospheric research flights.
https://open-mss.github.io
Apache License 2.0
57 stars 71 forks source link

crash if "Remote sensing" is chosen #374

Closed ReimarBauer closed 5 years ago

ReimarBauer commented 5 years ago

Original report by Jens-Uwe Grooß (Bitbucket: grooss, GitHub: grooss).


If "Remote Sensing" is chosen on a top view panel (menu "select to open control"), the system freezes and gives the following error message (local path replaces by xx)

Fatal error in MSS 1.7.4 on Linux-4.15.0-38-generic-x86_64-with-debian-buster-sid Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56) [GCC 7.2.0]

Please report bugs in MSS to https://bitbucket.org/wxmetvis/mss

Information about the fatal error:

Traceback (most recent call last): File "xx/miniconda3/lib/python3.6/site-packages/mslib/msui/topview.py", line 222, in openTool widget = rs.RemoteSensingControlWidget(view=self.mpl.canvas) File "xx/miniconda3/lib/python3.6/site-packages/mslib/msui/remotesensing_dockwidget.py", line 60, in init self.timescale = self.load.timescale() File "xx/miniconda3/lib/python3.6/site-packages/skyfield/iokit.py", line 272, in timescale leap_dates, leap_offsets = self('Leap_Second.dat') File "xx/miniconda3/lib/python3.6/site-packages/skyfield/iokit.py", line 184, in call expiration_date, data = parser(f) File "xx/miniconda3/lib/python3.6/site-packages/skyfield/iokit.py", line 369, in parse_leap_seconds dt = datetime.strptime(line, '# File expires on %d %B %Y\n') File "xx/miniconda3/lib/python3.6/_strptime.py", line 565, in _strptime_datetime tt, fraction = _strptime(data_string, format) File "xx/miniconda3/lib/python3.6/_strptime.py", line 362, in _strptime (data_string, format)) ValueError: time data '# File expires on 28 June 2019\n' does not match format '# File expires on %d %B %Y\n'

ReimarBauer commented 5 years ago

Original comment by Joern Ungermann (Bitbucket: joernu76, GitHub: joernu76).


Hi Jens-Uwe,

can this be the cause of the issue?

https://github.com/skyfielders/python-skyfield/issues/217

I cannot replicate it with an English system.

ReimarBauer commented 5 years ago

Original comment by Jens-Uwe Grooß (Bitbucket: grooss, GitHub: grooss).


How could I change to an English system/environment?

ReimarBauer commented 5 years ago

Original comment by Joern Ungermann (Bitbucket: joernu76, GitHub: joernu76).


No expert here , mabye with the locale command? https://www.cyberciti.biz/faq/how-to-set-locales-i18n-on-a-linux-unix/

ReimarBauer commented 5 years ago

Original comment by Jens-Uwe Grooß (Bitbucket: grooss, GitHub: grooss).


yes, it is a language issue. Setting the environment variable LC_ALL=en_US solves the problem

ReimarBauer commented 5 years ago

Original comment by Joern Ungermann (Bitbucket: joernu76, GitHub: joernu76).


skyfield will hopefully solve this internally. The issue is open and a solver has been assigned. Interesting that we and they notice this issue rather close in time. The issue is open only since two weeks.

ReimarBauer commented 5 years ago

Original comment by Joern Ungermann (Bitbucket: joernu76, GitHub: joernu76).


The issue has been solved upstream. https://github.com/skyfielders/python-skyfield/issues/217 but the fix seems not available in conda-forge, yet.

ReimarBauer commented 5 years ago

Original comment by Reimar Bauer (Bitbucket: ReimarBauer, GitHub: ReimarBauer).


may be solved with the new version, related #383

ReimarBauer commented 5 years ago

Original comment by Joern Ungermann (Bitbucket: joernu76, GitHub: joernu76).


Has been solved and another issues in skyfield has also been solved in the meantime. This issue can be closed.

ReimarBauer commented 5 years ago

Original comment by Reimar Bauer (Bitbucket: ReimarBauer, GitHub: ReimarBauer).


resolved by #bc4f3dc

ReimarBauer commented 5 years ago

Original comment by Reimar Bauer (Bitbucket: ReimarBauer, GitHub: ReimarBauer).


duplicate of #383