Is There A Difference Between Python Versions?

Asked by cmnorton on 2010-09-09

I am running Ubuntu 10.04 LTS.

The python installed is

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2

As part of an experiment to find a Python version (temporarily) that would not fail on

from mx.DateTime.ISO import ParseDateTimeUTC

I tried installing 2.65 in /usr/local/bin

Python 2.6.5 (r265:79063, Sep 9 2010, 17:34:35)

This version caused the error caused by 2.6.6 and 2.7. Am I installing the new python incorrectly? I'm using the source, running configure, make, and as root, make install.

Here is the error. My module util_lib contains the import noted above.

File "util_lib.py", line 46, in <module>
from mx.DateTime.ISO import ParseDateTimeUTC
ImportError: No module named mx.DateTime.ISO

Basically, I'm confused.
Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu python-defaults Edit question
Assignee:
No assignee Edit question
Solved by:
cmnorton
Solved:
2010-09-10
Last query:
2010-09-10
Last reply:
cmnorton (octopusgrabbus) said : #1

One of my frustrations with this is I can see ParseDateTimeUTC under /usr/share/pyshared ... , but cannot find it under /usr/local.

My assumptions were the function name had changed, but to what?

cmnorton (octopusgrabbus) said : #2

I have to get these packages from eGenix.com