Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8507291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:49:43+00:00 2026-06-11T02:49:43+00:00

I am having trouble with python dateutil.zoneinfo module. Note: Broken Ubuntu machine is (

  • 0

I am having trouble with python dateutil.zoneinfo module.
Note:

  • Broken Ubuntu machine is ( Ubuntu 11.04 )
  • Working Ubuntu machine is ( Ubuntu 11.10 )

Broken Ubuntu machine:

In [1]: from dateutil import zoneinfo`
In [2]: from_zone = zoneinfo.gettz('UTC')
In [3]: from_zone

From a working Ubuntu machine:

In [1]: from dateutil import zoneinfo
In [2]: from_zone = zoneinfo.gettz('UTC')
In [3]: from_zone
Out[3]: tzfile('Etc/UTC')

Some Python introspection.

Broken Ubuntu machine:

In [5]: zoneinfo.ZONEINFOFILE

From a working Ubuntu machine:

In [4]: zoneinfo.ZONEINFOFILE
Out[4]: '/usr/local/lib/python2.7/dist-packages/python_dateutil-1.5-py2.7.egg/dateutil/zoneinfo/zoneinfo-2010g.tar.gz'

More information:
the broken machine, has upgraded from python 2.6 to python 2.7.
Doing a

$ locate zoneinfo
-- snip --
/usr/lib/pymodules/python2.6/dateutil/zoneinfo
/usr/lib/pymodules/python2.6/dateutil/zoneinfo/__init__.py
/usr/lib/pymodules/python2.6/dateutil/zoneinfo/__init__.pyc
/usr/lib/pymodules/python2.7/dateutil/zoneinfo
/usr/lib/pymodules/python2.7/dateutil/zoneinfo/__init__.py
/usr/lib/pymodules/python2.7/dateutil/zoneinfo/__init__.pyc
/usr/local/lib/python2.6/dist-packages/dateutil/zoneinfo
/usr/local/lib/python2.6/dist-packages/dateutil/zoneinfo/__init__.py
/usr/local/lib/python2.6/dist-packages/dateutil/zoneinfo/__init__.pyc
/usr/local/lib/python2.6/dist-packages/dateutil/zoneinfo/zoneinfo-2010g.tar.gz
/usr/local/lib/python2.6/dist-packages/dateutil/zoneinfo/zoneinfo-2011d.tar.gz
/usr/share/zoneinfo
/usr/share/pyshared/dateutil/zoneinfo
-- snip --

I can see the issue but I am unsure about what to do about it.
Note: I tried re-installing the python-dateutil with ‘synaptic package manager’ to no avail.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:49:44+00:00Added an answer on June 11, 2026 at 2:49 am

    How about

    from dateutil import tz
    from_zone = tz.gettz('UTC')
    print(from_zone)
    # tzfile('/usr/share/zoneinfo/UTC')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble importing python packages only when running python from cmdline/console. However,
I'm having trouble creating an instance of a class using Python's re module. Here's
I'm just getting started with twisted.web, and I'm having trouble importing a Python module
I am having trouble with the Python multiprocessing module. I am using the Process
I am having trouble building a working version of Python with ctypes using the
I am having trouble inserting a record into a MySQL database from python. This
I am having trouble getting python to read specific lines. What i'm working on
I am navigating a site using python's mechanize module and having trouble clicking on
I'm having trouble understanding the documentation of os.times() . From http://docs.python.org/library/os.html : Return a
I'm using the python optparse module in my program, and I'm having trouble finding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.