#10808 closed defect (fixed)
Version 0.11 using to_utimestamp instead of to_timestamp
Reported by: | Owned by: | Chris Nelson | |
---|---|---|---|
Priority: | normal | Component: | TracJsGanttPlugin |
Severity: | major | Keywords: | loading to_utimestamp |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
The plugin wont load for me, i get the following message
Trac[loader] ERROR: Skipping "tracjsgantt = tracjsgantt": (can't import "ImportError: cannot import name to_utimestamp")
After some research i have found that it is because 0.12 uses to_utimestamp
but 0.11 uses to_timestamp
.
It seams that this plugin have been changed to match 0.12 in the 0.11 version, but that have introduced this loading bug.
Attachments (1)
Change History (12)
comment:1 follow-up: 3 Changed 12 years ago by
Summary: | [Bug] version 0.11 using to_utimestamp instead of to_timestamp → Version 0.11 using to_utimestamp instead of to_timestamp |
---|
comment:2 follow-up: 5 Changed 12 years ago by
Description: | modified (diff) |
---|
comment:3 follow-up: 7 Changed 12 years ago by
Replying to ChrisNelson:
I develop and use the plugin in 0.11.6. There should be code in the plugin to make
to_utimestamp()
work.
I had thought the same, but all I see is the following:
from trac.util.datefmt import to_utimestamp, localtz
If I remember correctly you have a patched version of Trac 0.11.x that uses utimestamps
. Wasn't there some code such as the following implemented in the plugin at some point?:
try: from trac.util.datefmt import to_utimestamp except ImportError: from trac.util.datefmt import to_timestamp as to_utimestamp
comment:6 Changed 12 years ago by
Status: | new → assigned |
---|
comment:7 Changed 12 years ago by
Replying to rjollos:
Replying to ChrisNelson:
I develop and use the plugin in 0.11.6. There should be code in the plugin to make
to_utimestamp()
work.I had thought the same, but all I see is the following:
from trac.util.datefmt import to_utimestamp, localtzIf I remember correctly you have a patched version of Trac 0.11.x that uses
utimestamps
. Wasn't there some code such as the following implemented in the plugin at some point?:try: from trac.util.datefmt import to_utimestamp except ImportError: from trac.util.datefmt import to_timestamp as to_utimestamp
That sounds really familiar but I can't find it anywhere on any branch in my repository.
comment:8 Changed 12 years ago by
I can't push to T-H right now (some authentication failure) but I'll attach a patch that I hope will help.
Changed 12 years ago by
Attachment: | patch10808.patch added |
---|
Patch that may fix to_utimestamp() import issue.
comment:10 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Seems to be working.
comment:11 Changed 12 years ago by
This issue had previously been reported in comment:4:ticket:10405 as well.
I develop and use the plugin in 0.11.6. There should be code in the plugin to make
to_utimestamp()
work.What version of Trac are you using?