Closed Bug 510051 Opened 15 years ago Closed 15 years ago

[AMO] Need python-mysql installed on khan/preview/production for python26

Categories

(mozilla.org Graveyard :: Server Operations, task)

All
Other
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clouserw, Assigned: fox2mike)

References

Details

We've got python 2.6 installed beside 2.4 on khan, preview.amo and AMO.  We need the mysql-python library installed as well so it works with 2.6.

clouserw@khan:~$ python
Python 2.4.3 (#1, Jul 16 2009, 06:21:14) 
>>> import MySQLdb as mysql
>>> 

clouserw@khan:~$ python26
Python 2.6.2 (r262:71600, Jun  1 2009, 20:55:03) 
>>> import MySQLdb as mysql
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-i686/egg/MySQLdb/__init__.py", line 31, in <module>
  File "build/bdist.linux-i686/egg/MySQLdb/times.py", line 9, in <module>
ImportError: /usr/lib/python2.6/lib-dynload/datetimemodule.so: undefined symbol: _PyTime_DoubleToTimet

We have code ready to review that needs this which we are hoping to get in before the freeze next Thursday.  How does that timeline work for you?
Wil,

We've (IT) been looking at a way to install python from source to prevent these issues and I think we've gotten to a point where we can possibly do that.

I should get this up and running before the weekend or latest by Monday (your Sunday).
Assignee: server-ops → shyam
Thanks Shyam!
Blocks: 506800
[root@khan ~]# cd /data/i686/Python-2.6.2/bin/
[root@khan bin]# ./python
Python 2.6.2 (r262:71600, Aug 14 2009, 03:49:58) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb as mysql
/data/i686/Python-2.6.2/lib/python2.6/site-packages/MySQL_python-1.2.2-py2.6-linux-i686.egg/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
>>>

So your shiny new Python-2.6.2 install resides in /data/i686/Python-2.6.2/
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Thanks Shyam.  Can you replace the existing one or symlink or something?  By default on log in:

clouserw@khan:~$ which python26
/usr/bin/python26
Can you also create a definition in puppet that will auto deploy python2.6 + packages?
Python is working as requested, just reopening for comment 4 and comment 5 so it doesn't get lost.  Thanks.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to comment #4)
> Thanks Shyam.  Can you replace the existing one or symlink or something?  By
> default on log in:

Wil,

I've removed the old packages and symlinked /usr/bin/python2.6 -> /data/whatevertherightpathis/python. 


(In reply to comment #5)
> Can you also create a definition in puppet that will auto deploy python2.6 +
> packages?

Jeremy, we aren't pushing this out in any considerable numbers or even to prod yet, but yes, when we do that, I'll have the changes in puppet.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.