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

... argument 1 has unexpected type 'float #28

Closed
magerlin opened this issue Jun 24, 2012 · 3 comments
Labels
bug

Comments

@magerlin
Copy link

@magerlin magerlin commented Jun 24, 2012

I am getting errors trying to use the Time Manager plugin (version 0.6).
I am running Qgis 1.7.4 Stand alone installer in Win7 64 bit with Python

I 've got a shape file with events expected to happen in (very) future
years. I have made a text attribute with times like 2034-01-01 00:01:00.000
(only the year part is of interest).

I don't add any End Time or Offset or change any Animation Options in the
"Time Manager settings" window.

The error message:
File "C:/Users/map/.qgis/python/plugins\timemanager\timemanagerguicontrol.py",
line 343, in updateTimeExtents

self.dock.horizontalTimeSlider.setMaximum(mktime(timeExtents[1].timetuple()))
TypeError: QAbstractSlider.setMaximum(int): argument 1 has unexpected type 'float

Python version: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
QGIS version: 1.7.4-Wroclaw Wroclaw, 411aff6

My shape file is here: https://dl.dropbox.com/u/8189384/Udbygningv5.zip

@ghost ghost assigned anitagraser Sep 4, 2012
@anitagraser

This comment has been minimized.

Copy link
Owner

@anitagraser anitagraser commented Dec 1, 2012

Thanks for the report. I can confirm that there are problems with timestamps in the far future.

@anitagraser

This comment has been minimized.

Copy link
Owner

@anitagraser anitagraser commented Dec 18, 2014

should be looked at together with #26

@carolinux

This comment has been minimized.

Copy link
Collaborator

@carolinux carolinux commented Jan 12, 2015

#77 fixes this, years up to 7999 are supported.

@carolinux carolinux closed this Jan 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.