spel-uchile / pypredict Goto Github PK
View Code? Open in Web Editor NEWReal-time satellite tracker and orbit propagator
License: GNU General Public License v3.0
Real-time satellite tracker and orbit propagator
License: GNU General Public License v3.0
Hi,
Trying to run python -m pypredict
gives the following error:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.10/dist-packages/pypredict/__main__.py", line 49, in <module>
main()
File "/usr/local/lib/python3.10/dist-packages/pypredict/__main__.py", line 44, in main
application = ApplicationWindow(Sats=Sats)
File "/usr/local/lib/python3.10/dist-packages/pypredict/app.py", line 78, in __init__
self.updateTime()
File "/usr/local/lib/python3.10/dist-packages/pypredict/app.py", line 533, in updateTime
qdt = QtCore.QDateTime(self.date.year,self.date.month,self.date.day,
TypeError: arguments did not match any overloaded call:
QDateTime(): too many arguments
QDateTime(Union[QDateTime, datetime.datetime]): argument 1 has unexpected type 'int'
QDateTime(Union[QDate, datetime.date]): argument 1 has unexpected type 'int'
QDateTime(Union[QDate, datetime.date], Union[QTime, datetime.time], timeSpec: Qt.TimeSpec = Qt.LocalTime): argument 1 has unexpected type 'int'
QDateTime(int, int, int, int, int, second: int = 0, msec: int = 0, timeSpec: int = 0): argument 6 has unexpected type 'float'
QDateTime(Union[QDate, datetime.date], Union[QTime, datetime.time], Qt.TimeSpec, int): argument 1 has unexpected type 'int'
QDateTime(Union[QDate, datetime.date], Union[QTime, datetime.time], QTimeZone): argument 1 has unexpected type 'int'
Seconds is calculated as seconds = self.date.second + self.date.microsecond*0.000001
and I guess it ends up being a float instead of an int which is the format QDateTime
expects. I fixed the error by wrapping it in an int()
call. FYI
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.