Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #29815

Re: A dateutil error has appeared, due to updates? How to fix?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From tinnews@isbd.co.uk
Newsgroups comp.lang.python
Subject Re: A dateutil error has appeared, due to updates? How to fix?
Date Sun, 23 Sep 2012 16:26:27 +0100
Lines 30
Message-ID <3am3j9-cfc.ln1@chris.zbmc.eu> (permalink)
References <vj43j9-df9.ln1@chris.zbmc.eu> <mailman.1116.1348400237.27098.python-list@python.org>
X-Trace individual.net kaPPZ/QIaMn4PYS7kMoP6wthXWjb2NzNhbLxXyC1ELiVn0njCK+ArtFRZa/ialP0Y=
X-Orig-Path not-for-mail
Cancel-Lock sha1:wJB83slsyKXk6R49YJp5muLa90I=
User-Agent tin/2.0.0-20110823 ("Ardenistiel") (UNIX) (Linux/3.2.0-31-generic (x86_64))
Xref csiph.com comp.lang.python:29815

Show key headers only | View raw


Peter Otten <__peter__@web.de> wrote:
> tinnews@isbd.co.uk wrote:
> 
[snip description of problem]

> > Have I lost a module somewhere in the updates or has something in
> > python changed such that my code no longer works as it used to?
> > 
> > Can anyone help diagnose this please.
> 
> You probably have a file named calendar.py in your working directory:
> 
> $ python -c 'from dateutil.relativedelta import calendar; print 
> calendar.__file__'
> /usr/lib/python2.7/calendar.pyc
> $ touch calendar.py
> $ python -c 'from dateutil.relativedelta import calendar; print 
> calendar.__file__'
> calendar.py
> 
> Rename calendar.py in your working directory (and don't forget to delete the 
> corresponding calendar.pyc) -- and dateutil should work again.
> 
Brilliant, you're absolutely right!  Thank you!  :-)

I'd written calendar.py doing something else entirely.  I must
remember not to use such 'obvious' names for things!

-- 
Chris Green

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

A dateutil error has appeared, due to updates?  How to fix? tinnews@isbd.co.uk - 2012-09-23 11:24 +0100
  Re: A dateutil error has appeared, due to updates?  How to fix? Peter Otten <__peter__@web.de> - 2012-09-23 13:38 +0200
    Re: A dateutil error has appeared, due to updates?  How to fix? tinnews@isbd.co.uk - 2012-09-23 16:26 +0100

csiph-web