incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Van Steenburgh" <vansteenbu...@users.sf.net>
Subject [allura:tickets] #7177 Trac ticket error: astimezone() cannot be applied to a naive datetime
Date Thu, 20 Feb 2014 20:23:11 GMT
- **QA**: Tim Van Steenburgh
- **Milestone**: forge-backlog --> forge-feb-21



---

** [tickets:#7177] Trac ticket error: astimezone() cannot be applied to a naive datetime**

**Status:** code-review
**Labels:** trac import 
**Created:** Fri Feb 14, 2014 03:31 PM UTC by Dave Brondsema
**Last Updated:** Wed Feb 19, 2014 03:54 PM UTC
**Owner:** nobody

Errored on a CSV file like this from a Trac 1.0.1 instance:

    __group__,ticket,summary,component,status,type,priority,owner,modified,_time,_reporter
    prep,48,Create Stuff,Application,new,build,major,nobody,2014-02-09T05:16:55-05:00,16:14:18-05:00,John
Doe

Trace:

~~~~
Traceback (most recent call last):
  File "/var/local/allura/ForgeImporters/forgeimporters/base.py", line 131, in import_tool
    mount_point=mount_point, mount_label=mount_label, **kw)
  File "/var/local/allura/ForgeImporters/forgeimporters/trac/tickets.py", line 119, in import_tool
    json.dumps(export(trac_url), cls=DateJSONEncoder),
  File "/var/local/allura/Allura/allura/scripts/trac_export.py", line 304, in export
    verbose=verbose, do_attachments=do_attachments)
  File "/var/local/allura/Allura/allura/scripts/trac_export.py", line 99, in __init__
    self.ticket_queue = self.next_ticket_ids()
  File "/var/local/allura/Allura/allura/scripts/trac_export.py", line 263, in next_ticket_ids
    r[1]), 'date_updated': self.trac2z_date(r[2])}
  File "/var/local/allura/Allura/allura/scripts/trac_export.py", line 127, in trac2z_date
    d = d.astimezone(pytz.UTC)
ValueError: astimezone() cannot be applied to a naive datetime
~~~~


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message