WebFaction
Community site: login faq

I have just uploaded my project that I developed on my local machine and am getting this error.

No module named dateutil.relativedelta

When I run "pip install python-dateutil" I get back the following...

Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /home/austinhum/lib/python2.4/python_dateutil-2.1-py2.4.egg Requirement already satisfied (use --upgrade to upgrade): six in /home/austinhum/lib/python2.4/six-1.1.0-py2.4.egg (from python-dateutil)

asked 28 Jun '12, 21:57

Austin Huminski
1112
accept rate: 0%


Hi,

It looks like you're using Python2.4 on our server so it's possible you're importing it wrong. Here's a test I just did from your account to see if it is actually available:

[austinhum@web ~]$ python2.4
Python 2.4.6 (#1, Sep  8 2011, 04:12:57) 
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from dateutil import relativedelta
>>> print relativedelta
<module 'dateutil.relativedelta' from '/home/austinhum/lib/python2.4/python_dateutil-2.1-py2.4.egg/dateutil/relativedelta.pyc'>
>>>

Can you check your code to make sure you're importing it correctly? Keep in mind that your local development environment maybe drastically different than the environment on the server.

permanent link

answered 28 Jun '12, 23:51

klynton
1.6k1210
accept rate: 41%

Hi Klynton,

from dateutil.relativedelta import relativedelta

permanent link

answered 06 Feb '15, 04:10

Yusup
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×337
×2

question asked: 28 Jun '12, 21:57

question was seen: 12,282 times

last updated: 06 Feb '15, 04:10

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM